How can I get a delay value of animation timeline?
function getdelay (theframeindex) { try { var actionreference = new actionreference(); actionreference.putproperty(charidtotypeid('prpr'), stringidtotypeid('animationframedelay')); actionreference.putindex(stringidtotypeid('animationframeclass'), theframeindex); var actiondescriptor = new actiondescriptor(); actiondescriptor.putreference(charidtotypeid('null'), actionreference); var t = executeaction(charidtotypeid('getd'), actiondescriptor, dialogmodes.no); return t.getdouble(stringidtotypeid('animationframedelay')) } catch(ex) { alert(ex); return null; } }
i want value of stringidtotypeid ( 'animationframedelay'). code falls error.
are sure file frame animation?
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment