Get nodes sharing instanced modifier?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2009
Get nodes sharing instanced modifier?

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.




Last edited by ACFred : 06 June 2009 at 07:18 PM.
  06 June 2009
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: %\n" x n
Paul Neale
  06 June 2009
Cool! Thanks Paul.
  06 June 2009
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!
Jordan Walsh
Senior FX artist

Showreel 2012
Check out my scripts at Script Spot!
  06 June 2009
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:45 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.