hi
here is simple script which group object without naming dialog and with pivot at the bottom. nice one. but it just after grouping press undo it put selected objects down
why it happens and how to fix?
(
on isenabled return selection.count>1
on execute do (
local grname=selection[1].name
local grhead
if selection.count >1 do group selection name:(grname + "_01")
select $(grname + "_01")
for i in selection where (isgrouphead i) do
i.pivot = [($.max.x+$.min.x)/2, ($.max.y+$.min.y)/2, $.min.z]
)
)
thank you in advance
By harumscarum · 2011-12-22
Arahnoid · 2012-01-12