Skip to content

Commit

Permalink
Comment out experimental line texture operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevancress committed Nov 4, 2019
1 parent 23d6ee9 commit 318517c
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions measureit_arch_lines.py
Expand Up @@ -546,35 +546,35 @@ def execute(self, context):
context.area.tag_redraw()
return {'FINISHED'}

class UseLineTexture(Operator):
bl_idname = "measureit_arch.uselinetexture"
bl_label = "Create a Line Texture to Use"
bl_description = "Create a Line Texture to Use"
bl_category = 'MeasureitArch'
tag = IntProperty()
is_style= BoolProperty()
# ------------------------------
# Execute button action
# ------------------------------
def execute(self, context):
mainObj = context.object

if self.is_style is True:
Generator = context.scene.StyleGenerator[0]
else:
Generator = mainObj.LineGenerator[0]
line = Generator.line_groups[self.tag]

if 'Line Texture' not in bpy.data.textures:
texture = bpy.data.textures.new("Line Texture", type='NONE')
texture.use_nodes = True
nodes = texture.node_tree.nodes
nodes.clear()
node = nodes.new('TextureNodeCurveTime')
node.location = (100,100)
line.useLineTexture = True

return {'FINISHED'}
# class UseLineTexture(Operator):
# bl_idname = "measureit_arch.uselinetexture"
# bl_label = "Create a Line Texture to Use"
# bl_description = "Create a Line Texture to Use"
# bl_category = 'MeasureitArch'
# tag = IntProperty()
# is_style= BoolProperty()
# # ------------------------------
# # Execute button action
# # ------------------------------
# def execute(self, context):
# mainObj = context.object

# if self.is_style is True:
# Generator = context.scene.StyleGenerator[0]
# else:
# Generator = mainObj.LineGenerator[0]
# line = Generator.line_groups[self.tag]

# if 'Line Texture' not in bpy.data.textures:
# texture = bpy.data.textures.new("Line Texture", type='NONE')
# texture.use_nodes = True
# nodes = texture.node_tree.nodes
# nodes.clear()
# node = nodes.new('TextureNodeCurveTime')
# node.location = (100,100)
# line.useLineTexture = True

# return {'FINISHED'}

def sLineExists(sLine,a,b):
if (sLine.pointA == a and sLine.pointB == b):
Expand Down

0 comments on commit 318517c

Please sign in to comment.