Control Separate Dimensions

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

What name should be called for the separate X and Y property?

The below works with Property is still unified.

Code: Select all

layerCollection[idx].property("Position").setValueAtTime(1,[4,5]);
The below doesn't work when I've separated X and Y.

Code: Select all

layerCollection[idx].property("X Position").setValueAtTime(1,5);
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

Normally you would access a property by specifying its full property group path, but there's a shortcut for the regular transform properties where you can access them directly from the layer item. This doesn't appear to be the case for the separate dimension versions. So:

Code: Select all

layer.property("Transform").property("X Position");
or using the non language specific matchnames:

Code: Select all

layer.property("ADBE Transform Group").property("ADBE Position_0");
This script is invaluable for figuring out these things:
http://www.redefinery.com/ae/view.php?i ... mePropPath

Paul
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

Thanks Paul!
Post Reply