Notifications
Clear all
[Closed] modifier class filter
Aug 30, 2009 12:04 am
i was wondering how i could create a function that would check if one of my modifiers class is ie Bend?
I need it for a selectByName filter.
I tried severals things but nothing worked.
4 Replies
1 Reply
bend_modifiers = getClassInstances Bend
it returns the list of all Bend Modifiers used in the scene… If the array is empty – there is no Band Modifiers in the scene.
Aug 30, 2009 12:04 am
my explanation was incomplete.
I would like to see in my select by name dialog all the objects with a specific modifier
Aug 30, 2009 12:04 am
maybe this is what you’re looking for…
(
fn hasModifier obj modClass =
(
for i = 1 to obj.modifiers.count do
if isKindOf obj.modifiers[i] modClass then
return true
false
)
hasModifier $ bend
)
Aug 30, 2009 12:04 am
thanks a lot, i tried something like this, but without the isKindOf method.