Hi,
I'm trying to make a quick script to add the currently selected object/objects to the exclude list for the Override Mtl in the render settings and am not having any luck. A little background... I'm working on a revit file with 100's of objects that I'm currently redoing the materials on. Initially I set up the scene with an override material to preview progress. As I update the material on an object want to just click a toolar button and have that object added to the exclude list rather than having to open the exclude list and find that particular object.
Here's what I have so far:
Seems straightforward but nothing gets added to the list. I have a feeling it's something simple I'm overlooking. Any help is much appreciated.
I'm trying to make a quick script to add the currently selected object/objects to the exclude list for the Override Mtl in the render settings and am not having any luck. A little background... I'm working on a revit file with 100's of objects that I'm currently redoing the materials on. Initially I set up the scene with an override material to preview progress. As I update the material on an object want to just click a toolar button and have that object added to the exclude list rather than having to open the exclude list and find that particular object.
Here's what I have so far:
Code:
vr=renderers.current ExclList=vr.excludeListOverrideMtl Geo = for o in selection where superClassOf o == geometryClass collect o appendIfUnique ExclList Geo
Comment