I can't get the following commands to work using the Script Listener:
animationUnifyPosition
animationUnifyVisibility
animationUnifyEffects
Although the script listener reports the command, i can't get it to work when called through a script. What am I doing wrong??
Here's an example:
var id591 = charIDToTypeID( "setd" );
var desc158 = new ActionDescriptor();
var id592 = charIDToTypeID( "null" );
var ref89 = new ActionReference();
var id593 = charIDToTypeID( "Lyr " );
var id594 = charIDToTypeID( "Ordn" );
var id595 = charIDToTypeID( "Trgt" );
ref89.putEnumerated( id593, id594, id595 );
desc158.putReference( id592, ref89 );
var id596 = charIDToTypeID( "T " );
var desc159 = new ActionDescriptor();
var id597 = stringIDToTypeID( "animationUnifyPosition" );
desc159.putBoolean( id597, true );
var id598 = charIDToTypeID( "Lyr " );
desc158.putObject( id596, id598, desc159 );
executeAction( id591, desc158, DialogModes.NO );
Also, The following command DOES work, but is there a way I can get the current values of a layer rather than only being able to set them on the active/selected layer? For instance, I want to be able to check whether animationMatchLayerPosition is true or false on a specific layer.
In the same way you can check whether a layer is visible or not with something like layer.visible==true.
=======================================================
var id655 = stringIDToTypeID( "animationMatchLayer" );
var desc174 = new ActionDescriptor();
var id656 = stringIDToTypeID( "animationMatchLayerPosition" );
desc174.putBoolean( id656, true );
var id657 = stringIDToTypeID( "animationMatchLayerVisibility" );
desc174.putBoolean( id657, true );
var id658 = stringIDToTypeID( "animationMatchLayerStyle" );
desc174.putBoolean( id658, true );
executeAction( id655, desc174, DialogModes.NO );
File posted here: bb/viewtopic.php?p=10038#10038
Can't get animationUnify commands to work
Can't get animationUnify commands to work
It seems that animation works along the lines of layer comps. At least there are no animation related keys in the layer descriptor. Nor do I see a way to access the animation or timeline class.
So I'm afraid this may be one of the things that you can't script.
Mike
So I'm afraid this may be one of the things that you can't script.
Mike