SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / Replace object with Maya 2008
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 25-09-2008, 03:38 PM   #1
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
Thanks: 0
Thanked 35 Times in 33 Posts
Default 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
dubai3d is offline   Reply With Quote
Old 25-09-2008, 03:43 PM   #2
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
Thanks: 0
Thanked 35 Times in 33 Posts
Default

here is the image,
Attached Thumbnails
Click image for larger version

Name:	replace objects.jpg
Views:	262
Size:	122.3 KB
ID:	40328  
dubai3d is offline   Reply With Quote
Old 25-09-2008, 10:12 PM   #3
Falott
Registered User
 
Falott's Avatar
 
Join Date: Jan 2005
Location: vienna
Posts: 1,095
Thanks: 3
Thanked 20 Times in 18 Posts
Default

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.
Falott is offline   Reply With Quote
Old 26-09-2008, 05:58 AM   #4
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
NeoStrider is offline   Reply With Quote
Old 26-09-2008, 11:09 AM   #5
dubai3d
Registered User
 
Join Date: May 2008
Posts: 245
Thanks: 0
Thanked 35 Times in 33 Posts
Default

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
dubai3d is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Moderators on Simply Maya Miss_Nova Site News & Announcements 21 17-05-2011 12:24 AM
Maya Hair/Polygon Error ingram_no.7 Members Lounge 13 10-12-2010 10:27 AM
Simply Maya Resources Online Miss_Nova Site News & Announcements 1 08-12-2010 08:36 PM
LayoutTools for Maya 2011 is here... ctbram Members Lounge 1 06-12-2010 10:32 PM
Open a Lightwave file in Maya 2011 radiant777 Maya Basics & Newbie Lounge 2 04-12-2010 02:45 AM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.