diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-10-18 17:33:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-10-18 17:33:27 +0400 |
commit | e96a5bd05b4e47619b7c6ae8585b1303e7eaf755 (patch) | |
tree | b1c3e6c76492765c1379f4ba15aecbfd46615951 /release/scripts | |
parent | 03d5780b76f74f9468d3ec990f1135b6a6db3478 (diff) |
patch [#17856] Correction on docs for Ipo module. from Lucas Vella (lvella) + some other minor changes.
Diffstat (limited to 'release/scripts')
-rwxr-xr-x | release/scripts/import_web3d.py | 50 | ||||
-rw-r--r-- | release/scripts/scripttemplate_gamelogic_basic.py | 2 |
2 files changed, 26 insertions, 26 deletions
diff --git a/release/scripts/import_web3d.py b/release/scripts/import_web3d.py index 157af62338e..e934d06e9ef 100755 --- a/release/scripts/import_web3d.py +++ b/release/scripts/import_web3d.py @@ -3,7 +3,7 @@ Name: 'X3D & VRML97 (.x3d / wrl)...' Blender: 248 Group: 'Import' -Tooltip: 'Load a VRML97 File' +Tooltip: 'Load an X3D or VRML97 file' """ # ***** BEGIN GPL LICENSE BLOCK ***** @@ -36,6 +36,30 @@ __bpydoc__ = """\ This script is an importer for the X3D and VRML97 file formats. """ +# This should work without a blender at all +try: + from Blender.sys import exists +except: + from os.path import exists + +def baseName(path): + return path.split('/')[-1].split('\\')[-1] + +def dirName(path): + return path[:-len(baseName(path))] + +# notes +# transform are relative +# order dosnt matter for loc/size/rot +# right handed rotation +# angles are in radians +# rotation first defines axis then ammount in deg + + + +# =============================== VRML Spesific + + def vrmlFormat(data): ''' Keep this as a valid vrml file, but format in a way we can pradict. @@ -98,30 +122,6 @@ def vrmlFormat(data): return [l for l in data.split('\n') if l] - -# This should work without a blender at all -try: - from Blender.sys import exists -except: - from os.path import exists - -def baseName(path): - return path.split('/')[-1].split('\\')[-1] - -def dirName(path): - return path[:-len(baseName(path))] - -# notes -# transform are relative -# order dosnt matter for loc/size/rot -# right handed rotation -# angles are in radians -# rotation first defines axis then ammount in deg - - - -# =============================== VRML Spesific - NODE_NORMAL = 1 # {} NODE_ARRAY = 2 # [] NODE_REFERENCE = 3 # USE foobar diff --git a/release/scripts/scripttemplate_gamelogic_basic.py b/release/scripts/scripttemplate_gamelogic_basic.py index dfd52a9f749..1584659d317 100644 --- a/release/scripts/scripttemplate_gamelogic_basic.py +++ b/release/scripts/scripttemplate_gamelogic_basic.py @@ -27,7 +27,7 @@ def main(): main() ''' -new_text = bpy.data.texts.new('gamelogic_example.py') +new_text = bpy.data.texts.new('gamelogic_simple.py') new_text.write(script_data) bpy.data.texts.active = new_text Window.RedrawAll() |