Combined Texture Channel

27 views
Skip to first unread message

Kurian O.S

unread,
Aug 6, 2015, 9:25:45 PM8/6/15
to python_in...@googlegroups.com
Hey,

Anyone tried to change a shader texture channel ( Hardware Texturing) contained textures through python ?. I tried but no luck, AE never get updated. Any hints ?

Thanks

--
--:: Kurian ::--

Ahmet Levent Tasel

unread,
Aug 7, 2015, 3:54:17 PM8/7/15
to Python Programming for Autodesk Maya
try this :)

import maya.cmds as cmds


shaderNode
= '<shaderName>'
if cmds.objExists(shaderNode):
    materialInfoNode
= cmds.ls(cmds.listConnections(shaderNode), typ='materialInfo')[-1]
    cmds
.connectAttr('%s.message' % shaderNode, '%s.texture' % materialInfoNode, nextAvailable=True)



Kurian O.S

unread,
Aug 11, 2015, 7:56:13 PM8/11/15
to python_in...@googlegroups.com
Thanks :)

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/29ac65d2-9012-47d6-b958-b25b5729e60a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--
Reply all
Reply to author
Forward
0 new messages