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
.
first you need to get the correct class name for these type of objects
you can do it like this
open the listener select one of them and run classof selection[1]
and that is how you hide/unhide nodes belonging to this class
hide (getClassInstances YourClassName)
unhide (getClassInstances YourClassName)
(YourClassName without double quotes)
.
It doesn't seem to be working. Am i doing something wrong?
Thank you.
classof selection[1]
RailClone_Pro
hide (getClassInstances RailClone_Pro)
-- Runtime error: operation requires a collection of nodes, got: RailClone
-- MAXScript callstack:
-- thread data: threadID:22736
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level
.
yes, I was wrong.
that function returns class instances and not nodes.
try this one
hide (for obj in objects where classof obj == RailClone_Pro collect obj)
.
Thank you for your help.
That indeed works well :)