WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   3d MAX models, assembling, deassembling (https://forum.worldviz.com/showthread.php?t=4606)

javariya 05-29-2013 03:19 AM

3d MAX models, assembling, deassembling
 
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:
Code:

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 :)


All times are GMT -7. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC