Set Pivot to Minimum Z?
Hi chaps
I want to find a way to create a button, so when I click it , it will the pivot of my selection to Minimum Z.
I found out that with "centerpivot selection" it takes the pivot to the center of the object.
I am looking a similar "code" that will take the pivot to minimum z.
Just to mention that I have no clue what so ever regarding scripting.
Thank you for your help!
Comments
...
BTW test this code and tell me if I miss something.
I always forget to check the code before I post it
;)
bga
...
Now U can try
bga
...
Ok U know about "centerpivot selection". Also there is the difference between
"centerpivot selection" and "selection.pivot = selection.center".
Both are mapped fn but first will consider every object separately and 2nd will consider all objects as group.
To send pivot to the bottom to every object in selection we can create simple fn.
bga