How to show models in certain views only

Operating system: windows 10
Slicer version: 4.10.2

At Models Module, in the section of Visibility,
how can I change the View to only Red, Yellow and Green for a ModelNode (with the python console)?
As shown in the picture below.

Thank you in advance!

You can specify list of view IDs to show your node in using the display node’s SetViewNodeIDs method. See complete example here.

Thank you! It works perfectly.