Hello everyone.. Well I'm new to learning scripting and have been reading here and there trying to learn what I can about Max script. I came to making a basic script and kinda got to a part where im kinda stuck on how to get the rest of this done with out errors. I was needing a script that would grab all the Vray proxys and convert them all at once. But the only problem is that if an object isnt a vray mesh it creates an error. And does make sence as to why it puts an error up. I guess im needing a way to tell the script to ignore anything that isnt a vray mesh and execute only on the vray proxy mesh objects. Here is what I've come up so far. Any help is appreciated.
Thank you
Alex
-- Known Bugs
-- Only works on Vray proxys, Selecting anything other than proxy creates error
-- Created 2010 for Vray 1.50SP4a
rollout vray_buttons "Proxy Switch V.001"
(
label label1 "Select Proxys and press button"
button button1 "Bounding Box" border:false
on button1 pressed do
$.display=0
button button2 "Preview from file" border:false
on button2 pressed do
$.display=1
button button3 "Mesh" border:false
on button3 pressed do
$.display=3
label label2 "Created for Vray 1.50SP4a " style_sunkenedge:true width:150 height:16
)
createdialog vray_buttons 170 130 bgcolor:gray fgcolor: [0,255,255]
Anubis · 2010-09-23
Graph · 2010-09-23