ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Extendscript syntax for disabling stopwatch on layer property

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rob CoakleyExtendscript syntax for disabling stopwatch on layer property
by on Sep 5, 2014 at 3:30:52 pm

I cant seem to find the property that will allow disabling the stopwatch or keyframes on a layer property. I found "app.project.item(index).layer(index).propertySpec.isTimeVarying" but it is only read-only.

I am currently working on an extendscript that will supplement clean up of an imported Maya ASCII File.
When a Maya ASCII is imported all properties are keyed on every frame. I would like to disable Time-vary from some of the properties after the file is imported.

Thanks


Return to posts index

Walter SoykaRe: Extendscript syntax for disabling stopwatch on layer property
by on Sep 5, 2014 at 4:20:06 pm

I would use removeKey() iteratively on every keyframe in the property, from the last one to the first.

prop = app.project.item(index).layer(index).propertySpec;
numKeys = prop.numKeys;
for (i=numKeys; i>0; i--) prop.removeKey(i);


Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

DR GreenlawRe: Extendscript syntax for disabling stopwatch on layer property
by on Mar 25, 2015 at 7:38:24 pm

This was exactly what I needed to learn today. Thank you!

G.

--
Greenlaw
Artist/Parter | Little Green Dog - http://www.littlegreendog.com
Senior Digital Artist | Rhythm & Hues Studio - http://www.rhythm


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]