def execute(self, context): import bpy s = bpy.context.scene operation = s.cam_operations[s.cam_active_operation] utils.exportGcodePath(operation.filename, [bpy.data.objects[operation.path_object_name].data], [operation]) return {"FINISHED"}
def execute(self, context): import bpy s = bpy.context.scene operation = s.cam_operations[s.cam_active_operation] utils.exportGcodePath( operation.filename, [bpy.data.objects[operation.path_object_name].data], [operation]) return {'FINISHED'}
def execute(self, context): s = bpy.context.scene operation = s.cam_operations[s.cam_active_operation] print("EXPORING", operation.filename, bpy.data.objects["cam_path_{}".format(operation.name)].data, operation) utils.exportGcodePath(operation.filename, [bpy.data.objects["cam_path_{}".format(operation.name)].data], [operation]) return {'FINISHED'}
def execute(self, context): import bpy s=bpy.context.scene chain=s.cam_chains[s.cam_active_chain] chainops=getChainOperations(chain) meshes=[] for o in chainops: #bpy.ops.object.calculate_cam_paths_background() meshes.append(bpy.data.objects[o.path_object_name].data) utils.exportGcodePath(chain.filename,meshes,chainops) return {'FINISHED'}
def execute(self, context): import bpy s = bpy.context.scene chain = s.cam_chains[s.cam_active_chain] chainops = getChainOperations(chain) meshes = [] for o in chainops: #bpy.ops.object.calculate_cam_paths_background() meshes.append(bpy.data.objects[o.path_object_name].data) utils.exportGcodePath(chain.filename, meshes, chainops) return {'FINISHED'}
def execute(self, context): s = bpy.context.scene chain = s.cam_chains[s.cam_active_chain] chainops = getChainOperations(chain) meshes = [] # if len(chainops)<4: for i in range(0, len(chainops)): s.cam_active_operation = s.cam_operations.find(chainops[i].name) bpy.ops.object.calculate_cam_path() for o in chainops: # bpy.ops.object.calculate_cam_paths_background() meshes.append(bpy.data.objects["cam_path_{}".format(o.name)].data) utils.exportGcodePath(chain.filename, meshes, chainops) return {'FINISHED'}