Hi,
wanting a script to centre pivot of object and put it to X=0.
It ends up beings a three click process...script to simplify please.
thx
Forum topic · Scripts Wanted
By airbrush · 2014-08-29
Hi,
wanting a script to centre pivot of object and put it to X=0.
It ends up beings a three click process...script to simplify please.
thx
airbrush · 2014-08-29
thx
.
miauu · 2014-08-29
This will works for selection of objects.
(
if selection.count != 0 do with redraw off
(
CenterPivot selection
selection.pivot.x = 0
-- if you want to use a loop
-- for o in selection do o.pivot.x = 0
)
)
airbrush · 2014-08-29
sorry..yes. world X position i meant
.
miauu · 2014-08-29
What X - 0 means?
World X or something else?
Can you show a picture?
-- put the object's pivot to objhect's center
centerPivot selection[1]
-- move the object's pivot to world X = 0
selection[1].pivot.x = 0