PDA

View Full Version : Assigning (then losing) new textures


KDogHall
05-31-2008, 05:46 AM
So this is a question that has more to do with a pipeline/workflow of a project with regards to texturing. I am part of a group project using maya.

So here is our organization:

We have one maya scene for a character (character scene), one maya scene for our set/environment (set scene), and one scene for a specific shot (anim scene). Our anim scene has the character scene and set scene referenced into it.

Here is our problem:

We've already done renders of our anim scenes and such, which made us realize we want to change the textures of some of the pieces of our set or character. We may change one material from a phong to a blinn, or have to completely change another shader from scratch. Either way, the name of each shader changes at some point, but we make sure to change the name of the shader back to exactly what it was, and assign it to the necessary piece. However, once that happens, we open up our anim scenes and that specific piece of the set is in wireframe mode and doesn't believe that a texture is added to it.

Does anyone have any idea exactly why this is happening and if there is a solution to the problem? I know one solution would be to assign the textures within the anim scenes, but there are a lot of pieces to our set as well as 40 different shots, so that is a LOT of work to make a dirty fix.

All help is much appreciated!
Thanks,
Kevin

rendermaniac
06-01-2008, 12:16 AM
This is the perfect siutation to create a simple MEL script to do the reassigning for you.

The easiest way would be to add a string attribute to the material and shading group before you change anything.

You then just need a script which renames the shader to the name in the attribute. Then it should connect the shading group to the shader name stored in it's attribute.

Seperating assets into generic and shot scenes is a good idea, however I don't think many studios use referencing much (due to it being pretty buggy in previous Maya versions mainly), but have a MEL import script to manage assets instead.

Simon

CGTalk Moderation
06-01-2008, 12:16 AM
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.