Select object by user defined properties

How to select object by user defined properties?
example:
name = mybox

select $mybox

AttachmentSize
screen_shot.jpg31.76 KB

Comments

Comment viewing options

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

good topic,

i need a script like this for redshift and shaderswitch usage

johnim's picture

Hey crystal3d, I found the

Hey crystal3d, I found the solution:

-- for k in selection as array do

(

 name_ = "mybox"--(getuserprop k "name")

 select (for o in Objects where o.name != undefined /* and (not o.ishidden) */ and (getuserprop o "name") == name_ collect o)

)

Comment viewing options

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