![]() |
|
|
|
#1
|
|||
|
|||
|
Hmm. OK, heres a possible solution: add a child object to the on-the-fly object before you scale it. Translate the child object to the position of the vertex you are interested in. Then scale the on-the-fly object. Then print out the child objects position.
Code:
l = viz.add( 'logo.wrl' ) b = l.add( 'ball.wrl' ) b.translate( 1, 0, 0 ) def onkeydown(key): l.scale( 3, 3, 3 ) print b.get( viz.POSITION ) viz.callback(viz.KEYDOWN_EVENT,onkeydown) |
|
#2
|
|||
|
|||
|
Interesting, I shall try it and let you know if it works out.
|
|
#3
|
|||
|
|||
|
Hey. I tried it, however the position of the ball, while it appears in the world where it is translated/scaled to, the position values remain the same. :-(
|
|
#4
|
|||
|
|||
|
Boy that Vizard is a whily one. Maby I'll have something for ya tomorrow. Something with the new viz.link() functianlity or something.
__________________
Paul Elliott WorldViz LLC |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|