selecting faces that are assigned by a shaader through mel
It has been awile since Iast visited, but I have question. I know it is possible to select the faces of an object that are assigned to a shader group in the hypershade window, but how do you do it in MEL? I tried looking at the script window, but it writes this....
select -cl; select -r polySurface.f[5:9]
which does not help me, because in my script it does not know which faces should be selected. My script is based on knowing the name of the assigned shader. Also, I tried googling it and found one person, on a different forum, and he mentioned to use hyperShade -smn (name of shader). I tried doing that and nothing happens.
Does anybody else have an idea how this is done?