[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [821] branches/ivygen/raycast_test.py: - made it a function so it stops throwing errors on blender startup
Florian Meyer
florianfelix at web.de
Tue Jul 20 23:21:36 CEST 2010
Revision: 821
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=821
Author: testscreenings
Date: 2010-07-20 23:21:36 +0200 (Tue, 20 Jul 2010)
Log Message:
-----------
- made it a function so it stops throwing errors on blender startup
Modified Paths:
--------------
branches/ivygen/raycast_test.py
Modified: branches/ivygen/raycast_test.py
===================================================================
--- branches/ivygen/raycast_test.py 2010-07-20 20:56:29 UTC (rev 820)
+++ branches/ivygen/raycast_test.py 2010-07-20 21:21:36 UTC (rev 821)
@@ -1,12 +1,13 @@
import bpy
import mathutils
-ob = bpy.context.active_object
-start = mathutils.Vector((2,0,0))
-end = mathutils.Vector((0,0,0))
-ray_result = ob.ray_cast(start, end)
+def raycasting():
+ ob = bpy.context.active_object
+ start = mathutils.Vector((2,0,0))
+ end = mathutils.Vector((0,0,0))
+ ray_result = ob.ray_cast(start, end)
-print(ray_result)
+ print(ray_result)
More information about the Bf-extensions-cvs
mailing list