Wanted: Select all except some specific name tags object

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

Comment viewing options

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

...

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

barigazy

omgree's picture

Thx for quick answer. Im new

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's picture

...

Sorry my bad. Try it now :)

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

barigazy

omgree's picture

Thanks you, barigazy! It

Thanks you, barigazy! It works!

Comment viewing options

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