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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user