Sorry I should have mentioned that I’m using Max 2012. Anyway, thanks for looking. now i have to fix 5-7 tools because of that. When you say ‘fix’…
by the way… what is a reason to not select hidden nodes? but if there is any, you have to check the isHiddenInVpt property which better reflects the n…
I don’t know exactly how the OP is using this. My reasoning was if a node has a multisub material applied it could get added to objARR more than once …
Thanks (again) for your input Denis. I hadn’t really thought about situations like the one in your example. I only tested it on the scene I’m working …
Wow that’s spot on! (and totally past my ability!!) I can’t claim to understand it, but I know it will work perfectly in my script! Thank you so much …
Amended to include renderable shapes and exclude hidden geometry: objARR = #() vrmArr = for vrm in getClassInstances vrayMtl where (vrm.effect_id == …
Here’s a faster way… objARR = #() vrmArr = for vrm in getClassInstances vrayMtl where (vrm.effect_id == 0 or vrm.override_effect_id == false) collect…
Ok, I haven’t tested this much and it seems a bit slow in the large scene I’m working in: objARR = #() for obj in objects where obj.isHidden == false…
Maybe you don’t want to select hidden objects… objARR = for obj in objects where ((obj.isHidden == false and isKindOf obj.material VRayMtl) and (obj…
ok, this will select all objects that have a VRay material where either effect_id is 0 or override_effect_id is off (false). objARR = for obj in obj…
Hi, I not sure what you’re trying to do exactly. Scene objects themselves don’t have the property effect_id, they may have a material applied to them…
TSK group plc, it’s a design and build company.
Thanks. I’ll definitely have a look when it’s finished. We use VRay mostly here.
Here’s a way to find ALL VRay materials on selected objects. It should find those inside VRayBlend, VRayOverride, etc. not just multimaterial. fn cha…