summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-22 00:15:50 -0400
committerOwl <isaclien9752@gmail.com>2025-08-22 00:15:50 -0400
commit51077c2fe8c160743a67303fb516126bb98afff7 (patch)
tree3cd3ccce7ab529c259b8796d22e4a56b3e03a9d8 /__init__.py
parentef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5 (diff)
downloadblenxy-51077c2fe8c160743a67303fb516126bb98afff7.tar.gz
blenxy-51077c2fe8c160743a67303fb516126bb98afff7.zip
changes until now - test
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py31
1 files changed, 13 insertions, 18 deletions
diff --git a/__init__.py b/__init__.py
index 7873723..da57085 100644
--- a/__init__.py
+++ b/__init__.py
@@ -1,27 +1,25 @@
-'''
-To load stuff that assumes a Blender scene is already loaded
-I need to wait for the BLEND file of the template to load and
-then add the functions and stuff I want after said file loads.
-The use of "bpy.app.handlers" and "persistent" help in this case
-for some reason I don't undertand yet >:] (but meh, it works)
+# To load stuff that assumes a Blender scene is already loaded
+# I need to wait for the BLEND file of the template to load and
+# then add the functions and stuff I want after said file loads.
+# The use of "bpy.app.handlers" and "persistent" help in this case
+# for some reason I don't undertand yet >:] (but meh, it works)
-References:
-https://s-nako.work/2020/09/blender-error-attributeerror-_restrictcontext-object-has-no-attribute-view_layer/
-https://web.archive.org/web/20210925181415/https://blenderbrew.com/custom-application-templates-in-blender/
-'''
+# References:
+# https://s-nako.work/2020/09/blender-error-attributeerror-_restrictcontext-object-has-no-attribute-view_layer/
+# https://web.archive.org/web/20210925181415/https://blenderbrew.com/custom-application-templates-in-blender/
import bpy
from bpy.app.handlers import persistent
-#################################################
# define function that sets all the blenxy stuff:
# galaxy unit, custom collada exporter/importer
# custom CSV animation file (for BCK) exporter/importer
@persistent
def set_blenxy_env(dummy): # "dummy" is a variable that is somehow
- # passed to set_blenxy_env when called by
- # bpy.app.handlers.load_post.append
+ # passed to set_blenxy_env when called by
+ # bpy.app.handlers.load_post.append
+
from . import required_modules # install needed modules for bundled python (awful)
from . import basic_settings # settings blenxy has
from . import collada_superbmd_import # custom importer for SuperBMD collada files
@@ -29,16 +27,13 @@ def set_blenxy_env(dummy): # "dummy" is a variable that is somehow
from . import obj_kcl_export # custom exporter for OBJ files (Collision)
from . import obj_neokclcreate_import # custom importer for OBJ files (Colllision, NeoKCLCreate)
from . import bck_import # custom importer for SMG BCK files
- # ~ from . import bck_export # custom exporter for SMG BCK files
- # ~ from . import csv_anim_bck_export # exporter for CSV files for BCK conversion
+ from . import bck_export # custom exporter for SMG BCK files
# more scripts can be added here
+ # ...
-
-#############################
# register/unregister stuff
# for set_blenxy_env function
-
def register():
print("\nWelcome to Blenxy!\n")
print("Setting environment...")