[vtkusers] Modifying sphere radius from actor

Andrea Gavana andrea.gavana at gmail.com
Thu May 15 06:19:21 EDT 2008


Hi Kenneth,

On Wed, May 14, 2008 at 5:50 PM, Kenneth Evans wrote:
> Hi,
>
> I tried your example.  Nothing happens for me on key down, so I didn't go
> any farther.

If you are on Windows, you should see something printed in the command
window when you press whatever key you want.

> Nevertheless, since you saved the actor as self.lastActor, why
> not just do:
>
> self.lastActor.GetProperty().SetColor(newColour)

The main problem is not the colour, as I know how to change that in an
actor... my question was: from the actor, is there any way I can get
back the vtkSphereSource to change its radius, center and so on? It
looks possible in C++ (as Amy pointed out) but in Python calling
GetSource() always returns None.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/



More information about the vtkusers mailing list