use Z by default

1.0.0

- fix: activate Z pass on newly created viewlayers
main
Pullusb 2022-06-01 16:50:59 +02:00
parent 4b59adf138
commit 2f7834ac94
3 changed files with 9 additions and 3 deletions

View File

@ -10,10 +10,14 @@ OR always duplicate (safe but heavy scenes...)
if duplicate, need to "connect" with namespace ('_duprender') or something
Activate / deactivate layer opaticty according to prefix
Activate / deactivate layer opacity according to prefix
Activate / deactivate all masks using MA layers
-->
1.0.0
- fix: activate Z pass on newly created viewlayers
0.9.9
- fix: `Export Camera 2D Position To AE` use tab again instead of space in key clipboard format. otherwise paste doesn't work in After-Effect

View File

@ -2,11 +2,12 @@ bl_info = {
"name": "GP Render",
"description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou",
"version": (0, 9, 9),
"version": (1, 0, 0),
"blender": (2, 93, 0),
"location": "View3D",
"warning": "",
"doc_url": "",
"doc_url": "https://gitlab.com/autour-de-minuit/blender/gp_render",
"tracker_url": "https://gitlab.com/autour-de-minuit/blender/gp_render/-/issues",
"category": "Object" }

1
fn.py
View File

@ -230,6 +230,7 @@ def get_view_layer(name, scene=None):
pass_vl = scene.view_layers.get(name)
if not pass_vl:
pass_vl = scene.view_layers.new(name)
pass_vl.use_pass_z = True
return pass_vl