#246102
hello world !

again a maya/MEL-question

if i have a material called myMaterial which has a texture applied to it, plugged in the color channel, for example checker1 or file33.

how do i get the node name of the texture channel as a string when only the material's name is known?

* * *

thanks !
User avatar
By deadalvs
#246105
HA !
i guess i found it myself now ...

example for a material called lambert1 :

defaultNavigation -defaultTraversal -destination "lambert1.color";
// result: checker1
User avatar
By Mihnea Balta
#246115
If you want to get just the node name:
Code: Select all
listConnections -source true lambert1.color;
// Result: checker1 // 
If you want the plug that's connected to the color attribute:
Code: Select all
connectionInfo -sourceFromDestination lambert1.color;
// Result: checker1.outColor // 
User avatar
By deadalvs
#246117
aah, thanks for that !

Mihnea, You're the man !
User avatar
By deadalvs
#246120
hey Mihnea...

what kind of education did You make ? especially in MEL ?

learning by doing or with professional schools ?
Help with swimming pool water

Hi Andreas " I would say the above "fake[…]

render engines and Maxwell

Other rendering engines are evolving day by day, m[…]