Select objects


#1

If my intention is to select only the objects that do not contain the words _ctrl or _ctrl_root, how should I do it?
I only want to select Point_001,Point_002,Point_003,etc…


#2
(
	sel = for obj in objects collect
	(
		match = matchpattern obj.name pattern:"*_ctrl*" ignorecase:true
		if not match then obj else dontcollect
	)
	
	select sel
)

#3

select $Point_???


#4

thank you for responding! gives me the following error when running the script


#5

works wonders, thank you very much for your help.


#6

Fixed!


#7

Excellent! That’s what I was looking for, thank you very much.