change position of many layers


hello,

 

i tried out lot , found many things google, can not find working solution.

i have 60 layers in composition. has same position @ time. idea iterate thru items , change them y-position offset value.

what learned far is, there layer.property("transform").property("position"). first thought array [x,y,z], seams ... property.

now can check if layers has property "position"...but knew this. found no way set or values.

 

i know how set position when create new layer, seams different thing.

is there possibility change position of existing layer script?

 

best regards

g

for position or other property in layer, need use .setvalue(thenewvalue) method.


if property has keyframes, or if want add keyframe, throw error though, need check if property has keys, in case you'll need use .setvalueattime(thetime, thenewvalue) method.

 

example:

 

layer.property("transform").property("position").setvalue([x,y,z]);

layer.property("transform").property("position").setvalueattime(0, [x,y,z]);

 

check after effects scripting guide (pdf) more info on this.

 

xavier



More discussions in After Effects Scripting


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

InDesign CC 2015 won't open - plugplugowl.dll

Digital ID Error Code 2148073483