2021-09-07 23:11:42 +02:00
|
|
|
bl_info = {
|
2021-09-16 12:22:11 +02:00
|
|
|
"name": "GP Render",
|
2021-09-07 23:11:42 +02:00
|
|
|
"description": "Organise export of gp layers through compositor output",
|
|
|
|
"author": "Samuel Bernou",
|
2022-02-07 16:05:47 +01:00
|
|
|
"version": (0, 9, 7),
|
2021-09-07 23:11:42 +02:00
|
|
|
"blender": (2, 93, 0),
|
|
|
|
"location": "View3D",
|
|
|
|
"warning": "",
|
|
|
|
"doc_url": "",
|
|
|
|
"category": "Object" }
|
|
|
|
|
|
|
|
|
|
|
|
from . import OP_add_layer
|
2021-09-08 18:29:10 +02:00
|
|
|
from . import OP_merge_layers
|
2021-09-07 23:11:42 +02:00
|
|
|
from . import OP_clear
|
2021-09-10 18:26:55 +02:00
|
|
|
from . import OP_clean
|
|
|
|
from . import OP_connect_toggle
|
2021-09-08 18:29:10 +02:00
|
|
|
from . import OP_manage_outputs
|
2021-09-14 18:54:30 +02:00
|
|
|
from . import OP_scene_switch
|
2021-09-30 18:51:49 +02:00
|
|
|
from . import OP_crop_to_object
|
|
|
|
from . import OP_render_scenes
|
2022-01-26 16:32:33 +01:00
|
|
|
from . import OP_check_scene
|
|
|
|
from . import OP_post_render
|
2021-09-24 18:36:58 +02:00
|
|
|
from . import OP_render_pdf
|
2021-11-04 22:20:21 +01:00
|
|
|
from . import OP_export_to_ae
|
2021-09-24 18:36:58 +02:00
|
|
|
from . import prefs
|
2021-09-17 16:31:26 +02:00
|
|
|
from . import OP_setup_layers
|
2021-09-07 23:11:42 +02:00
|
|
|
from . import ui
|
|
|
|
|
2021-10-25 16:02:11 +02:00
|
|
|
from .fn import scene_aa
|
|
|
|
|
|
|
|
def update_scene_aa(context, scene):
|
2021-10-25 16:19:37 +02:00
|
|
|
scene_aa(toggle=bpy.context.scene.use_aa)
|
2021-10-25 16:02:11 +02:00
|
|
|
|
2021-09-07 23:11:42 +02:00
|
|
|
import bpy
|
|
|
|
|
|
|
|
def register():
|
|
|
|
if bpy.app.background:
|
|
|
|
return
|
|
|
|
|
2021-09-24 18:36:58 +02:00
|
|
|
prefs.register()
|
2021-09-07 23:11:42 +02:00
|
|
|
OP_add_layer.register()
|
|
|
|
OP_clear.register()
|
2021-09-10 18:26:55 +02:00
|
|
|
OP_clean.register()
|
|
|
|
OP_connect_toggle.register()
|
2021-09-08 18:29:10 +02:00
|
|
|
OP_merge_layers.register()
|
|
|
|
OP_manage_outputs.register()
|
2021-09-14 18:54:30 +02:00
|
|
|
OP_scene_switch.register()
|
2021-09-30 18:51:49 +02:00
|
|
|
OP_crop_to_object.register()
|
|
|
|
OP_render_scenes.register()
|
2022-01-26 16:32:33 +01:00
|
|
|
OP_check_scene.register()
|
|
|
|
OP_post_render.register()
|
2021-09-24 18:36:58 +02:00
|
|
|
OP_render_pdf.register()
|
2021-11-04 22:20:21 +01:00
|
|
|
OP_export_to_ae.register()
|
2021-09-17 16:31:26 +02:00
|
|
|
OP_setup_layers.register()
|
2021-09-07 23:11:42 +02:00
|
|
|
ui.register()
|
|
|
|
# bpy.types.Scene.pgroup_name = bpy.props.PointerProperty(type = PROJ_PGT_settings)
|
2021-10-25 16:02:11 +02:00
|
|
|
bpy.types.Scene.use_aa = bpy.props.BoolProperty(
|
|
|
|
name='Use Native Anti Aliasing',
|
|
|
|
default=True,
|
|
|
|
description='\
|
|
|
|
Should be Off only if tree contains a merge_NG or alpha-over-combined renderlayers.\n\
|
|
|
|
Auto-set to Off when using node merge button\n\
|
|
|
|
Toggle: AA settings of and muting AA nested-nodegroup',
|
|
|
|
update=update_scene_aa)
|
2021-09-07 23:11:42 +02:00
|
|
|
|
|
|
|
def unregister():
|
|
|
|
if bpy.app.background:
|
|
|
|
return
|
|
|
|
|
|
|
|
ui.unregister()
|
2021-09-17 16:31:26 +02:00
|
|
|
OP_setup_layers.unregister()
|
2022-01-26 16:32:33 +01:00
|
|
|
OP_check_scene.unregister()
|
|
|
|
OP_post_render.unregister()
|
2021-11-04 22:20:21 +01:00
|
|
|
OP_export_to_ae.unregister()
|
2021-09-24 18:36:58 +02:00
|
|
|
OP_render_pdf.unregister()
|
2021-09-30 18:51:49 +02:00
|
|
|
OP_render_scenes.unregister()
|
|
|
|
OP_crop_to_object.unregister()
|
2021-09-14 18:54:30 +02:00
|
|
|
OP_scene_switch.unregister()
|
2021-09-08 18:29:10 +02:00
|
|
|
OP_manage_outputs.unregister()
|
|
|
|
OP_merge_layers.unregister()
|
2021-09-10 18:26:55 +02:00
|
|
|
OP_connect_toggle.unregister()
|
|
|
|
OP_clean.unregister()
|
2021-09-07 23:11:42 +02:00
|
|
|
OP_clear.unregister()
|
|
|
|
OP_add_layer.unregister()
|
2021-09-24 18:36:58 +02:00
|
|
|
prefs.unregister()
|
2021-09-07 23:11:42 +02:00
|
|
|
|
2021-10-25 16:02:11 +02:00
|
|
|
del bpy.types.Scene.use_aa
|
2021-09-07 23:11:42 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
register()
|