Jump to content
3DCoat Forums

scripting uv room functionality and bug(?)


cread
 Share

Recommended Posts

  • Member

Hi, I have some questions about python scripting in the uv room (although C++ is fine too).

1. I'd like to precisely scale the islands and the UI gizmo only appears to support mouse input which is too inexact for my needs. How can i get the selected UV islands via API?  the uv_rotation sample shows how to get ALL islands by count but not by selected islands.  There is a function called coat.uv.selectedToMesh which is probably more efficient than the sample (since the mesh is backed by a c++ object) but i don't see how to get any transformed results BACK to the selected UV islands.  I don't see any "ID" (such as objectID) that one could use to take the transforms and insert them back similar to coat.uv.meshToIsland ().

2. I'd also like to use the coat.uv.toUvSet function which appears to work fine EXCEPT that it does not remove the UV islands from the source material.  Is there a way to delete from the source material after i've called coat.uv.toUvSet ()?  ex. coat.uv.deleteIsland ()

3. Finally, there appears to be a bug (3dcoat 2025.10) with coat.uv.uvSetsCount () which appears to be returning a stale value.  Say i have 3 materials and add a new blank one.  Initially uvSetSCount() is returning 3 unless i save my 3dc file and reload it.  After reload the API correctly reports 4.  i.e. coat.uv.uvSetCount () == 4. 

Thanks for 3dcoat - it's amazing.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...