Can`t access to gradient colors in shape.
hi.
trying access gradient colors using expression.
i thought can access them using array, this:
thiscomp.layer("cubes").content("group 1").content("rectangle 1").content("gradient stroke 1").colors[0]
but work colors[0], rest of them (color[1]. color[2]) doesn`t work @ all.
maybe there option how access them?
thanks.
it not possible access gradient "colors" value script nor expression (at least in cs5.5 don't think has changed).
by expression : if add color control expression (with value @ end):
thiscomp.layer("cubes").content("group 1").content("rectangle 1").content("gradient stroke 1").colors.value;
==> error : "object of type object number, array or property needed".
by script :
app.project.activeitem.layer("cubes").content("group 1").content("rectangle 1").content("gradient stroke 1").colors.value;
==> error : "cannot or set value property (...) property's propertyvaluetype propertyvaluetype.no_value."
there kinds of special properties have complex value type (propertyvaluetype.custom_value) can accept expressions , pickwhipped, gradients (propertyvaluetype.no_value) not possible...
(see blog: http://blogs.adobe.com/aftereffects/2011/05/expression-changes-in-after-effects-cs5-5.html)
xavier.
More discussions in After Effects Expressions
adobe
Comments
Post a Comment