MEL: replacing instance with other instance

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 01 January 2011   #1
MEL: replacing instance with other instance

hi !

does anyone have some code or input available which would help me with the following task:

given:
5 instances of an object, scattered somewhere in the space, with differenc translation, rotation and scale.

is there a way to replace the base mesh directly, so that all instances are replaced without having to use a loop and replacing all instances the"hard way ?

in Cinema4D, for example, I'd just retarget the instance to an other mesh or group.

any input appreciated !
__________________
Content Manager, Procedural, Inc.
www.procedural.com
 
Old 01 January 2011   #2
You can do this with "default" maya , no script required.

Create instancer node , then in your particle shape node there is tab regarding instancing , with all attributes that you need.

In instacer node you can select and replace object to be instanced.
 
Old 01 January 2011   #3
I'm not 100% sure .. I am not working with particles .. just plain instancing of standard objects, such as trees .. does that work the same ?

thanks so far !!
__________________
Content Manager, Procedural, Inc.
www.procedural.com
 
Old 01 January 2011   #4
For your problem you should use particles and instancing , read maya docs regarding this.
 
Old 01 January 2011   #5
For a few static objects using particle instancing is overkill..

You can use the Modify>Replace Objects tool.. although you have to select each object you want to replace at a time.. it could be scripted to do many at one time


You could also reference the object and then when you update the model in the referenced file it will update in the other scene where they have been scattered.
__________________
blah blah blah
 
Old 01 January 2011   #6
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 08:52 AM.


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