Skip to content

Commit

Permalink
0_9_5
Browse files Browse the repository at this point in the history
Fixed intergration issues with blender_addon_ui
  • Loading branch information
DigiKrafting committed Dec 28, 2017
1 parent 3228a02 commit ce21551
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "Pipeline",
"description": "3D Pipeline Tools",
"author": "Digiography.Studio",
"version": (0, 9, 0),
"version": (0, 9, 5),
"blender": (2, 79, 0),
"location": "Info Toolbar, File -> Import, File -> Export",
"wiki_url": "https://github.com/Digiography/blender_addon_pipeline/wiki",
Expand Down Expand Up @@ -83,7 +83,15 @@ class ds_pipeline_addon_prefs(bpy.types.AddonPreferences):
option_show_zbc = bpy.props.BoolProperty(
name="Show ZBrushCore Buttons",
default=True,
)
)
option_show_iclone_toggle = bpy.props.BoolProperty(
name="iClone Toggle",
default=True,
)
option_show_iclone_toggle_state = bpy.props.BoolProperty(
name="iClone Toggle Button State",
default=False,
)
option_show_ic = bpy.props.BoolProperty(
name="Show iClone Buttons",
default=True,
Expand Down Expand Up @@ -191,21 +199,26 @@ def Draw_Pipeline_Menu(self, context):
layout = self.layout
layout.menu(Pipeline_Menu.bl_idname,icon="EXPORT")

def get_export_path():

_export_path = bpy.path.abspath('//') + bpy.context.user_preferences.addons[__package__].preferences.option_export_folder + '\\'

if not path.exists(_export_path):
makedirs(_export_path)
class ds_pipeline_iclone_toggle(bpy.types.Operator):
bl_idname = "ds_pipeline.iclone_toggle"
bl_label = "iClone"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
def execute(self, context):

return _export_path
if not bpy.context.user_preferences.addons[__package__].preferences.option_show_iclone_toggle_state:
bpy.context.user_preferences.addons[__package__].preferences.option_show_iclone_toggle_state=True
else:
bpy.context.user_preferences.addons[__package__].preferences.option_show_iclone_toggle_state=False
return {'FINISHED'}

def register():

from bpy.utils import register_class

register_class(ds_pipeline_addon_prefs)
register_class(ds_pipeline_prefs_open)
register_class(ds_pipeline_iclone_toggle)

from . import ds_obj
from . import ds_fbx
Expand Down Expand Up @@ -244,6 +257,7 @@ def unregister():

unregister_class(ds_pipeline_addon_prefs)
unregister_class(ds_pipeline_prefs_open)
unregister_class(ds_pipeline_iclone_toggle)

from . import ds_obj
from . import ds_fbx
Expand Down

0 comments on commit ce21551

Please sign in to comment.