Script Reset Bbox

Hello guys ! I need a script to Reset my Bbox for align with my object .

But I don't want to Reset Xform my model

Thanks for your help

Regards

Kasimashi

Comments

Comment viewing options

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

Instead of IF statement you

Instead of IF statement you can use where statemnt

for theNode in selection where (isValidNode(theNode)) do ResetPivot theNode
Kasimashi's picture

:)

It Work perfectly Thanks you again barigazy !!!!!!!

Regards

Kasimashi

barigazy's picture

...

you can try some of this lines

--RESET PIVOT ORIENTATION (ROTATION)
for theNode in selection do if (isValidNode(theNode)) do ResetXForm theNode
--CENTER PIVOT POSITION
for theNode in selection do if (isValidNode(theNode)) do CenterPivot theNode
--CENTER OBJECT POSITION
for theNode in selection do if (isValidNode(theNode)) do CenterObject theNode
--WORLD ALIGN PIVOT
for theNode in selection do if (isValidNode(theNode)) do WorldAlignPivot theNode
--WORLD ALIGN OBJECT
for theNode in selection do if (isValidNode(theNode)) do WorldAlignObject theNode
--ALIGN PIVOT
for theNode in selection do if (isValidNode(theNode)) do AlignPivot theNode
--ALIGN OBJECT
for theNode in selection do if (isValidNode(theNode)) do AlignObject theNode
--ALIGN TO PARENT
for theNode in selection do if (isValidNode(theNode)) do AlignToParent theNode
--RESET TRANSFORM
for theNode in selection do if (isValidNode(theNode)) do ResetTransform theNode
--RESET SCALE
for theNode in selection do if (isValidNode(theNode)) do ResetScale theNode
--RESET PIVOT
for theNode in selection do if (isValidNode(theNode)) do ResetPivot theNode

barigazy

Comment viewing options

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