Merge branch 'main' of ssh://git.autourdeminuit.com:222/autour_de_minuit/gp_render into main
commit
e97a86b624
|
@ -13,12 +13,16 @@ if duplicate, need to "connect" with namespace ('_duprender') or something
|
||||||
Activate / deactivate layer opacity according to prefix
|
Activate / deactivate layer opacity according to prefix
|
||||||
Activate / deactivate all masks using MA layers
|
Activate / deactivate all masks using MA layers
|
||||||
-->
|
-->
|
||||||
|
1.8.2
|
||||||
1.8.1
|
|
||||||
|
|
||||||
- added: `Reset Layer State` (Check layer) in Autobuild
|
- added: `Reset Layer State` (Check layer) in Autobuild
|
||||||
- added: environment variable `GP_RENDER_LAYER_GROUP_PATTERN` for layer merging regex pattern
|
- added: environment variable `GP_RENDER_LAYER_GROUP_PATTERN` for layer merging regex pattern
|
||||||
|
|
||||||
|
1.8.1
|
||||||
|
|
||||||
|
- added: transfer timeline marker to render scene
|
||||||
|
- fix: scene viewport switch when using autobuild manually
|
||||||
|
|
||||||
1.8.0
|
1.8.0
|
||||||
|
|
||||||
- added: Allow to rename output on the fly using `connect selection to output`
|
- added: Allow to rename output on the fly using `connect selection to output`
|
||||||
|
|
|
@ -181,6 +181,9 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||||
self.report({'ERROR'}, f'Abort, scene "{self.scene}" already exists')
|
self.report({'ERROR'}, f'Abort, scene "{self.scene}" already exists')
|
||||||
return {'CANCELLED'}
|
return {'CANCELLED'}
|
||||||
render_scn = fn.get_render_scene(scene_name=self.scene, create=True)
|
render_scn = fn.get_render_scene(scene_name=self.scene, create=True)
|
||||||
|
else:
|
||||||
|
## Create render scene with default name
|
||||||
|
render_scn = fn.get_render_scene(create=True)
|
||||||
|
|
||||||
if self.node_scene:
|
if self.node_scene:
|
||||||
node_scene = fn.get_compo_scene(scene_name=self.node_scene, create=True) # create if not exists
|
node_scene = fn.get_compo_scene(scene_name=self.node_scene, create=True) # create if not exists
|
||||||
|
|
10
fn.py
10
fn.py
|
@ -290,6 +290,11 @@ def get_compo_scene(scene_name=None, create=True):
|
||||||
setattr(scn, attr, getattr(current, attr))
|
setattr(scn, attr, getattr(current, attr))
|
||||||
copy_settings(current.render, scn.render)
|
copy_settings(current.render, scn.render)
|
||||||
|
|
||||||
|
## Copy markers
|
||||||
|
# for marker in current.timeline_markers:
|
||||||
|
# new_marker = scn.timeline_markers.new(marker.name, frame=marker.frame)
|
||||||
|
# new_marker.camera = marker.camera
|
||||||
|
|
||||||
scn.use_nodes = True
|
scn.use_nodes = True
|
||||||
|
|
||||||
## Clear node tree
|
## Clear node tree
|
||||||
|
@ -326,6 +331,11 @@ def get_render_scene(scene_name=None, create=True):
|
||||||
if ob.type in ('CAMERA', 'LIGHT'):
|
if ob.type in ('CAMERA', 'LIGHT'):
|
||||||
render_scn.collection.objects.link(ob)
|
render_scn.collection.objects.link(ob)
|
||||||
|
|
||||||
|
## Copy markers
|
||||||
|
for marker in current.timeline_markers:
|
||||||
|
new_marker = render_scn.timeline_markers.new(marker.name, frame=marker.frame)
|
||||||
|
new_marker.camera = marker.camera
|
||||||
|
|
||||||
render_scn.use_nodes = True
|
render_scn.use_nodes = True
|
||||||
|
|
||||||
## Clear node tree (initial view layer stuff)
|
## Clear node tree (initial view layer stuff)
|
||||||
|
|
Loading…
Reference in New Issue