How to know if a parameter is available ?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Yenaphe
Posts: 84
Joined: February 3rd, 2009, 6:30 pm
Location: Paris - France
Contact:

In the script i'm developing right now, I want to duplicate a layer having effects, and link via expression every property of the effects to the original layer effects.

But some effects have greyed properties (exemple: CC light wrap have a "direction" property greyed if the "shape" property doesn't allow directions), and when i add an expression i would like to be sure to link only the properties activated. Is there a way to test if properties are activated or not ?

Or can i link greyed properties and should bother to avoid them ?
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

A possible solution could be a try/catch statement.
Yenaphe
Posts: 84
Joined: February 3rd, 2009, 6:30 pm
Location: Paris - France
Contact:

in fact, it works without checking, it will add the expression, but the property won't be used.

BTW, do you have a hack, or an idea on how to link properties that are not expressionable (because not keyable) ?
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

Hummm...I don't think it's possible. I don't know the script you're working on, but adding a new control to your script interface (to change the value of this property for all duplicates) may represent a solution.
Post Reply