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 Tools Display Modes
  01 January 2011
MEL: replacing instance with other instance

hi !

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

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.
  01 January 2011
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.
  01 January 2011
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.
  01 January 2011
For your problem you should use particles and instancing , read maya docs regarding this.
  01 January 2011
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
  01 January 2011
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 11:22 PM.

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