Hi folks.
Is there a way to set Gradient Fill Color Values via scripting. I'm getting the PropertyValueType.NO_VALUE enumerated type using Jeff's rd_GimmePropPath.
btw. Thanks to Paul, and indirectly Jeff, for pointing me to rd_GimmePropPath, it makes exploration a lot easier. I was getting all twisted around trying to use the Extendscript Reflection object and this gives you a much more direct view of the structure.
Shape Layer Gradient Fill Color Values?
Moderator: Paul Tuersley
-
- Posts: 98
- Joined: March 14th, 2006, 2:16 pm
- Location: Atlanta, GA
- Contact:
- redefinery
- Posts: 112
- Joined: April 1st, 2005, 8:16 pm
- Location: CA
- Contact:
hey dale,bradshaw1965 wrote:Is there a way to set Gradient Fill Color Values via scripting.
unfortunately, you can't set or get PropertyValueType.NO_VALUE prop type values at this time.
the only sort of workaround i can think of is to save a preset containing the gradient you want, then use the AVLayer applyPreset() method. however, that won't work on an existing shape layer because it'll create a new group, not apply it to an existing group.
please be sure to file a feature request for access to shape gradient props. thanks.
:jeff
-
- Posts: 98
- Joined: March 14th, 2006, 2:16 pm
- Location: Atlanta, GA
- Contact:
Hey Jeff,
bummer. I think I've got some workarounds I can do in this case, but I'll be sure and file a feature request. I've sort of gotten used to values that are calculated in seperate dialogs being inaccessible.
Dale
bummer. I think I've got some workarounds I can do in this case, but I'll be sure and file a feature request. I've sort of gotten used to values that are calculated in seperate dialogs being inaccessible.
Dale