running script for objects

How would i go about writing that I want to run a function for everything in the scene excluding the current selection and any objects hidden or on a hidden layer?

for obj in $* where not obj.isSelected do
(
	obj.wirecolor = blue
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

try this

(for obj in $* where not obj.isSelected and not obj.isHidden collect obj).wirecolor = blue

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.