- March 8, 2021 at 8:31 am
var actItem = app.project.activeItem;
var selLayers = actItem.selectedLayers;
var selProps = selLayers.selectedProperties;
var upperP = selProps;
var lowerP = selProps;
var handP = selProps;
I try to select specific puppet Pins via script.
But it seems that the order of the selection is not taken into account, instead how the pins are arranged in the effect panel.
Is there a way to address the specific selected pins, for example address the first selected pin?
thanks so much
- March 8, 2021 at 7:29 pm
I hoped I could edit my post, but I can’t
I think I was not clear.
Its just this: When I address selected layers via script, I can simply address for example the layer I selected first by “selectedLayers”
This doesn’t seem to work for properties.
“selectedProperties” doesn’t give me the first selected property, but the first one in the hierarchy.
Is there a way to achieve that?
- March 8, 2021 at 8:23 pm
As far as I know, the selection order is not accessible for properties.
I don’t know if this helps, but you can rearrange the stacking order by dragging the pins so that your first selected pin is at the top of the stack.
- March 8, 2021 at 9:04 pm
thanks, good to know.
Just to make it clear. With your suggestion you mean by hand, dont you?
I guess it is not possible to put the first selected pin via script to the top of the stack, because the script will never know which one is the first selected one?
- March 9, 2021 at 8:00 am
Yes, I think your assessment is correct.
Log in to reply.