generateAnimationCode
Create animation code for 3D objects in Spline scenes to rotate, move, scale, or change colors with customizable duration, easing, and looping options.
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": {
"sceneId": "<sceneId>",
"objectId": "<objectId>",
"animationType": "<animationType>"
},
"name": "generateAnimationCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sceneId | Yes | Scene ID | |
| objectId | Yes | Object ID | |
| animationType | Yes | Animation type | |
| duration | No | Animation duration (ms) | |
| easing | No | Animation easing | easeInOut |
| loop | No | Whether to loop the animation | |
| params | No | Animation-specific parameters |