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

Replace object scale and coordinate

Participant ,
Jun 02, 2018 Jun 02, 2018

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

exam.jpg

TOPICS
Scripting
693
Translate
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()

Translate
Adobe
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()

Translate
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
LATEST

Thank you OMOTI... good working.

Translate
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