# -*- coding=UTF-8 -*-
""" Config object for module.  """

from __future__ import absolute_import, print_function, unicode_literals

import os

from wulifang.vendor.wlf.config import Config
from wulifang.vendor.wlf.path import TAG_PATTERN

START_MESSAGE = "{:-^50s}".format("COMP START")

# bitmask
IGNORE_EXISTED = 1 << 0
MULTI_THREADING = 1 << 1


class CompConfig(Config):
    """Comp config."""

    default = {
        "fps": 25,
        "footage_pat": r"^.+\.exr[0-9\- ]*$",
        "tag_pat": TAG_PATTERN,
        "mp": r"Z:\SNJYW\MP\EP14\MP_EP14_1.nk",
        "precomp": True,
        "masks": True,
        "colorcorrect": True,
        "filters": True,
        "zdefocus": True,
        "depth": True,
        "other": True,
    }
    path = os.path.expanduser("~/.nuke/wlf.comp.json")


class BatchCompConfig(Config):
    """BatchComp config."""

    default = {
        "dir_pat": r"^.{4,}$",
        "output_dir": "E:/precomp",
        "input_dir": "Z:/SNJYW/Render/EP",
        "txt_name": "镜头备注",
        "exclude_existed": True,
    }
    path = os.path.expanduser("~/.nuke/wlf.batchcomp.json")
