ScriptSpot

Forum topic · General Scripting

Script Reset Bbox

By Kasimashi · 2013-05-03

Description

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 (3)

miauu · 2013-05-03

Instead of IF statement you can use where statemnt


for theNode in selection where (isValidNode(theNode)) do ResetPivot theNode

:)

Kasimashi · 2013-05-03

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

Regards

Kasimashi

barigazy · 2013-05-03

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