Propagate uv sets through an inMesh connection.

143110913
Enthusiast

Propagate uv sets through an inMesh connection.

143110913
Enthusiast
Enthusiast

Let's say I have two shapes, shapeOne has a connection from outMesh to shapeTwo.inMesh.

 

Shape two will inherit all existing uv sets at the time of the connection, but if I create new uv sets on shapeOne, these will not be visible on shapeTwo unless I disconnect and connect the plug again. Is there a workaround this?

 

Things I've tried:

- Use maya.cmds.dgeval

- calling "maya.cmds.getAttr("pCubeShape1.uvSet[1].uvSetName")" to see if that would refresh the plug somehow.

 

Thanks for your help.

0 Likes
Reply
Accepted solutions (1)
462 Views
4 Replies
Replies (4)

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

This might be a stupid question... Is there a reason you can't just also connect the attribute "uvSets" on shapeOne to "uvSets" on shape two?

Because making that connection seems to update the uvSets without refreshing anything.

 

0 Likes

143110913
Enthusiast
Enthusiast

Hi @Kahylan,

 

You can only connect the individual index of the uvSets plug, so each individual uvSet, like uvSets[0]. 

0 Likes

143110913
Enthusiast
Enthusiast

My bad @Kahylan,

 

You can actually connect the uvSet main plug! I'll do some quick tests and accept your solution if there's not any issues and if that actually works for my scenario.

143110913
Enthusiast
Enthusiast
Accepting this answer, even though the node editor won't let you connect eh parent uvSets plug, I could do it through cmds. Thanks for your help @Kahylan