shahramy
01-16-2011, 11:35 PM
Hi dear all
I have some problems to move an object with 'REL_LOCAL' property.
I have linked as follows:
mylink = viz.link(viz.MainView , hand)
mylink.setDstFlag(viz.LINK_POS_RAW)
mylink.preTrans([0,-.15,0])
mylink.setMask(viz.LINK_POS)
I just need Position of 'hand' object, links to mainview position. but I want to move 'hand' object relative to its local coordination. I have (X,Y,Z) to move locally. in fact (X,Y,Z) are local coordination like (1,0,1) not global coordination.
May help me to how can I do this?
I have some problems to move an object with 'REL_LOCAL' property.
I have linked as follows:
mylink = viz.link(viz.MainView , hand)
mylink.setDstFlag(viz.LINK_POS_RAW)
mylink.preTrans([0,-.15,0])
mylink.setMask(viz.LINK_POS)
I just need Position of 'hand' object, links to mainview position. but I want to move 'hand' object relative to its local coordination. I have (X,Y,Z) to move locally. in fact (X,Y,Z) are local coordination like (1,0,1) not global coordination.
May help me to how can I do this?