|
Pardon MEL, but that's what I have now
:)
global proc mfNewShaderForSL() { string $sl[]= `ls -sl -l`; for($o in $sl) { string $SG = `sets -renderable true -noSurfaceShader true -empty`; string $shader = `shadingNode -asShader lambert`; connectAttr -f ($shader + ".outColor") ($SG + ".surfaceShader"); select $o; //this is what you need ! sets -e -forceElement $SG; } } W dniu 2015-08-14 o 17:55, Kate Sendall pisze:
-- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/55CE1018.8090001%40gmail.com. For more options, visit https://groups.google.com/d/optout. |
- [Maya-Python] Python in Maya - script for applying a material... Kate Sendall
- Re: [Maya-Python] Python in Maya - script for applying a... f.michal
