Workflow: Enhance Python API, by allowing other scripts to pass a specific list of objects to the send2ue operator.
Description: And an API for the send2ue operator so that scripts can pass a list of objects to the op bi-passing the need to move objects under the Export collection. That way it would be easier to integrate other automation with the addon.
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.
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.