AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / Autodesk Softimage 2012 / Scripting - Hiding background partitions in all passes except the currently selected pass
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Scripting - Hiding background partitions in all passes except the currently selected pass
Rate this thread
 
65467
 
Permlink of this thread  
avatar
  • heaversm
  • Posted: 22 March 2012 05:42 AM
  • Total Posts: 1
  • Joined: 22 March 2012 05:34 AM

Hi - I am learning scripting in Soft Image. I want to write a script that hides the background partitions in every pass but the pass that is currently selected. Is this possible? If so, how would I accomplish this? I have been using VBScript for everything else, but an example of how to do this in any language would be useful. Thanks!



Replies: 0
avatar

Here’s a Python example:

si Application
log 
si.LogMessage

for p in si.ActiveProject.ActiveScene.Passes:
 if 
not p.IsEqualToApplication.ActiveProject.ActiveScene.ActivePass ):
 
part p.Partitions("Background_Objects_Partition")
 
part.Parameters("viewvis").Value 0


Replies: 0