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

Insert a layer (with objects) as a sub layer into another layer

Explorer ,
Dec 18, 2015 Dec 18, 2015

Copy link to clipboard

Copied

Hi Chaps,

I don't know all of a sudden I was trying different things today, and nothing working out. Please see my requirement, I have read in forums somewhere it is not feasible

ToForum1.png

Red in the top is the layer which I want to insert as the first element in the Green highlighted layer

I have the code with me which shall include the content of "Touch Area Coordinates" layer into "Touch Areas" layer at the starting, but instead of content I would like to insert the whole layer.

Is that a feasible solution?

Regards,

Suneel

TOPICS
Scripting

Views

672

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

Valorous Hero , Dec 18, 2015 Dec 18, 2015

Turns out that it is actually very simple, as the layer object has a move method just like pageItems !

doc.layers.getByName("Layer 2").move(doc.layers.getByName("Layer 1"), ElementPlacement.INSIDE);

Votes

Translate

Translate
Adobe
Valorous Hero ,
Dec 18, 2015 Dec 18, 2015

Copy link to clipboard

Copied

Turns out that it is actually very simple, as the layer object has a move method just like pageItems !

doc.layers.getByName("Layer 2").move(doc.layers.getByName("Layer 1"), ElementPlacement.INSIDE);

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 ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

That's cool it worked.

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
Valorous Hero ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

So it is qualified as "Correct"?

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 ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

yes

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
Guide ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

Tagging an answer as correct really helps us when helping people with there questions.

it also helps others when they can see a thread that has been tagged as having a correct answer.

it means there is a good chance it may have the answer they need.

if silly-V has given you the info you needed to get things working it would be great to tag his answer as correct.

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 ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

Done now.. Somehow I didn't get that option before...its done now Thanks for reminding Qwertyfly

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
Guide ,
Dec 20, 2015 Dec 20, 2015

Copy link to clipboard

Copied

LATEST

NP

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