[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17101] trunk/blender: patch [#17856] Correction on docs for Ipo module.

Campbell Barton ideasman42 at gmail.com
Sat Oct 18 15:33:29 CEST 2008


Revision: 17101
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17101
Author:   campbellbarton
Date:     2008-10-18 15:33:27 +0200 (Sat, 18 Oct 2008)

Log Message:
-----------
patch [#17856] Correction on docs for Ipo module. from Lucas Vella (lvella) + some other minor changes.

Modified Paths:
--------------
    trunk/blender/release/scripts/import_web3d.py
    trunk/blender/release/scripts/scripttemplate_gamelogic_basic.py
    trunk/blender/source/blender/python/api2_2x/doc/Ipo.py

Modified: trunk/blender/release/scripts/import_web3d.py
===================================================================
--- trunk/blender/release/scripts/import_web3d.py	2008-10-18 13:23:30 UTC (rev 17100)
+++ trunk/blender/release/scripts/import_web3d.py	2008-10-18 13:33:27 UTC (rev 17101)
@@ -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 @@
 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 @@
 	
 	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

Modified: trunk/blender/release/scripts/scripttemplate_gamelogic_basic.py
===================================================================
--- trunk/blender/release/scripts/scripttemplate_gamelogic_basic.py	2008-10-18 13:23:30 UTC (rev 17100)
+++ trunk/blender/release/scripts/scripttemplate_gamelogic_basic.py	2008-10-18 13:33:27 UTC (rev 17101)
@@ -27,7 +27,7 @@
 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()

Modified: trunk/blender/source/blender/python/api2_2x/doc/Ipo.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2008-10-18 13:23:30 UTC (rev 17100)
+++ trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2008-10-18 13:33:27 UTC (rev 17101)
@@ -57,8 +57,8 @@
 			TE_DISTA, TE_MGTYPE, TE_MGH, TE_LACU, TE_OCT, TE_MGOFF,
 			TE_MGGAIN, TE_NBASE1, TE_NBASE2, TE_COLR, TE_COLG, TE_COLB,
 			TE_BRIGHT, TE_CONTRAS
-			9. Pose/Action Ipo: PO_LOCX, PO_LOCY, PO_LOCZ, PO_SIZEX, PO_SIZEY,
-			PO_SIZEZ, PO_QUATW, PO_QUATX, PO_QUATY, PO_QUATZ
+			9. Pose/Action Ipo: PO_LOCX, PO_LOCY, PO_LOCZ, PO_SCALEX, PO_SCALEY,
+			PO_SCALEZ, PO_QUATW, PO_QUATX, PO_QUATY, PO_QUATZ
 			10. Sequence Ipo: SQ_FAC
 
 Shape Key Ipos are handled differently from other Ipos.  The user can rename





More information about the Bf-blender-cvs mailing list