Register Latest Topics
 
 
 


Reply
  Author   Comment  
ruchit

Cooking networks
Registered:
Posts: 156
Reply with quote  #1 
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 ??

0
pshipkov

SOuP Jedi
Registered:
Posts: 4,641
Reply with quote  #2 
uvChooser will do
0
ruchit

Cooking networks
Registered:
Posts: 156
Reply with quote  #3 
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
0
pshipkov

SOuP Jedi
Registered:
Posts: 4,641
Reply with quote  #4 
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 ?
0
ruchit

Cooking networks
Registered:
Posts: 156
Reply with quote  #5 
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
0
pshipkov

SOuP Jedi
Registered:
Posts: 4,641
Reply with quote  #6 
In this case you don't need the uvChooser1 node.

Just invoke the polyUVSet command upon control attribute change:
polyUVSet -currentUVSet -uvSet "mySpecialUvSet" myMeshObject;
0
ruchit

Cooking networks
Registered:
Posts: 156
Reply with quote  #7 
not working, Maya still using default "map1" on render (after polyUVSet cmd run).
0
pshipkov

SOuP Jedi
Registered:
Posts: 4,641
Reply with quote  #8 
Check the attached scene.
Change pSphere1.uvset to 0 and then 1.
Render each time.

 
Attached Files
ma uv_chooser.ma (107.42 KB, 4 views)

0
ruchit

Cooking networks
Registered:
Posts: 156
Reply with quote  #9 
Cool nice trick..But in arnold render its not updating. may be evaluation issue..is it working on your side ??

Thnx for file.
0
pshipkov

SOuP Jedi
Registered:
Posts: 4,641
Reply with quote  #10 
Well, that's Arnold's problem i guess.
Will take a look to see if we can massage it to react properly.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation: