Notifications
Clear all
[Closed] Get nodes sharing instanced modifier?
Jun 22, 2009 8:12 pm
Is there a quick way to identify all of the nodes that use the same instanced modifier?
I’d rather not have to iterate through all of the nodes in the scene to get this information.
Ideas?
Thanks,
Alec
3 Replies
Jun 22, 2009 8:12 pm
You could use getClassInstances theModifier and then track those backwards for the nodes using refs.dependentNodes.
for x in (getClassInstances bend) do
(
for n in (refs.dependentNodes x) do
(
format "Bend: % Node: %
" x n
)
)
Jun 22, 2009 8:12 pm
Wouldnt that just get all objects with any bend in the scene applied? Would work fine if you only had one bend that is instanced in the scene, if you have multiple bends and only some are instances and you know an object that has that bend on it you can do:
refs.dependentNodes $.modifiers["Bend"]
and it should give you all the objects with the instance of that bend.
edit: sorry paul, you are listing them all!! ha. I should read posts better!