Thanks :)

On Fri, Aug 7, 2015 at 12:54 PM, Ahmet Levent Tasel <leventta...@gmail.com>
wrote:

> 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)
>
>
>
>
>
> On Thursday, August 6, 2015 at 6:25:45 PM UTC-7, Kurian wrote:
>>
>> 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 ::--
>>
> --
> 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_maya+unsubscr...@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
> <https://groups.google.com/d/msgid/python_inside_maya/29ac65d2-9012-47d6-b958-b25b5729e60a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
--:: Kurian ::--

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CANEMyhNgmtWhtkvp3qo2Mc6__4dfAMiAb5doDSJzuLEiHGwAgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to