View polyline_curve_from_coordinate_list.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((2,0,0,1)),((2,3,0,1)),((0,2,0,1))] | |
# create a spline curve from a number of points | |
def MakePolyLine(objname, curvename, cList): | |
curvedata = bpy.data.curves.new(name=curvename, type='CURVE') | |
curvedata.dimensions = '2D' |
View blender_polyline.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((2,0,0,1)),((2,3,0,1)),((0,2,0,1))] | |
# create a spline curve from a number of points | |
def MakePolyLine(objname, curvename, cList): | |
curvedata = bpy.data.curves.new(name=curvename, type='CURVE') | |
curvedata.dimensions = '2D' |
View scripting_shapekeys_kframe.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))] | |
shapes = [ [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((2,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,2,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((-1,1,0,1))] | |
] |
View shapekeys_blender_curve.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))] | |
shapes = [ [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((2,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,2,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((-1,1,0,1))] | |
] |
View automatic_text_preferences.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class SetTextPreferences(bpy.types.Operator): | |
bl_label = "Set Text Preferences" | |
bl_idname = "txt.set_text_prefs" | |
def execute(self, context): | |
st = context.space_data | |
st.show_line_numbers = True |
View automatic_text_preferences2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class SetTextPreferences(bpy.types.Operator): | |
bl_label = "" | |
bl_idname = "txt.set_text_prefs" | |
def execute(self, context): | |
st = context.space_data | |
st.show_line_numbers = True |
View shapekeys_blender_scripting.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))] | |
shapes = [ [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((2,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,2,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((-1,1,0,1))] | |
] |
View keyframe_coordinates_of_curve.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector | |
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))] | |
shapes = [ [((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((2,0,0,1)),((1,1,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,2,0,1)),((0,1,0,1))], | |
[((0,0,0,1)),((1,0,0,1)),((1,1,0,1)),((-1,1,0,1))] | |
] |
OlderNewer