Operating system: Windows 10 64bit
Slicer version:4.9.0 2017-10-23
Expected behavior: display the polydata independently
Actual behavior: displayed one polydata in all of scenes.
I have setted the Slicer's layout with two scenes(view1,view2),then I want to draw one PolyData(rectangle) in view1,but this rectangle also showed in view2,pls see below screenshot,
I just want to show the created rectangle in the scene which I drawed,could you give me some suggestions ?
BTW,I am using Python script to implement it.I guess there are some funtions from Slicer can set the model which added the Polydata to each view/scenes?
I assume you want to do this programmatically as well. After you get the display node for the model node (or segmentation node) using GetDisplayNode, you can change what views it appears in like this
Thanks for your answer，cpinter.
One thing is not very sure:I have two sliceWidgets(likes View1,View2),how to link the viewNode to related sliceWidgets?
See examples for that in the script repository: Documentation/Nightly/ScriptRepository - Slicer Wiki
Thanks Lassoan and cpinter,