Fix Platform Transition Errors #1
@ -9,7 +9,7 @@ from math import cos, sin, pi
|
|||||||
|
|
||||||
def create_widget(name):
|
def create_widget(name):
|
||||||
"""Create an empty widget object and return the object"""
|
"""Create an empty widget object and return the object"""
|
||||||
prefs = bpy.context.preferences.addons["add_camera_rigs"].preferences
|
prefs = bpy.context.preferences.addons[__package__].preferences
|
||||||
widget_prefix = prefs.widget_prefix
|
widget_prefix = prefs.widget_prefix
|
||||||
obj_name = widget_prefix + name
|
obj_name = widget_prefix + name
|
||||||
scene = bpy.context.scene
|
scene = bpy.context.scene
|
||||||
|
@ -7,7 +7,7 @@ from bpy.props import StringProperty
|
|||||||
|
|
||||||
|
|
||||||
class AddCameraRigsPreferences(AddonPreferences):
|
class AddCameraRigsPreferences(AddonPreferences):
|
||||||
bl_idname = 'add_camera_rigs'
|
bl_idname = __package__
|
||||||
|
|
||||||
# Widget prefix
|
# Widget prefix
|
||||||
widget_prefix: StringProperty(
|
widget_prefix: StringProperty(
|
||||||
|
@ -93,9 +93,9 @@ class ADD_CAMERA_RIGS_PT_camera_rig_ui(Panel, CameraRigMixin):
|
|||||||
if rig["rig_id"].lower() == "crane_rig":
|
if rig["rig_id"].lower() == "crane_rig":
|
||||||
col = layout.column(align=True)
|
col = layout.column(align=True)
|
||||||
col.label(text="Crane Arm:")
|
col.label(text="Crane Arm:")
|
||||||
col.prop(pose_bones["Crane_height"],
|
col.prop(pose_bones["Crane_Height"],
|
||||||
'scale', index=1, text="Arm Height")
|
'scale', index=1, text="Arm Height")
|
||||||
col.prop(pose_bones["Crane_arm"],
|
col.prop(pose_bones["Crane_Arm"],
|
||||||
'scale', index=1, text="Arm Length")
|
'scale', index=1, text="Arm Length")
|
||||||
|
|
||||||
# 2D rig stuff
|
# 2D rig stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user