My first official, to business Polycount post! Woooo!
I'm wondering if there is any way in Maya to assign materials to objects that are on specific layers in the outliner?
If you are familiar with how Rhino layers work, that is the sort of functionality I'm looking for. So if you have a bunch of bolts on one specific layer, they will automatically be assign a "bolt" material unless the objects are moved to a different layer.
Looks like this in Rhino -
Now the outliner may not even be what I'm looking for because as far as I can tell the only way to get objects on the same layer is to group or attach them together. I'm not looking to do that! I know 3ds Max has a nice layering system, but unsure about Maya. Anyone have any ideas? If I'm not being clear let me know and I'll revise my sexy question.
Cheers folks!
Replies
But you can put all objects you want in a layer. And them use select all objects in layer to assign the material to them, without grouping.
Thanks for the quick replies too!
So much to do. Layers will work fine though! I didn't realize that Maya had a layer system like 3ds (I only thought it had render layers... Which I keep on reading get broken frequently at render-time which scares me. Need to figure out what that's all about).
So yeah, Python (and MEL) next year, get a good foundation in Maya this year.
Cheers though!
I ended up doing some scripting in MEL to automatically create layers (so I have aluminium layer, a chrome layer, a rubber layer... breaking things up by material). These are not render layers, but display layers.
Then I wrote up some MEL to give me a window with a few sets of buttons on it that automatically pushed any selection to the layer linked to the specific button.
I'm going to then write up some MEL that applies materials from my material Library to the specific layers (not sure how well MEL is going to be able to pull externally saved vRay materials.. I hope the script dialog displays the script doing this so I can copy and modify).
So that's what I ended up doing! Streamlined and efficient.
Next up is to figure out if there are any naming conventions to the CAD I'm importing that dictate material (hopefully there is something for product hardware, or frame parts, etc.. that are consistent). If there are I'll figure out a way to automate the process of sorting the product parts by layer using snippets from the product name upon import too!
Then script a batch importer. Then work myself out of a job. Haha.
Cheers.