I’m having a hard time executing my animation action at any point in the timeline.
When performing the action it always puts the timeline needle at the beginning.
To be more exact, I want that when executing the action it starts from the point I selected in the timeline and not from the beginning.
This is the code I’m using:
const result = await batchPlay(
[
{
_obj: "enable",
_target: [
{
_ref: "animationTrack",
_enum: "stdTrackID",
_value: "sheetTransformTrack"
}
],
_options: {
dialogOptions: "dontDisplay"
}
},
{
_obj: "set",
_target: [
{
_ref: "property",
_property: "time"
},
{
_ref: "timeline"
}
],
to: {
_obj: "timecode",
seconds: 0,
frame: 10,
frameRate: 29.97
},
_options: {
dialogOptions: "dontDisplay"
}
},
{
_obj: "move",
_target: [
{
_ref: "layer",
_enum: "ordinal",
_value: "targetEnum"
}
],
to: {
_obj: "offset",
horizontal: {
_unit: "pixelsUnit",
_value: 0
},
vertical: {
_unit: "pixelsUnit",
_value: 110
}
},
_options: {
dialogOptions: "dontDisplay"
}
}
],
{}
);
}