[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3849] contrib/py/scripts/addons/ add_scene_elements: fix for rotation error in monkey & scale in plane
Brendon Murphy
meta.androcto1 at gmail.com
Sat Oct 13 11:29:10 CEST 2012
Revision: 3849
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3849
Author: meta-androcto
Date: 2012-10-13 09:29:09 +0000 (Sat, 13 Oct 2012)
Log Message:
-----------
fix for rotation error in monkey & scale in plane
Modified Paths:
--------------
contrib/py/scripts/addons/add_scene_elements/scene_materials.py
contrib/py/scripts/addons/add_scene_elements/scene_objects.py
contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py
Modified: contrib/py/scripts/addons/add_scene_elements/scene_materials.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/scene_materials.py 2012-10-12 15:15:26 UTC (rev 3848)
+++ contrib/py/scripts/addons/add_scene_elements/scene_materials.py 2012-10-13 09:29:09 UTC (rev 3849)
@@ -166,8 +166,8 @@
mtex.color = (1.000, 0.207, 0.000)
#add monkey #
bpy.ops.mesh.primitive_monkey_add(location = (-0.32639,0.08901,1.49976))
- bpy.ops.transform.rotate(value=(1.15019,), axis=(0, 0, 1))
- bpy.ops.transform.rotate(value=(-0.683882,), axis=(0, 1, 0))
+ bpy.ops.transform.rotate(value=(1.15019), axis=(0, 0, 1))
+ bpy.ops.transform.rotate(value=(-0.683882), axis=(0, 1, 0))
bpy.ops.object.modifier_add(type='SUBSURF')
bpy.ops.object.shade_smooth()
monkey = bpy.context.active_object
@@ -196,7 +196,7 @@
# add plane
bpy.ops.mesh.primitive_plane_add(location = (0.0,0.0,-1.0))
- bpy.ops.transform.rotate(value=(-0.820305,), axis=(0, 0, 1))
+ bpy.ops.transform.rotate(value=(-0.820305), axis=(0, 0, 1))
bpy.ops.transform.resize(value=(22.0, 22.0, 0.0))
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
Modified: contrib/py/scripts/addons/add_scene_elements/scene_objects.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/scene_objects.py 2012-10-12 15:15:26 UTC (rev 3848)
+++ contrib/py/scripts/addons/add_scene_elements/scene_objects.py 2012-10-13 09:29:09 UTC (rev 3849)
@@ -103,7 +103,7 @@
# add plane
bpy.ops.mesh.primitive_plane_add(location = (0.0,0.0,-1.0))
- bpy.ops.transform.rotate(value=(-0.820305,), axis=(0, 0, 1))
+ bpy.ops.transform.rotate(value=(-0.820305), axis=(0, 0, 1))
bpy.ops.transform.resize(value=(22.0, 22.0, 0.0))
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
Modified: contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py
===================================================================
--- contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py 2012-10-12 15:15:26 UTC (rev 3848)
+++ contrib/py/scripts/addons/add_scene_elements/scene_objects_cycles.py 2012-10-13 09:29:09 UTC (rev 3849)
@@ -171,8 +171,8 @@
mtex.color = (1.000, 0.207, 0.000)
#add monkey #
bpy.ops.mesh.primitive_monkey_add(location = (-0.32639,0.08901,1.49976))
- bpy.ops.transform.rotate(value=(1.15019,), axis=(0, 0, 1))
- bpy.ops.transform.rotate(value=(-0.683882,), axis=(0, 1, 0))
+ bpy.ops.transform.rotate(value=(1.15019), axis=(0, 0, 1))
+ bpy.ops.transform.rotate(value=(-0.683882), axis=(0, 1, 0))
bpy.ops.object.modifier_add(type='SUBSURF')
bpy.ops.object.shade_smooth()
monkey = bpy.context.active_object
@@ -202,7 +202,7 @@
# add plane
bpy.ops.mesh.primitive_plane_add(location = (0.0,0.0,-1.0))
- bpy.ops.transform.rotate(value=(-0.820305,), axis=(0, 0, 1))
+ bpy.ops.transform.rotate(value=(-0.820305), axis=(0, 0, 1))
bpy.ops.transform.resize(value=(22.0, 22.0, 0.0))
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
More information about the Bf-extensions-cvs
mailing list