Skip to main content
benp1711322
Inspiring
March 23, 2019
Answered

Layer parameter - copy choice

  • March 23, 2019
  • 1 reply
  • 583 views

If I had two PF_Param_LAYER parameters and a button, and wanted to copy the choice in the first PF_Param_LAYER to the second when I clicked the button, how could this be done?

(I'm not worried about how to make the button work -- I've figured that out.) There seems to be no equivalent to PF_Param_POPUP's 'value' property, to get then set.

I've tried rolling my own layer parameter, but I got unstuck when trying to get the pixels from the layer (and some other problems when changing/adding/deleting layers).

This topic has been closed for replies.
Correct answer shachar carmi

get the layer id from the first param, and set it as a value to the second

param.

AEGP_GetNewStreamValue();//get layer id from first param

value2P.val.layer_id;//this is the gotten layer id.

AEGP_SetStreamValue();//set it to the second param.

On Sun, Mar 24, 2019 at 1:10 AM benp1711322 <forums_noreply@adobe.com>

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
March 24, 2019

get the layer id from the first param, and set it as a value to the second

param.

AEGP_GetNewStreamValue();//get layer id from first param

value2P.val.layer_id;//this is the gotten layer id.

AEGP_SetStreamValue();//set it to the second param.

On Sun, Mar 24, 2019 at 1:10 AM benp1711322 <forums_noreply@adobe.com>

benp1711322
Inspiring
March 27, 2019

Thank you, Shachar. Perfect.