Notifications
Clear all
[Closed] Help with Script: GoToEdit/ablePoly
Page 2 / 2
Prev
Mar 31, 2017 2:39 pm
anyway we still need a solution for multiple modifiers of the same class
Mar 31, 2017 2:39 pm
Yeah, in that case I’d use basically the same function that you posted, only without the while safeguard, collecting them as you go:
fn tryGetNodeModifiers node class &modifiers =
(
if isValidNode node and isKindOf class Modifier then
(
modifiers = for modi in node.modifiers where isKindOf modi class collect modi
modifiers.count > 0
)
else false
)
Page 2 / 2
Prev