I'm learning python and as an exercise, I'm trying to make a script that opens the Render Tree of the Current Pass, without losing the current selection. so far it goes:
Code: Select all
app = Application
sel = app.Selection
curSel = []
for obj in sel:
curSel.append(obj)
app.SelectObj(app.GetCurrentPass())
app.OpenView("Render Tree", False)
app.SelectObj(curSel)
is it common?
should I be doing anything different, like XSI.Collection?
how to overcome this?
many thanks,