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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2009   #1
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.

Ideas?

Thanks,

Alec
__________________
http://www.community3d.com/

Last edited by ACFred : 06 June 2009 at 07:18 PM.
 
Old 06 June 2009   #2
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
http://paulneale.com
 
Old 06 June 2009   #3
Cool! Thanks Paul.
__________________
http://www.community3d.com/
 
Old 06 June 2009   #4
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!
 
Old 06 June 2009   #5
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 07:19 PM.


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