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

Replace object scale and coordinate

Participant ,
Jun 02, 2018 Jun 02, 2018

Copy link to clipboard

Copied

Hi everyone;I would like to move the second grouped object to the first grouped object coordinates as scaled

exam.jpg

TOPICS
Scripting

Views

504

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

Contributor , Jun 05, 2018 Jun 05, 2018

Hi, uiqued_tol

Can you present your script code?

This is an example.

(function () {

    var doc = app.activeDocument,

        sel = doc.selection;

    sel[1].position = sel[0].position;

    sel[1].width = sel[0].width;

    sel[1].height = sel[0].height;

}());

These methods are useful when you want to fine tune and operate.

GroupItem.resize() and GroupItem.translate()

GroupItem.transform()

Votes

Translate

Translate
Adobe
Contributor ,
Jun 05, 2018 Jun 05, 2018

Copy link to clipboard

Copied

Hi, uiqued_tol

Can you present your script code?

This is an example.

(function () {

    var doc = app.activeDocument,

        sel = doc.selection;

    sel[1].position = sel[0].position;

    sel[1].width = sel[0].width;

    sel[1].height = sel[0].height;

}());

These methods are useful when you want to fine tune and operate.

GroupItem.resize() and GroupItem.translate()

GroupItem.transform()

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
Participant ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

LATEST

Thank you OMOTI... good working.

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