Re: Accessing overrides in different passes

2013-05-23 Thread Felix Geremus
But that doesn't explain my case I think? while: /print Application.ActiveProject.ActiveScene.Passes("Pass").LocalProperties("mental ray")/ /print Application.ActiveProject.ActiveScene.Passes("Pass").Properties("mental ray")/ both work with a localized mental ray property, but only /print

Re: Accessing overrides in different passes

2013-05-23 Thread Alan Fregtman
The difference is *LocalProperties* accesses only the properties applied to that object whereas the other one is the equivalent of the inherited properties + the local properties slapped on top. You know when you see a property in italics? That means it's inherited from somewhere else (probably up

Re: Accessing overrides in different passes

2013-05-23 Thread Felix Geremus
Thanks Gareth! I wasn't aware of the difference between properties and localproperties. I was confused because while I'm in another pass /print Application.ActiveProject.ActiveScene.Passes("Pass").Properties("Override")/ didn't work. But /print Application.ActiveProject.ActiveScene.Passes("Pas

RE: Accessing overrides in different passes

2013-05-23 Thread Gareth Bell
You can access them by partitions local properties and then the overrides parameters for the entries e.g. something like this: for eachProp in eachPartition.localproperties: if eachProp.Type == "#Override": for eachParam in eachProp.parameters: print eachParam __