Jump to content
Mashman12

Turn Auto UV on/off with in code ?

Recommended Posts

Is there any way to disable the auto UV on a pb_Object in code ? I am trying to generate my own UVs of a pb_Object but I have to manually go into the UV editor each time and select all of the faces and convert them to manual before my code will react. 

Share this post


Link to post
Share on other sites

Yes, use the pb_Face::manualUV flag to toggle manual UVs per-face. In the API examples there's some code showing how to execute on object creation events, so I'd look at adapting that to iterate faces and toggle on manual UVs.

 

I'm writing this from my phone so I cannot provide a code sample, but if you'd like I can write it out later.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×