Message 1 of 1
Loop through modifiers using python - Broken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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