About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
In case someone needs a
In case someone needs a script for the same purpose.
Here is a fast, dirty and functional script (thanks to Anubis)
/ Raymond
The solution you came up with
The solution you came up with did the job, so i used this with VRay:
select (for o in objects where o.mat.category == #vray collect o)
Thank you so much :)
EDIT: The purpose was to select all objects in the scene with Vray materials, and fix them to arc_and_design for rendering with Mentalray.
/ Raymond
try .category
What your
vray_materials
array hold? If their're classes then your code would work fine. Also may try ".category" property of the material. Examples:I not work with VRay, so just select 1 vr-mat and get the category from it ;) Cheers!
my recent MAXScripts RSS (archive here)