WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-13-2004, 10:21 AM
tavaksai tavaksai is offline
Member
 
Join Date: Jul 2004
Posts: 22
clarification

Hi Farshizzo,

I don't think the group method helps. It has the same problem.
Just to clarify what I meant, here is a sample code:

import viz
viz.go()

outer_tube = viz.add("outer_tube_97_m.wrl")
# rotate around original 0,0,0 center
outer_tube.rotate(40,0,0)
print 'first position:', outer_tube.getpos(viz.ABSOLUTE_WORLD)
# don't want this next call to change position of object until next
# rotate call is made
outer_tube.center(.6,0,0)
print 'second position:', outer_tube.getpos(viz.ABSOLUTE_WORLD)

Notice first position and second position are different.
I would like second position to be equal to first after .center call.
In other words, I would like to prevent the object from moving
in any way upon obj.center(...) call.
I would like it to move only when rotate or translate functions are called.

Thanks for the help so far ,
Max
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:34 PM.


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