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' |
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' |
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))] | |
] |
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))] | |
] |
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 |
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 |
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))] | |
] |
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