Notifications
Clear all
[Closed] how filtering the selectbyname function
Aug 01, 2008 2:03 pm
Hi Guys,
i have dummys in the Layer:Name and want only see all dummy in Layer:Name when i use selectByName function.
fn dummy_filt obj = isKindOf obj dummy
dummyPass = selectByName title:"Load Dataset" buttonText:"select" filter:dummy_filt showHidden:true single:true
how can i make a function that give me a true back, then the obj is a dummy in Layer:name?
or
only all dummys in Layer:Name and dummy.new_variable=defined give back a true.
mfg
hot chip
2 Replies
Aug 01, 2008 2:03 pm
something in the line of:
(
fn dummyFilter obj = if classof obj == Dummy and obj.layer.name == "Name" then true else false
selectByName filter:dummyFilter
)
should do fine, the filter function just returns true or false within it you can do anything you want like normally.