Hello everyone.
I am fairly new at scripting in maya/python. A few days ago i watched some youtube videos about python scripting for maya artists. watched arvids video about making a script to convert maya shaders to arnold shaders.
anyway, here is what i am having trouble with
aiRampHi_mask = pmc.duplicate("aiRamp_Hi", ic = True, ic = True, name = "aiRampHi_mask")
aiRampHi_mask.outColorR >> aiLayer.mix4
the error
# Error: 'list' object has no attribute 'outColorR'
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# AttributeError: 'list' object has no attribute 'outColorR' #
I can connect the two manually but i cant using the script. what is missing here?
Thanks!