JScript Animation

Animation is an interface wrapper accessible as a property of the Document object and can be used to access and manipulate frames and other properties of an animation.

Methods and properties

speech bubble iconRecent comments

user iconPAEz on October 27th 2013 0

For anyone else that needs to know, heres how to get the current slected frame numbers...

var anim = Document.Animation;
var frames=anim.GetIndicesFromState(Context,'FRAME'); // selected frames

var text ='';
text += 'There are ' + frames.length + ' selected frames \r\n';
text += 'Their indexs are...\r\n';
for (var i = 0, end = Math.min(10,frames.length);i<end;i++){
	text += frames[i] + (i==end-1?'':', ');
}
if (end<frames.length) text += '...';

Application.MessageBox(text, "", false);

...hope thats right 😉...seems to be

user iconAnonymous on July 3rd 2023 0

'Document.Animation' is null or not an object.
😞

Me, again, 'anim' is null or not an object

user iconAnonymous on January 8th 0

Having the same issue as the comment above.

user icon