|
Hi.. Python N00b here.. Trying to get a list of all the passes in a scene. I can get the current pass (thanks to a post on this site) but the syntax to get all the passes is eluding me. My goal is of course to use said list of passes in a script. I have looked at Scene.Passes, Scene.PassContainer in the SDK, but not quite sure how to translate from VB to python. Any help, most appreciated. I suspect I’ve just failed to grasp a basic tenant.
Cheers and Thanks.
Barry
|
|
|
|
The following “prints” the names of all the passes
oPasses = Application.ActiveProject.ActiveScene.Passes for i in oPasses:
print(i.Name)
If you’re using a version earlier than SI2011 the last line should read
Application.LogMessage(i.Name)
(but don’t forget the preceding indentation, as that’s crucial to Python)
The “other” Softimage community: si-community.com
|
|
|
|
Perfect. Thank you so much..
|
|
|