I lost my UVs

I tried to make UVs on empty UVset.
So I draw some scripts.
First, I get data related to UVs (UVcoords, uvCounts, UVIds, uvSet) from a mesh.
And, with the data I started to create new UVs to another mesh.

  • create a empty uvSet
  • setUVs(uCoords, vCoords, uvSet)
  • assignUVs(uvCounts, UVIds, uvSet)
    then, I saw duplicate of my deer UVs.

but... after I save a scene, when I load the scene, I can't see my UVs, just empty uvSet.
Do I need to lock my UVs? So, how can I lock UVs?

Do I need to lock my UVs? So, how can I lock UVs?

No. However theres a caveat at using maya, if you directly manipulate data then you must make sure you are actually working on a nodes data, not the raw data. If you work on raw maya data maya will just dgevaluate everything you made out.

See thing is using maya is about making nodes to do youe work. Maya is not about the raw database of things, unless they happen to be the plugs of a node, and even so that they arent connected and are stored plugs. So understanding how maya works is the key to doing anything in maya, which is why a bad programmer with lots of maya experience is more usefull than a good programmer with no maya experience (because they will fail to get anything done).