def invoke(self, context, event): obj_bp = utils.get_parent_assembly_bp(context.object) if obj_bp: self.assembly_name = obj_bp.mv.name_object wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self, context, event): library = context.scene.mv active_spec_group = library.spec_groups[library.spec_group_index] for material in active_spec_group.materials: material.assign_material = False wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(600))
def invoke(self,context,event): # This gets called first and is used as an init call obj = context.scene.objects[self.object_name] obj_product_bp = utils.get_bp(obj,'PRODUCT') self.product = fd_types.Assembly(obj_product_bp) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(480))
def invoke(self,context,event): self.combo_box_value = "Option" if self.data_type == 'OBJECT': data = bpy.data.objects[self.data_name] Counter = 1 while self.combo_box_value + " " + str(Counter) in data.mv.PromptPage.COL_Prompt[self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) elif self.data_type == 'SCENE': data = bpy.data.scenes[self.data_name] Counter = 1 while self.combo_box_value + " " + str(Counter) in data.mv.PromptPage.COL_Prompt[self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) elif self.data_type == 'MATERIAL': data = bpy.data.materials[self.data_name] Counter = 1 while self.combo_box_value + " " + str(Counter) in data.mv.PromptPage.COL_Prompt[self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) elif self.data_type == 'WORLD': data = bpy.data.worlds[self.data_name] Counter = 1 while self.combo_box_value + " " + str(Counter) in data.mv.PromptPage.COL_Prompt[self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(380))
def invoke(self,context,event): self.tab_name = "New Tab" if self.data_type == 'OBJECT': data = bpy.data.objects[self.data_name] Counter = 1 while self.tab_name + " " + str(Counter) in data.mv.PromptPage.COL_MainTab: Counter += 1 self.tab_name = self.tab_name + " " + str(Counter) elif self.data_type == 'SCENE': data = bpy.data.scenes[self.data_name] Counter = 1 while self.tab_name + " " + str(Counter) in data.mv.PromptPage.COL_MainTab: Counter += 1 self.tab_name = self.tab_name + " " + str(Counter) elif self.data_type == 'MATERIAL': data = bpy.data.materials[self.data_name] Counter = 1 while self.tab_name + " " + str(Counter) in data.mv.PromptPage.COL_MainTab: Counter += 1 self.tab_name = self.tab_name + " " + str(Counter) elif self.data_type == 'WORLD': data = bpy.data.worlds[self.data_name] Counter = 1 while self.tab_name + " " + str(Counter) in data.mv.PromptPage.COL_MainTab: Counter += 1 self.tab_name = self.tab_name + " " + str(Counter) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(380))
def invoke(self, context, event): self.material = bpy.data.materials[self.material_name] self.obj = bpy.data.objects[self.object_name] # if self.material.name not in context.scene.materiallib.scene_materials: # material = context.scene.materiallib.scene_materials.add() # material.name = self.material.name wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): self.reset_variables() obj = bpy.data.objects[self.object_name] obj_bp = utils.get_assembly_bp(obj) if obj_bp: self.group = fd_types.Assembly(obj_bp) self.get_part_prompts() wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): self.prompt_name = "New Prompt" data = bpy.data.objects[self.data_name] Counter = 1 while self.prompt_name + " " + str(Counter) in data.mv.PromptPage.COL_Prompt: Counter += 1 self.prompt_name = self.prompt_name + " " + str(Counter) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(380))
def invoke(self, context, event): self.reset_variables() obj = bpy.data.objects[self.object_name] obj_bp = utils.get_assembly_bp(obj) if obj_bp: self.group = fd_types.Assembly(obj_bp) self.get_part_prompts() wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): self.combo_box_value = "Option" data = bpy.data.objects[self.data_name] Counter = 1 while self.combo_box_value + " " + str(Counter) in data.mv.PromptPage.COL_Prompt[self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(380))
def invoke(self, context, event): self.combo_box_value = "Option" data = bpy.data.objects[self.data_name] Counter = 1 while self.combo_box_value + " " + str( Counter) in data.mv.PromptPage.COL_Prompt[ self.prompt_name].COL_EnumItem: Counter += 1 self.combo_box_value = self.combo_box_value + " " + str(Counter) wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(380))
def invoke(self, context, event): self.product = self.get_product() self.add_prompt("Left Fin End") self.add_prompt("Right Fin End") self.add_prompt("Base Inset Front") self.add_prompt("Base Inset Rear") self.add_prompt("Base Inset Left") self.add_prompt("Base Inset Right") self.add_prompt("Left Side Wall Filler") self.add_prompt("Right Side Wall Filler") self.add_prompt("Toe Kick Height") self.add_prompt("Toe Kick Setback") self.add_prompt("Add Backsplash") self.add_prompt("Add Left Backsplash") self.add_prompt("Add Right Backsplash") self.add_prompt("Side Splash Setback") wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(500))
def invoke(self,context,event): wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(300))
def invoke(self,context,event): self.lock_camera = context.space_data.lock_camera wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): wm = context.window_manager obj_bp = bpy.data.objects[self.object_name] self.new_name = obj_bp.mv.name_object return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): self.product = self.get_product() self.insert = self.get_insert() wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(500))
def invoke(self, context, event): self.lock_camera = context.space_data.lock_camera wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): obj_bp = utils.get_parent_assembly_bp(context.object) if obj_bp: self.assembly_name = obj_bp.mv.name_object wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self,context,event): self.assembly_name = context.object.mv.name_object wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))
def invoke(self, context, event): wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(500))
def invoke(self,context,event): spec_group = context.scene.mv.spec_groups[context.scene.mv.spec_group_index] self.new_spec_group_name = spec_group.name self.old_spec_group_name = spec_group.name wm = context.window_manager return wm.invoke_props_dialog(self, width=utils.get_prop_dialog_width(400))