cocos_add_scale_in
Add a scale-in animation to Cocos Creator nodes at scene start, making them grow from a specified scale to full size for visual pop-in effects.
Instructions
Pop a node in from from_scale to 1.0 at scene start.
from_scale=0 → pop-in from nothing;
from_scale=0.5 → grow from half-size.
Returns {clip_uuid, clip_path, anim_component_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_scale_in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| from_scale | No | ||
| duration | No | ||
| delay | No | ||
| rel_dir | No |