forked from GENIVI/ramses-blender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.py
23 lines (20 loc) · 954 Bytes
/
utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -------------------------------------------------------------------------
# Copyright (C) 2019 Daniel Werner Lima Souza de Almeida
# dwlsalmeida at gmail dot com
# -------------------------------------------------------------------------
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# -------------------------------------------------------------------------
import os
from . import debug_utils
log = debug_utils.get_debug_logger()
def get_addon_path():
script_file = os.path.realpath(__file__)
directory = os.path.dirname(script_file)
return directory
class CustomParameters():
"""Extra parameters we might set that are not a part of the Blender scene itself"""
def __init__(self):
self.shader_dir = ''
self.render_technique = ''