-
Notifications
You must be signed in to change notification settings - Fork 2
/
global_variables.py
62 lines (49 loc) · 1.84 KB
/
global_variables.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
import os
# Add-on info.
GBH_PACKAGE = __package__
GBH_VERSION = None
# URLs.
URL_DOCS = "https://gixo.xyz/GBHToolDocs/"
URL_CONTACT = "https://gixo.xyz"
URL_GITHUB = "https://github.com/GixoXYZ/BlenderGBHTool"
URL_GUMROAD = "https://gixo.gumroad.com/l/GBHTool"
URL_ISSUE = "https://github.com/GixoXYZ/BlenderGBHTool/issues/new"
URL_DISCUSS = "https://github.com/GixoXYZ/BlenderGBHTool/discussions/8"
URL_YOUTUBE = "https://www.youtube.com/playlist?list=PLFexHVb3hTS5wZYhBsFuzS574-5uv1RZ5"
URL_TWITTER = "https://twitter.com/GixoXYZ"
URL_DISCORD = "https://discord.com/invite/TxTpJ8FQaz"
# Directories.
current_file_path = os.path.dirname(__file__)
blender_path = bpy.utils.resource_path("LOCAL")
blender_config_path = bpy.utils.user_resource("CONFIG")
DIR_LIBRARY = os.path.join(current_file_path, "gbh_library/")
DIR_ASSETS = os.path.join(current_file_path, "assets/")
DIR_PRESETS = os.path.join(current_file_path, "presets/")
DIR_TEXTURES = os.path.join(current_file_path, "textures/")
DIR_ICONS = os.path.join(current_file_path, "icons/")
DIR_BLENDER_ASSETS = os.path.join(
blender_path,
"datafiles/assets/geometry_nodes/"
)
DIR_BLENDER_DATA_FOLDER = os.path.dirname(blender_config_path)
# Files.
PRE_MADE_NODES_FILE = "pre_made_ng.blend"
# UI.
LIST_ROWS = 4
# Directory and file.
INVALID_PATH = "Selected path is not valid."
# Updating.
update_checking = False
branches_cache = [("NA", "Check for Updates", "")]
branches_latest_commits = {}
URL_GITHUB_API = "https://api.github.com/repos/GixoXYZ/BlenderGBHTool"
ULR_UPDATE = f"{URL_GITHUB}/releases"
ULR_UPDATE_INFO = f"{URL_GITHUB}/releases/latest"
URL_RELEASE_LATEST = f"{URL_GITHUB_API}/releases/latest"
URL_BRANCHES = f"{URL_GITHUB_API}/branches"
# Github.
bug_template_fetching = False
feat_template_fetching = False
fetch_template_message = ""