Skip to content

Commit 79caaff

Browse files
committed
1_7_0
Rebranding
1 parent 6fd8313 commit 79caaff

3 files changed

Lines changed: 137 additions & 137 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Pipeline/Workflow import/export for Substance Painter.
4444

4545
# Installation
4646

47-
Download either the tar.gz or zip from [https://github.com/Digiography/blender_addon_substance_painter/releases/latest](https://github.com/Digiography/blender_addon_substance_painter/releases/latest)
47+
Download either the tar.gz or zip from [https://github.com/DigiKrafting/blender_addon_substance_painter/releases/latest](https://github.com/DigiKrafting/blender_addon_substance_painter/releases/latest)
4848

4949
Installing an Addon in Blender
5050

__init__.py

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
# ##### END GPL LICENSE BLOCK #####
1818

1919
bl_info = {
20-
"name": "Substance Painter",
21-
"description": "Substance Painter Tools",
22-
"author": "Digiography.Studio",
23-
"version": (1, 6, 5),
20+
"name": "DKS Substance Painter",
21+
"description": "Substance Painter Pipeline",
22+
"author": "DigiKrafting.Studio",
23+
"version": (1, 7, 0),
2424
"blender": (2, 80, 0),
2525
"location": "Info Toolbar, File -> Import, File -> Export, Menu",
26-
"wiki_url": "https://github.com/Digiography/blender_addon_substance_painter/wiki",
27-
"tracker_url": "https://github.com/Digiography/blender_addon_substance_painter/issues",
26+
"wiki_url": "https://github.com/DigiKrafting/blender_addon_substance_painter/wiki",
27+
"tracker_url": "https://github.com/DigiKrafting/blender_addon_substance_painter/issues",
2828
"category": "Import-Export",
2929
}
3030

3131
import bpy
3232

33-
from . import ds_sp
33+
from . import dks_sp
3434

35-
class ds_sp_addon_prefs(bpy.types.AddonPreferences):
35+
class dks_sp_addon_prefs(bpy.types.AddonPreferences):
3636

3737
bl_idname = __package__
3838

@@ -61,7 +61,7 @@ class ds_sp_addon_prefs(bpy.types.AddonPreferences):
6161
option_export_type : bpy.props.EnumProperty(
6262
items=[('obj', "obj", "obj"),('fbx', "fbx", "fbx"),],
6363
name="Export Type",
64-
default='obj',
64+
default='fbx',
6565
)
6666
option_import_ext : bpy.props.EnumProperty(
6767
items=[('png', "png", "png"),('jpeg', "jpeg", "jpeg"),('tiff', "tiff", "tiff"),],
@@ -105,42 +105,42 @@ def draw(self, context):
105105
box.prop(self, 'option_no_new')
106106
box.prop(self, 'option_save_before_export')
107107

108-
class ds_sp_menu(bpy.types.Menu):
108+
class dks_sp_menu(bpy.types.Menu):
109109

110110
bl_label = " Substance Painter"
111-
bl_idname = "ds_sp.menu"
111+
bl_idname = "dks_sp.menu"
112112

113113
def draw(self, context):
114114

115115
layout = self.layout
116116

117-
self.layout.operator(ds_sp.ds_sp_export_scene.bl_idname,icon="EXPORT")
118-
self.layout.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='Substance Painter (Scene)', icon="IMPORT").import_setting = 'scene'
117+
self.layout.operator(dks_sp.dks_sp_export_scene.bl_idname,icon="EXPORT")
118+
self.layout.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='Substance Painter (Scene)', icon="IMPORT").import_setting = 'scene'
119119

120-
self.layout.operator(ds_sp.ds_sp_export_sel.bl_idname,icon="EXPORT")
121-
self.layout.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='Substance Painter (Selected)', icon="IMPORT").import_setting = 'selected'
120+
self.layout.operator(dks_sp.dks_sp_export_sel.bl_idname,icon="EXPORT")
121+
self.layout.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='Substance Painter (Selected)', icon="IMPORT").import_setting = 'selected'
122122

