ScriptSpot home

Forum topic · Scripts Wanted

Wanted: Select all except some specific name tags object

By omgree · 2013-07-18

Description

I have a scene with alot of meshes. Some meshes names include *_tree in names objects. So i need to select all other meshes except these "*_tree" objects.
Thx for help!

Comments (4)
Branko Živković


select (for o in objects where not (matchPattern s pattern:"*_tree") collect o)

Thx for quick answer.
Im new at MAX Script and dont know why i've got this:

-- Unable to convert: undefined to type: String
Reply to omgree
Branko Živković

Sorry my bad. Try it now :)

select (for o in objects where not (matchPattern o.name pattern:"*_tree") collect o)