Hi, Im trying write a script to preset the mos possible things in a scene for be ready to render, this include assign textures to certain objects, erase and replace some others, setting light and render parameters, and maybe more, for now, I have some of the code working, except the process for the textures (I dont start yet), and the one for make all bones (including biped) in a scene, non renderable. I have problems with the latter, helped me with the listener, I wrote the following:
clearSelection()
SetSelectFilter 8
actionMan.executeAction 0 "40021" -- Selection: Select All
if selection.count > 0 do(
$.renderable = false)
SetSelectFilter 1
When I evaluated, some times work, but some times not, and when I run it, never works.
Im very confused about this, I search in the maxscript help and in many websites for an other way to select all the items, or select by class, but I not found the answer.
Im relatively new in scripting, although I like to chop buttons and learn the most and best I can, hopefully can help me.
P.S. sorry for the English but I not speak it very well.
Graph · 2011-04-22
Swordslayer · 2011-03-22