123-
def ds_sp_draw_menu(self, context):
123+
def dks_sp_draw_menu(self, context):
124124

125-
self.layout.menu(ds_sp_menu.bl_idname)
125+
self.layout.menu(dks_sp_menu.bl_idname)
126126

127-
def ds_sp_menu_func_export_scene(self, context):
127+
def dks_sp_menu_func_export_scene(self, context):
128128

129-
self.layout.operator(ds_sp.ds_sp_export_scene.bl_idname)
129+
self.layout.operator(dks_sp.dks_sp_export_scene.bl_idname)
130130

131-
def ds_sp_menu_func_export_sel(self, context):
131+
def dks_sp_menu_func_export_sel(self, context):
132132

133-
self.layout.operator(ds_sp.ds_sp_export_sel.bl_idname)
133+
self.layout.operator(dks_sp.dks_sp_export_sel.bl_idname)
134134

135-
def ds_sp_menu_func_import_scene(self, context):
135+
def dks_sp_menu_func_import_scene(self, context):
136136

137-
self.layout.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='Substance Painter (Scene)').import_setting = 'scene'
137+
self.layout.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='Substance Painter (Scene)').import_setting = 'scene'
138138

139-
def ds_sp_menu_func_import_sel(self, context):
139+
def dks_sp_menu_func_import_sel(self, context):
140140

141-
self.layout.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='Substance Painter (Selected)').import_setting = 'selected'
141+
self.layout.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='Substance Painter (Selected)').import_setting = 'selected'
142142

143-
def ds_sp_draw_btns(self, context):
143+
def dks_sp_draw_btns(self, context):
144144

145145
if context.region.alignment != 'RIGHT':
146146

@@ -150,21 +150,21 @@ def ds_sp_draw_btns(self, context):
150150
if bpy.context.preferences.addons[__package__].preferences.option_show_sp_toggle:
151151

152152
if bpy.context.preferences.addons[__package__].preferences.option_show_sp_toggle_state:
153-
row.operator(ds_sp_toggle.bl_idname,text="SP",icon="TRIA_LEFT")
153+
row.operator(dks_sp_toggle.bl_idname,text="SP",icon="TRIA_LEFT")
154154
else:
155-
row.operator(ds_sp_toggle.bl_idname,text="SP",icon="TRIA_RIGHT")
155+
row.operator(dks_sp_toggle.bl_idname,text="SP",icon="TRIA_RIGHT")
156156

157157
if bpy.context.preferences.addons[__package__].preferences.option_show_sp_toggle_state or not bpy.context.preferences.addons[__package__].preferences.option_show_sp_toggle:
158158

159-
row.operator(ds_sp.ds_sp_export_scene.bl_idname,text="SP:Scene",icon="EXPORT")
160-
row.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='SP:Scene',icon="IMPORT").import_setting = 'scene'
159+
row.operator(dks_sp.dks_sp_export_scene.bl_idname,text="SP:Scene",icon="EXPORT")
160+
row.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='SP:Scene',icon="IMPORT").import_setting = 'scene'
161161

162-
row.operator(ds_sp.ds_sp_export_sel.bl_idname,text="SP:Sel",icon="EXPORT")
163-
row.operator(ds_sp.ds_sp_pbr_nodes.bl_idname, text='SP:Sel', icon="IMPORT").import_setting = 'selected'
162+
row.operator(dks_sp.dks_sp_export_sel.bl_idname,text="SP:Sel",icon="EXPORT")
163+
row.operator(dks_sp.dks_sp_pbr_nodes.bl_idname, text='SP:Sel', icon="IMPORT").import_setting = 'selected'
164164

165-
class ds_sp_toggle(bpy.types.Operator):
165+
class dks_sp_toggle(bpy.types.Operator):
166166

167-
bl_idname = "ds_sp.toggle"
167+
bl_idname = "dks_sp.toggle"
168168
bl_label = "SP"
169169
bl_space_type = 'PROPERTIES'
170170
bl_region_type = 'WINDOW'
@@ -178,8 +178,8 @@ def execute(self, context):
178178
return {'FINISHED'}
179179

