Notifications
Clear all

[Closed] Help with Script: GoToEdit/ablePoly

you are right! i forgot it. my bad

anyway we still need a solution for multiple modifiers of the same class

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