Andy
01-09-2012, 08:10 AM
I have a 3dmax model with some subnodes and I want to set another node as a child of one of this subnodes.
I have a simple example file, why is the ball place in the center of the model and not in the center of the subnode? In Vizard 3 it works correctly. Any idea?
import viz
viz.go()
viz.clearcolor(viz.SKYBLUE)
viz.addChild('tut_ground.wrl')
viz.MainView.setPosition([0,1.8,-14])
ball = viz.add('ball.wrl')
ball.setScale(3,3,3)
node = viz.add('testChilddNode_4.IVE')
subNode1 = node.getChild('Quader02-GEODE')
subNode2 = node.getChild('Quader03-GEODE')
ball.parent(subNode2)
node.setPosition([0,3,0])
I have a simple example file, why is the ball place in the center of the model and not in the center of the subnode? In Vizard 3 it works correctly. Any idea?
import viz
viz.go()
viz.clearcolor(viz.SKYBLUE)
viz.addChild('tut_ground.wrl')
viz.MainView.setPosition([0,1.8,-14])
ball = viz.add('ball.wrl')
ball.setScale(3,3,3)
node = viz.add('testChilddNode_4.IVE')
subNode1 = node.getChild('Quader02-GEODE')
subNode2 = node.getChild('Quader03-GEODE')
ball.parent(subNode2)
node.setPosition([0,3,0])