• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get the layer handle of the selected layer in a layer param

Explorer ,
May 26, 2020 May 26, 2020

Copy link to clipboard

Copied

Hi everyone, somebody posted this question before but sadly it's no longer on the forum :'(  Hopefully it's an easy one to answer 🙂

 

My plug-in UI has a layer param and I would like to get the handle of whichever layer the user selects, so I can access its transforms etc, not just the pixel data.  I was hoping param->u.ld contained the layer index but can't see anything obvious.  Is this possible?

 

I'm currently using point and angle params, with expressions to reference the transform data, but I think it's a slow workaround and not intuitive.

 

Very much appreciate any help, big thanks in advance!

 

 

 

 

TOPICS
SDK

Views

500

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 26, 2020 May 26, 2020

it contains a layer ID. use AEGP_GetLayerFromLayerID to get the layer handle from that ID.

Votes

Translate

Translate
Community Expert ,
May 26, 2020 May 26, 2020

Copy link to clipboard

Copied

it contains a layer ID. use AEGP_GetLayerFromLayerID to get the layer handle from that ID.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 26, 2020 May 26, 2020

Copy link to clipboard

Copied

LATEST

Wonderful thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines