PDA

View Full Version : How to determine the name of the default uv set?


hellknows2008
04-23-2009, 03:01 AM
Hi,

If we have a mesh with multiple uv sets and we link different uv sets then in the graph we would see those uvChoosers which serve the purpose of the linking. But if we are linking the default uv set (i suppose it is the default uv set and if try to delete that uv set then we get "The default uv set cannot be deleted" error) then we don't see any uvChooser.

So how can we determine the default uv set (for the case no uvChooser is present along the way)? In C++ api, the currentUVSetName() of MFnMesh will just return the currently selected UV set (for editing). Currently, I am using the first element from the string array returned by MFn::getUVSetNames(). Is it correct?

Thanks in advance

GiantG
04-23-2009, 07:52 AM
The first UV Set is the default one.

MEL:
getAttr pCubeShape1.uvSet[0].uvSetName;

Python
cmds.getAttr("pCubeShape1.uvSet[0].uvSetName")

hellknows2008
04-24-2009, 07:12 AM
Thanks GiantG for clarification

CGTalk Moderation
04-24-2009, 07:12 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.