Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

Make parameter disabled depending on layer type.

$
0
0

Is it possible to make a parameter disabled dependant on the type of layer it is applied to?  For example, if I apply the plugin to a TextLayer can I disable certain params, but enable them if I apply the same plugin to an Image layer?

 

In the SDK, I read, that PF_PUI_DISABLED "Disables (grays out) the parameter, usually in response to PF_Cmd_USER_CHANGED_PARAM" but how would I disable the parameter immediately by checking the type of layer.  I was thinking of using javacript to detect the layer type, but maybe that's too much overhead.  Is there any way to:

 

1.  Programatically fire off PF_Cmd_USER_CHANGED_PARAM

2.  Detect the layer type with the SDK instead of resorting to calling a javascript from within the plugin's code?

 

Thank you for your time and help!

 

Best,
Arie


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>