Skip to main content
Inspiring
May 24, 2022
Answered

Move object using javascript

  • May 24, 2022
  • 1 reply
  • 232 views

How it is possible to move selected object by a certain number of milimetars, using javascript? 

Thanks in advanced

This topic has been closed for replies.
Correct answer c.pfaffenbichler
activeDocument.activeLayer.translate(new UnitValue (10, "mm"), new UnitValue (20, "mm"));

1 reply

c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
May 24, 2022
activeDocument.activeLayer.translate(new UnitValue (10, "mm"), new UnitValue (20, "mm"));