ruchit
Hi,
I have polyObject with multiple uvSets, now i want to add ctrl in rig to switch uvSets. So is it possible to do using  uvChooser node ?? any other solution ??

Quote 0 0
pshipkov
uvChooser will do
Quote 0 0
ruchit
i made nodeConnection like this

pSphereShape1.uvSet[0].uvSetName  --->  uvChooser1.uvSets[0]
pSphereShape1.uvSet[1].uvSetName  --->  uvChooser1.uvSets[1]
pSphereShape1.uvSet[2].uvSetName  --->  uvChooser1.uvSets[2]
pSphereShape1.uvSet[3].uvSetName  --->  uvChooser1.uvSets[3]

and

uvChooser1.outUv ---> place2dTexture1.uvCoord


now how to add switch on uvChooser1 ??? there is nothing like enum attribute on uvChooser to switch
Quote 0 0
pshipkov
Maybe we have misunderstanding here.
Are you talking about just switching the current uvSet on a mesh object, or linking different uv sets to different textures for rendering ?
Quote 0 0
ruchit
switching the current uvSet on a mesh object

below connection works, but in this i will need to connect uvSet[n].uvSetName manually to uvChooser.
pSphereShape1.uvSet[0].uvSetName  --->  uvChooser1.uvSets[0]  ---> uvChooser1.outUv ---> place2dTexture1.uvCoord
Quote 0 0
pshipkov
In this case you don't need the uvChooser1 node.

Just invoke the polyUVSet command upon control attribute change:
polyUVSet -currentUVSet -uvSet "mySpecialUvSet" myMeshObject;
Quote 0 0
ruchit
not working, Maya still using default "map1" on render (after polyUVSet cmd run).
Quote 0 0
pshipkov
Check the attached scene.
Change pSphere1.uvset to 0 and then 1.
Render each time.
Quote 0 0
ruchit
Cool nice trick..But in arnold render its not updating. may be evaluation issue..is it working on your side ??

Thnx for file.
Quote 0 0
pshipkov
Well, that's Arnold's problem i guess.
Will take a look to see if we can massage it to react properly.

Quote 0 0

Add a Website Forum to your website.