SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Lounges / Maya Basics & Newbie Lounge / Replace object with Maya 2008

Maya Basics & Newbie Lounge Please post in this section ONLY if your question doesn't fit in anywhere else on the forum, or if you're not sure which section it's relevant to. We also have Free streaming trial available.

Join the conversation. Reply to post
 
Thread Tools
25-09-2008, 03:38 PM   #1
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
Replace object with Maya 2008
Hi
I am working with Maya 2008 and i was wondering if there is a way to replace objects in the scene with different object fast. Basically i have around 120 triangles(Globe glass), they all the same objects, i want to replace the Glass with a different color Glass and texture that i made but i dont want to start placing 120 object again. If someone knows something say something.
- all the objects are the same shape and size,
- just want to replace all the 120 object with new object(the same size and same shape, it is basically copy one of the object) without moving the 120 object around,

I tried tool/script swapper(from highend3d) , It works, the script replace the new object with the target object , but the problem is after done it the objects move out of the position to 0 right in the middle of grid, like snap it to grid, it bit hard when you have globe round shape and the glasses moved around,

I need help in easy way

thanks
  Reply with quote
25-09-2008, 03:43 PM   #2
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
here is the image,
Attached Thumbnails
Click image for larger version

Name:	replace objects.jpg
Views:	396
Size:	122.3 KB
ID:	40328  
  Reply with quote
25-09-2008, 10:12 PM   #3
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
the problem is, as far I understand this you need to have the pivots and orientation to be the same from both - original and replaced objects. because when you replace objA with objB you might want to point and orientconstraint the new pieces to the exact same point in space and with same orientation then the old pieces. so- if you detached all your pieces from a big original object this wont work, because you could center pivots but what about the orientation?

but you said the new stuff is basically just a copy of your old pieces - so why donīt you just assign a new shader? this would be much easier. and in case you have different UVs on the new stuff you could also transfer UVsets.

other than that I wrote a script once with the help of other folks. i think it was this script

http://forum.simplymaya.com/showthre...threadid=23648
__________________
everything starts and ends in the right place at the right time.
  Reply with quote
26-09-2008, 05:58 AM   #4
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
i'd say unless this is an animation where the new pieces move in to replace the old pieces i would instead put both objects in the same place and then simply animate the visibility of each object. voila it looks like the new one magically replaced the old one.
__________________
Accept no substitutions.
  Reply with quote
26-09-2008, 11:09 AM   #5
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
what about random swapper mel script, it is really easy, but when replace the new one , the new objects gets moved into middle of grid, that is the problem

http://www.highend3d.com/maya/downlo...pper-5317.html
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rendering Problem NoxRequiem Lighting & Rendering 6 01-04-2011 09:39 AM
design interface to manipulate maya object traptunder Maya Basics & Newbie Lounge 1 31-01-2010 06:14 PM
Maya 2008 zoom in camera and objects Flickering dubai3d Maya Basics & Newbie Lounge 7 20-09-2008 01:55 AM
Maya 2008 Grid Missing and Fatal Error t1mu Maya Technical Issues 0 14-03-2008 10:07 AM
Maya 2008 Render layers Jay Maya Basics & Newbie Lounge 4 27-02-2008 03:53 AM