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
if selection.count==1 do
if selection.count==1 do select(for i in objects where i.layer==$.layer collect i)
Hi fajar
your method only select all object i one (selection) layer.
i think that dussla want to select all objects with "ss-*" layer name.
bga
Try this
bga
matchPattern --- good
matchPattern --- good skill.
=]
I'll start using it.
thanks.
kimarotta.com.br
3d Artist
Selecting by layer property
I am trying to select objects in layers that have a portion of a name and only objects on the layers that are not frozen. The below script works for selecting all of the frozen objects. How do I select the unfrozen objects?
select (for o in objects where matchPattern (o.layer.name) pattern:"*SS Hor*" and (o.layer.isFrozen) collect o)
use this code
bga