Scene split and json export

0.5.0

- feat: add a render operator that render all scene
- feat: split selected object to a separated scene
- feat: crop border to objects
- feat: export AE position coordinates to replace layers
- change: ops gp.clean_compo_tree now take context.scene
- fix: tick `use_compositing` and untick `sequencer` in new scenes
This commit is contained in:
Pullusb
2021-09-30 18:51:49 +02:00
parent 852b893f8a
commit 2aa4ecc00e
9 changed files with 529 additions and 10 deletions
+20
View File
@@ -89,9 +89,29 @@ class GPEXP_OT_add_objects_to_render(bpy.types.Operator):
return {"FINISHED"}
class GPEXP_OT_split_to_scene(bpy.types.Operator):
bl_idname = "gp.split_to_scene"
bl_label = "Split Objects To Scene"
bl_description = "Take selected objects and send them to separate scene"
bl_options = {"REGISTER"}
@classmethod
def poll(cls, context):
return context.object and context.object.type == 'GPENCIL'
mode : bpy.props.StringProperty(default='ALL', options={'SKIP_SAVE'})
def execute(self, context):
fn.split_object_to_scene()
return {"FINISHED"}
classes=(
GPEXP_OT_add_layer_to_render,
GPEXP_OT_add_objects_to_render,
GPEXP_OT_split_to_scene,
)
def register():