Home Coding, Scripting, Shaders

PyMel[Maya] accesing hue in color

dlz
dlz
polycounter lvl 3
Offline / Send Message
Pinned
dlz polycounter lvl 3
I'm developing a tool regarding shaders in Maya and I'm learning pymel to do it (until now i rely in maya.cmds and mel).
I like pymel a lot but i'm having trouble to understand the hierarchy of nodes like color. i know that you can set a color in a shader like this:

selObj = pm.ls(sl=1)

blinnDark = pm.shadingNode('blinn', asShader=True)

blinnDark.color.set([0.3, 0.3, 0.3])

pm.select(selObj)

pm.hyperShade( assign=blinnDark )

How can I access to attributes like hue, saturation, value and edit and set them?


Replies

Sign In or Register to comment.