poly-hammer / BlenderTools

Blender addons that improve the game development workflow between Blender and Unreal.
https://poly-hammer.github.io/BlenderTools/
MIT License
234 stars 15 forks source link

Send to Unreal - Enhance Python API by allowing other scripts to pass a specific list of objects to the send2ue operator. #101

Open jack-yao91 opened 19 hours ago

jack-yao91 commented 19 hours ago

Ill have to see if there would be a clean way to add it as a kwarg on the send2ue op, but I dont think there is a way in bpy to pass a list type to an op. So probably will be a property in the send2ue window manager like objects_override and scripts can set this list before calling the send2ue operator, which will send these objects instead, and then clear the list at the end of op execution.

This won't effect any existing functionality, and will only be available to python. I will add I section in the docs with a code snippet demonstrating how tools could use this.