Copy link to clipboard
Copied
I'm using the PF_Param_LAYER parameter in an effect plugin. I want to allow the user to select multiple layers in the dropdown. Is this possible?
1 Correct answer
Hi!
another way, may be not exactly what you expect, but easier, would be to have a Button parameter instead.
Clicking that button, you could get the actual selection of your composition. So if you select the layers then click the button, you'll get their layerID and do whatever you need to do.
Cheers,
François
Copy link to clipboard
Copied
Hi,
I don't think this is possible, since the mechanics of the simple dropdown only allow for a single item to be selected.
The only ways to do this are, have multiple layer parameters (but this is a bit clunky and limits you to the number of layers you're willing to have in your effect UI), or to build a custom UI that acts more like a multi-select list box. However this is not a straightforward task!
Copy link to clipboard
Copied
Hi!
another way, may be not exactly what you expect, but easier, would be to have a Button parameter instead.
Clicking that button, you could get the actual selection of your composition. So if you select the layers then click the button, you'll get their layerID and do whatever you need to do.
Cheers,
François
Copy link to clipboard
Copied
Hey françois leroy,
Yeah, that was what I ended up doing. I created multiple invisible layer parameters and a button parameter (that was visible). The user can select all the necessary layers and clicking the button parameter will assign those layers to the layer parameters.

