Alright, that was what I was looking for. Now I want to manipulate it from within the program. This is what I have:
Code:
import viz
import vizshape
viz.go()
viz.MainView.setPosition(0,0,-4)
slider = viz.addSlider()
slider.setPosition(0.2, 0.1)
slider.set(0.1)
def onSlider():
x = slider.get()
print x
myshape = vizshape.addCylinder(height=1.0,bottomRadius=0.5,topRadius=x)
vizact.onupdate(0, onSlider)
But when I move the slider the top of the cone only gets bigger, not smaller. What am I doing wrong?