New addon: Import_max #19
@ -1,20 +1,4 @@
|
|||||||
# ##### BEGIN GPL LICENSE BLOCK #####
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2
|
|
||||||
# of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
#
|
|
||||||
# ##### END GPL LICENSE BLOCK #####
|
|
||||||
|
|
||||||
from bpy_extras.io_utils import (
|
from bpy_extras.io_utils import (
|
||||||
ImportHelper,
|
ImportHelper,
|
||||||
@ -34,12 +18,12 @@ bl_info = {
|
|||||||
"author": "Bob Holcomb, Campbell Barton, Andreas Atteneder, Sebastian Schrand",
|
"author": "Bob Holcomb, Campbell Barton, Andreas Atteneder, Sebastian Schrand",
|
||||||
"version": (2, 3, 1),
|
"version": (2, 3, 1),
|
||||||
"blender": (3, 0, 0),
|
"blender": (3, 0, 0),
|
||||||
"location": "File > Import",
|
"location": "File > Import-Export",
|
||||||
"description": "Import 3DS, meshes, uvs, materials, textures, "
|
"description": "3DS Import/Export meshes, UVs, materials, textures, "
|
||||||
"cameras & lamps",
|
"cameras, lamps & animation",
|
||||||
"warning": "Images must be in file folder",
|
"warning": "Images must be in file folder, "
|
||||||
"doc_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
|
"filenames are limited to DOS 8.3 format",
|
||||||
"Scripts/Import-Export/Autodesk_3DS",
|
"doc_url": "{BLENDER_MANUAL_URL}/addons/import_export/scene_3ds.html",
|
||||||
"category": "Import-Export",
|
"category": "Import-Export",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,12 +65,16 @@ class Import3DS(bpy.types.Operator, ImportHelper):
|
|||||||
"importing incorrectly",
|
"importing incorrectly",
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
read_keyframe: bpy.props.BoolProperty(
|
read_keyframe: bpy.props.BoolProperty(
|
||||||
name="Read Keyframe",
|
name="Read Keyframe",
|
||||||
description="Read the keyframe data",
|
description="Read the keyframe data",
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
use_world_matrix: bpy.props.BoolProperty(
|
||||||
|
name="World Space",
|
||||||
|
description="Transform to matrix world",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
from . import import_3ds
|
from . import import_3ds
|
||||||
@ -162,14 +150,6 @@ def unregister():
|
|||||||
bpy.types.TOPBAR_MT_file_import.remove(menu_func_import)
|
bpy.types.TOPBAR_MT_file_import.remove(menu_func_import)
|
||||||
bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
|
bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
|
||||||
|
|
||||||
# NOTES:
|
|
||||||
# why add 1 extra vertex? and remove it when done? -
|
|
||||||
# "Answer - eekadoodle - would need to re-order UV's without this since face
|
|
||||||
# order isnt always what we give blender, BMesh will solve :D"
|
|
||||||
#
|
|
||||||
# disabled scaling to size, this requires exposing bb (easy) and understanding
|
|
||||||
# how it works (needs some time)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
register()
|
register()
|
||||||
|
Reference in New Issue
Block a user