4
Name: 'COLLADA 1.4(.dae) ...'
7
Tooltip: 'Import scene from COLLADA 1.4 format (.dae)'
10
__author__ = "Illusoft - Pieter Visser"
11
__url__ = ("Project homepage, http://colladablender.illusoft.com")
12
__version__ = "0.2.65"
13
__email__ = "colladablender@illusoft.com"
16
Description: Imports a COLLADA 1.4 file into a Blender scene.
18
Usage: Run the script from the menu or inside Blender.
21
# --------------------------------------------------------------------------
22
# Illusoft Collada 1.4 plugin for Blender version 0.2.65
23
# --------------------------------------------------------------------------
24
# ***** BEGIN GPL LICENSE BLOCK *****
26
# Copyright (C) 2006: Illusoft - colladablender@illusoft.com
28
# This program is free software; you can redistribute it and/or modify
29
# it under the terms of the GNU General Public License as published by
30
# the Free Software Foundation; either version 2 of the License,
31
# or (at your option) any later version.
33
# This program is distributed in the hope that it will be useful,
34
# but WITHOUT ANY WARRANTY; without even the implied warranty of
35
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
# GNU General Public License for more details.
38
# You should have received a copy of the GNU General Public License
39
# along with this program; if not, write to the Free Software Foundation,
40
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42
# ***** END GPL LICENCE BLOCK *****
43
# --------------------------------------------------------------------------
50
######################## SET PATH TO FOLDER consisting 'colladaImEx' here (if necessary)
54
# scriptsDir = "C:/Temp/"
58
#############################################################################
61
import colladaImEx.cstartup
62
if Blender.Get('scriptsdir') is None:
63
if scriptsDir == '' or scriptsDir is None:
64
Blender.Draw.PupMenu("Cannot find folder %t | Please set path in file 'colladaImport14.py'")
71
# Check if full version of python is installed:
79
from sys import version_info
80
version = '%s.%s' % version_info[0:2]
82
This script requires the xml module that is part of a
83
default standalone Python install.
85
To run the collada importer and exporter you need to have
86
Python version %s installed in your system. It can be downloaded from:
91
- The minor (third) version number doesn't matter, you can have either
92
Python %s.1 or %s.2 or higher.
93
- If you do have Python %s installed and still can't run the scripts, then
94
make sure Blender's Python interpreter is finding the standalone modules
95
(run 'System Information' from Blender's Help -> System menu).
96
""" % (version, version, version, version)
97
Blender.Draw.PupMenu("Please install full version of python %t | Check the console for more info")
101
Blender.Draw.PupMenu("Cannot find folder %t | Please set path in file 'colladaImport14.py'")
104
if scriptsDir not in sys.path:
105
sys.path.append(scriptsDir)
107
import colladaImEx.cstartup
110
Blender.Draw.PupMenu("Cannot find colladaImEx files %t | Please make sure the path is correct in file 'colladaImport14.py'")
112
except StandardError:
117
reload(colladaImEx.cstartup)
118
colladaImEx.cstartup.Main(True, loc)
119
except StandardError: