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
Script for setting x,y positions to 0
Moderators: Víctor Paredes, Belgarath, slowtiger
- synthsin75
- Posts: 9935
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Script for setting x,y positions to 0
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.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Script for setting x,y positions to 0
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.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.