PDA

View Full Version : 3d MAX models, assembling, deassembling


javariya
05-29-2013, 03:19 AM
Hi, is it possible to manipulate the assembly of max models imported to vizard? i have seen that the inspector shows the layers and hierarchies of the model (e.g model of an engine) but when opened up in vizard it takes the whole model as a single object. I want to drag the parts away and assemble them again. Is this kind of function possible in Vizard? Thank you

Jeff
05-30-2013, 07:44 PM
You can get a handle to sub-parts of the object and then move them:
import viz
import vizact
viz.go()

viz.move([0,0,-7])

dojo = viz.addChild('dojo.osgb')
lamps = dojo.getChild('wall lamps-GEODE')

moveRight = vizact.move(1,0,0,time=5)
moveLeft = vizact.move(-1,0,0,time=5)
move = vizact.sequence([moveRight,moveLeft],viz.FOREVER)
lamps.runAction(move)

javariya
05-31-2013, 03:24 AM
hi, Thank you for the reply Jeff, it worked for small models i hope will work for larger as well :)