pivot

I know there are a lot of scripts for centering of the object pivot point, but it is so confusing which of them to download and use! I use now only 2 options putpivotcenter(SHIFT+P) and putpivotbottom(CTRL+P) from soulburnscript! But putpivotbottom doesn't put the pivot on the bottom if for example I created the object(let's say a box) in the front view, for example!

May be you could advise any that really work and easy to use! Thx friends!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fajar's picture

I wonder how i can put/set my

I wonder how i can put/set my group pivot at the center bottom, like barigazy script ?
does anyone know how to do that?

barigazy's picture

:)

Come on fajar don't tell me you never try this :)

selection.pivot = [selection.center.x,selection.center.y,0]

barigazy

artrender.info's picture

but

I guess there was a way to check if an object needs to be applied reset xform, yes?
Will this also work for groups?

artrender.info's picture

haha! yes, very easy!

In fact, I need only bottom pivot and middle! Thx for your answer!

barigazy's picture

...

Even easyer. Come on you can do it better :)

obj = selection[1]
obj.pivot = obj.center -- center position
obj.pivot = [obj.center.x,obj.center.y,0] -- bottom position

barigazy

artrender.info's picture

hm

selection[1] is for the first object from selection, but this does not mean that this will be in the center of group, for example

artrender.info's picture

thx

for reset xform, it really helped! Now my question is answered! You know a lot, Barigazy!

barigazy's picture

...

You ask easy questions :)
Try the code that i send you in PM. You can easely collect all 27 positions for the pivot placement. Then you can create dropdown list or buttons that help you to send object pivot in right place of bbox.

barigazy

barigazy's picture

...

If you have been created object in front view then you need to reset xform to be able to use theses scripts again. I send you one example.

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.