Hi, I am working on a simple script which does work fine but freezes ramdomly for several minutes. The script "stabilizes" an animated mesh to be on world origin constantly. Any ideas on that? Would be great!
undo off
(
cui.commandPanelOpen = false
myOffset = #()
myLastFrame = animationrange.end as integer
for i = 0 to myLastFrame do
(
sliderTime = i
myOffset[i+1] = $.center
)
ResetXForm $
modPanel.addModToSelection (XForm ()) ui:off
set animate on
for j = 0 to myLastFrame do
(
sliderTime = j
$.modifiers[#XForm].Gizmo.position = -myOffset[j+1]
)
set animate off
cui.commandPanelOpen = true
)
By Daniel Wichterich · 2012-05-21
barigazy · 2012-05-21