Loop through modifiers using python - Broken

Loop through modifiers using python - Broken

JokerMartini23
Enthusiast Enthusiast
698 Views
0 Replies
Message 1 of 1

Loop through modifiers using python - Broken

JokerMartini23
Enthusiast
Enthusiast

So it appears that when attempting to loop through the modifiers of a given node, it only returns non-worldspace modifiers as scene below.

 

For example I have a box with these modifier:

  • Point Cache Binding (WS)
  • Cap Holes
  • Camera Map Modifier
  • Bend

When I run this code:

c = @"
node = MaxPlus.INode.GetINodeByName('Box001')
mod_count = node.GetNumModifiers()
print mod_count
for x in range(0, mod_count):
	mod = node.GetModifier(x)
	print mod.GetName()
			
"
python.execute c

returns
>> 3
>> Cap Holes
>> Camera Map Modifier
>> Bend
0 Likes
699 Views
0 Replies
Replies (0)