Script for setting x,y positions to 0

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
zpremie
Posts: 4
Joined: Wed May 20, 2015 8:28 am

Script for setting x,y positions to 0

Post by zpremie »

Hey i am new to AS, and i would like to ask if it is possible when you reposition a layer to set its new coordinates of x,y being 0. (not reseting, cause this will cause the layer to go back to its original place, but just having the new origin set to 0).

i hope you understood what i am trying to say, english not my native language
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Script for setting x,y positions to 0

Post by synthsin75 »

You can reset the origin to the center of the layer with the Set Origin tool, but this will not be 0,0 if you've moved the layer. Just set the origin to the opposite of the x,y values of the layer move.
zpremie
Posts: 4
Joined: Wed May 20, 2015 8:28 am

Re: Script for setting x,y positions to 0

Post by zpremie »

synthsin75 wrote:You can reset the origin to the center of the layer with the Set Origin tool, but this will not be 0,0 if you've moved the layer. Just set the origin to the opposite of the x,y values of the layer move.
thx for your time , i know what you said but i thought that i could have a command like in maya, that every object can have its own 0,0 coords in the world.
Post Reply