ScriptSpot

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)

barigazy · 2013-07-18


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

omgree · 2013-07-18

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

-- Unable to convert: undefined to type: String

barigazy · 2013-07-18

Sorry my bad. Try it now :)

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

omgree · 2013-07-18

Thanks you, barigazy! It works!