PDA

View Full Version : Animations and OSGB


fabioped
01-29-2014, 07:07 AM
Hi!

I'm having lots of trouble using the OSG plugin for its Sequence Helper. Isn't there any more documentation on this feature? Why not release the code for this plugin, so we can improve support?

I created a 3d Max animation using the OSG plugin, but it always loops inside vizard.

This is my code:
import viz
viz.go()

model = viz.add('model.osgb',pos=(0,1.5,4))

osg = viz.add('SceneGraphTools.dle')
sequence = osg.Sequence(model)

import vizact
vizact.onkeydown(' ',sequence.setMode,vizact.choice([sequence.PAUSE,sequence.RESUME]))
vizact.onkeydown('r',sequence.setMode,sequence.STA RT)
vizact.onkeydown('1',sequence.setFrame,50)


And this is the max modifier settings:
https://www.dropbox.com/s/7g1rw5fxqib7yih/sequence.png

Thanks!