multiple UVSets as input?

   10762   20   3
User Avatar
Member
10 posts
Joined: June 2018
Offline
juliap
At least one of the same issues as with the multiple Color names the attributes that the plugin uses are string tuples (and not string arrays and not multi parms) - Of course just changing it to tuples didn't fix all the color set problems in the recent maya_color_set post, so I will make sure I can still get it to work locally. Note that the output mapping was broken until 16.5.364, so if you're using an older version than that you will need to update.

I created a python sop which just hardcoded the name mapping:
node = hou.pwd()
geo = node.geometry()
a1 = geo.addAttrib(hou.attribType.Global, “maya_uv_name”, “uv”)
a2 = geo.addAttrib(hou.attribType.Global, “maya_uv_mapped_uv”, “uv”)
geo.setGlobalAttribValue(“maya_uv_name”, (“map1”, “uvSet”))
geo.setGlobalAttribValue(“maya_uv_mapped_uv”, (“uv”, “uv2”))

Which successfully set the maya names

Thank you so much! This helps a lot! Im still a little green on this subject, so i hope you mind me asking a few more questions. Is this only possible through python? or is there a way to do it with vex as well? Im just curious.
2)Is changing the names of the colors not possible right now? sorry, i think that is what you meant on your post. Not sure. Either way, i tried changing the name of the color, but it didnt seem to work.

node = hou.pwd()
geo = node.geometry()
a1=geo.addAttrib(hou.attribType.Global,"maya_uv_name","uv")
a2=geo.addAttrib(hou.attribType.Global,"maya_uv_mapped_uv","uv")
a3=geo.addAttrib(hou.attribType.Global,"maya_colorset_name","Cd")
a4=geo.addAttrib(hou.attribType.Global,"maya_colorset_mapped_Cd","Cd")
geo.setGlobalAttribValue("maya_uv_name",("map1","map2"))
geo.setGlobalAttribValue("maya_uv_mapped_uv",("uv","uv2"))
geo.setGlobalAttribValue("maya_colorset_name",("LAYER1"))
geo.setGlobalAttribValue("maya_colorset_mapped_Cd",("Cd"))

Thank you!
  • Quick Links