WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-23-2011, 01:37 PM
hotshotiguana hotshotiguana is offline
Join Date: Mar 2011
Posts: 22
Dynamic Position and Radius of Sphere

Is it possible to change the position and radius of a sphere after it is created? sphere = vizshape.addSphere(radius=r,color=c,pos=(xPos,yPos ,zPos))

For example, I have a slider and when I change the position of the slider I want to retrieve data based on that new slider position and change the position and radius of the above created sphere with respect to the new data.

If this is not possible, is there a way to delete the previous sphere and just create a new one each time?

Any help would be greatly appreciated.

Reply With Quote
Old 03-23-2011, 01:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
You can use the <node>.setPosition and <node>.setScale commands to change the position/scale of any node object. The documentation contains many examples and tutorial showing how to use these commands.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying texture or colour to an on-the-fly object tomo_the_third Vizard 1 06-22-2009 12:12 PM

All times are GMT -7. The time now is 10:31 PM.

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