hmmmm...another confusing thing is that if you connect the vertexAlpha plug
to something, and do again *mplug = mFnDependencyNode(~).findPlug("
vertexAlpha")* then you don't get anymore
*pCubeShape1.vertexColor[-1].vertexAlpha*, you get
*pCubeShape1.vertexColor[0].vertexAlpha*....even if you break later te
conections, the result remains *pCubeShape1.vertexColor[0].vertexAlpha*.
I have absolutly no idea what is going on with the* [-1]*
El viernes, 28 de agosto de 2020 a las 2:10:20 UTC+2, Rudi Hammad escribió:
>
> hi,
> I noticed that if you create a cube for instance, and you try to find its
> shape's plug called "vertexAlpha" (which is an element of a mplug array),
> with *mplug = mFnDependencyNode(~).findPlug(" vertexAlpha")* the name
> *mplug.name
> <http://mplug.name>()* is *pCubeShape1.vertexColor[-1].vertexAlpha*.
> what is interesting is that, if you go plug by plug starting from the top
> one until you get to "vertexAlpha" (so
> findPlug().child(~).elementByLogicalIndex(~).etc... ), the name is
> *pCubeShape1.vertexColor[0].vertexAlpha*.
> Any idea what that means?
>
> Thanks,
> R
>
--
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/c510c689-038d-4d18-a6bb-b8ea21f5c8efn%40googlegroups.com.