How to move a text object and its children text objects as a whole
Just like the hierarchical models example carousel in the viz tutorial in which case the object is 3d model not text object.
a matrix translation? |
ok...Think I can do this manually.
Ob = viz.addText('text') Ob = setPosition(x,y,z) ChildrenofOb = viz.addText('Children Text') ChildrenofOb = setPosition(a,b,c) Action = vizact.moveTo([x1,y1,z1]) ChildrenAction = vizact.moveTo(a+(x1-x), b+(y1-y), c+(z1-z)) Ob.actAction(Action) ChildrenofOb.actAction(ChildrenAction) |
Hi,
I'm not 100% sure what you're trying to accomplish but here is an example of a two text object hierarchy. text1 is parented to the groupNode and text2 is a child of text1. They have actions applied to them independently but they spin/move in their parents coordinate system. Best, Masaki Code:
import viz |
All times are GMT -7. The time now is 06:39 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC