MeshSyncDCCPlugins icon indicating copy to clipboard operation
MeshSyncDCCPlugins copied to clipboard

Support for adding custom python code to run during the sync process

Open erik-sutton95 opened this issue 2 years ago • 1 comments

Hi!

More of a question. Would it be possible or is it currently possible to run custom python code during the sync process? Similarly to how the "Bake Transform" or "Apply Modifiers" works, but with custom python. I'm trying to convert attributes created within a geometry node to a UV set so that the generated mesh can be properly used in Unity.

erik-sutton95 avatar May 27 '22 09:05 erik-sutton95

Hi, and sorry for the late reply. It's currently not possible to run custom python code. We are currently working on something similar, although it's still too early to tell when/if we are going to release it. Stay tuned !

sindharta avatar Jun 21 '22 12:06 sindharta

Thank you for feedback @Esindesign. In version 0.16 we added event lists that you can append your methods to, which should allow you to do what you want. These are called mesh_sync_on_prepare, mesh_sync_on_pre_export and mesh_sync_on_post_export.

schinkowski avatar Nov 30 '22 11:11 schinkowski

Closing. Feel free to reopen if necessary.

sindharta avatar Feb 08 '23 09:02 sindharta