[vtkusers] vtkActor.GetProperty()->SetColor() not working for me

David Gobbi david.gobbi at gmail.com
Thu Aug 1 16:10:25 EDT 2013


On 8/1/2013 3:59 PM, Mike Gagnon wrote:
>
> I'm making the following call after having added an actor to my view.  Is
> it possible to change the color after an actor is added? My call to SetColor
> has no effect:
>
> pActor->GetProperty()->SetColor(1, 0.75, 0);   // yellowish color

This has got to be one of the most-asked questions on the list.
I remember struggling with this several times while learning VTK.

> Got it!
> pActor->GetMapper()->ScalarVisibilityOff().....

 - David



More information about the vtkusers mailing list