180180
classes = (
181-
ds_sp_addon_prefs,
182-
ds_sp_toggle,
181+
dks_sp_addon_prefs,
182+
dks_sp_toggle,
183183
)
184184

185185
def register():
@@ -188,41 +188,41 @@ def register():
188188
for cls in classes:
189189
register_class(cls)
190190

191-
ds_sp.register()
191+
dks_sp.register()
192192

193-
bpy.types.TOPBAR_MT_file_export.append(ds_sp_menu_func_export_scene)
194-
bpy.types.TOPBAR_MT_file_import.append(ds_sp_menu_func_import_scene)
195-
bpy.types.TOPBAR_MT_file_export.append(ds_sp_menu_func_export_sel)
196-
bpy.types.TOPBAR_MT_file_import.append(ds_sp_menu_func_import_sel)
193+
bpy.types.TOPBAR_MT_file_export.append(dks_sp_menu_func_export_scene)
194+
bpy.types.TOPBAR_MT_file_import.append(dks_sp_menu_func_import_scene)
195+
bpy.types.TOPBAR_MT_file_export.append(dks_sp_menu_func_export_sel)
196+
bpy.types.TOPBAR_MT_file_import.append(dks_sp_menu_func_import_sel)
197197

198198
bpy.context.preferences.addons[__package__].preferences.option_show_sp_toggle_state=False
199199

200200
if bpy.context.preferences.addons[__package__].preferences.option_display_type=='Buttons':
201201

202-
bpy.types.TOPBAR_HT_upper_bar.append(ds_sp_draw_btns)
202+
bpy.types.TOPBAR_HT_upper_bar.append(dks_sp_draw_btns)
203203

204204
elif bpy.context.preferences.addons[__package__].preferences.option_display_type=='Menu':
205205

206-
register_class(ds_sp_menu)
207-
bpy.types.TOPBAR_MT_editor_menus.append(ds_sp_draw_menu)
206+
register_class(dks_sp_menu)
207+
bpy.types.TOPBAR_MT_editor_menus.append(dks_sp_draw_menu)
208208

209209
def unregister():
210210

211-
ds_sp.unregister()
211+
dks_sp.unregister()
212212

213-
bpy.types.TOPBAR_MT_file_export.remove(ds_sp_menu_func_export_scene)
214-
bpy.types.TOPBAR_MT_file_import.remove(ds_sp_menu_func_import_scene)
215-
bpy.types.TOPBAR_MT_file_export.remove(ds_sp_menu_func_export_sel)
216-
bpy.types.TOPBAR_MT_file_import.remove(ds_sp_menu_func_import_sel)
213+
bpy.types.TOPBAR_MT_file_export.remove(dks_sp_menu_func_export_scene)
214+
bpy.types.TOPBAR_MT_file_import.remove(dks_sp_menu_func_import_scene)
215+
bpy.types.TOPBAR_MT_file_export.remove(dks_sp_menu_func_export_sel)
216+
bpy.types.TOPBAR_MT_file_import.remove(dks_sp_menu_func_import_sel)
217217

218218
if bpy.context.preferences.addons[__package__].preferences.option_display_type=='Buttons':
219219

220-
bpy.types.TOPBAR_HT_upper_bar.remove(ds_sp_draw_btns)
220+
bpy.types.TOPBAR_HT_upper_bar.remove(dks_sp_draw_btns)
221221

222222
elif bpy.context.preferences.addons[__package__].preferences.option_display_type=='Menu':
223223

224-
register_class(ds_sp_menu)
225-
bpy.types.TOPBAR_MT_editor_menus.remove(ds_sp_draw_menu)
224+
register_class(dks_sp_menu)
225+
bpy.types.TOPBAR_MT_editor_menus.remove(dks_sp_draw_menu)
226226

227227
from bpy.utils import unregister_class
228228
for cls in reversed(classes):

0 commit comments

Comments
 (0)