ScriptSpot home

Forum topic · Scripts Wanted

Place object pivot

By obaida · 2012-10-12

Description

Hello .
any idea how to place object pivot to surface , (like the option in working pivot mode) but for objects pivot .

Comments (11)

Comment policy

HarryPotter

Please, can you add a toggle to snap the pivot in the center of the selected face or edge ?
Thanks in advance...

The script have this abbility, but it will be included in my second script pack.

miauu

Download the attachment, Unzip it, go to maxRoot\scripts directory and create folder with name miauuScripts
Then put the two files - mse and mcr to this folder and load the mcr to the max - drag and drop or Maxscript-run. The script have to appera in Customize-Customize User Interace - miauu category.

Attachments
Reply to obaida
miauu

Something that I want to make for more than half a year, but I don't have time to start with it. :)

miauu

Ok, I will swap the functionality later this night and will provide a macro, so you can assign a hotkey to the script.

miauu

Glad you like it.
If you want I can swap the behaviour - LMB click will works as Shift+LMB.

Reply to miauu
obaida

Thanks

Thank you for your effort , its working in mostd cases , but if holding SHIFT will make it more accurate i think sweeeping will be good idea .

obaida

Great

Thank you "miauu" , its working perfectly , just need holding 'SHIFT' if Z axis heading for the top .

miauu

Try this script.
- select object
- run the script
- point mouse cursor over geometry object
- the axis tripod will be shown
- when you choose the position of the pivot
-- click with LMB and the pivot will be placed in the same way as the Working Pivot(in some cases the Z axis will not be perpendicular to the face. To test it - use the Working Pivot and move it close to the edges of desired face)
-- hold down shift and click with LMB and the Z axis will be perpendicular to the face no matter where the pivot is(in the middle of the face or close to the edges)

Attachments