Add pattern for layer group merge and check layer in autobuild
1.8.1 - added: `Reset Layer State` (Check layer) in Autobuild - added: environment variable `GP_RENDER_LAYER_GROUP_PATTERN` for layer merging regex pattern
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
from typing import Coroutine
|
||||
import bpy
|
||||
import os
|
||||
import re
|
||||
import json
|
||||
|
||||
from mathutils import Vector
|
||||
from pathlib import Path
|
||||
from itertools import groupby
|
||||
from math import isclose
|
||||
from collections import defaultdict
|
||||
from time import time
|
||||
import json
|
||||
|
||||
from . constant import RD_SCENE_NAME
|
||||
|
||||
@@ -579,8 +580,8 @@ def group_adjacent_layer_prefix_rlayer(ob, excluded_prefix=[], first_name=True):
|
||||
:first_name: Keep the viewlayer of the bottom layer in group, else last
|
||||
'''
|
||||
|
||||
from itertools import groupby
|
||||
re_prefix = re.compile(r'^([A-Z]{2})_')
|
||||
pattern = os.environ.get('GP_RENDER_MERGE_PATTERN', r'^([A-Z]{2})_')
|
||||
re_prefix = re.compile(pattern)
|
||||
|
||||
if isinstance(excluded_prefix, str):
|
||||
excluded_prefix = [p.strip() for p in excluded_prefix.split(',')]
|
||||
|
||||
Reference in New Issue
Block a user