diff --git a/__init__.py b/__init__.py index 05925bd..8acf744 100644 --- a/__init__.py +++ b/__init__.py @@ -120,6 +120,16 @@ class FONT3D_settings(bpy.types.PropertyGroup): description="Letter Spacing", default=0.0, ) + font_size: bpy.props.FloatProperty( + name="Font Size", + default=1.0, + subtype='NONE', + ) + translation: bpy.props.FloatVectorProperty( + name="Translation", + default=(0.0, 0.0, 0.0), + subtype='TRANSLATION', + ) orientation: bpy.props.FloatVectorProperty( name="Orientation", default=(1.5707963267948966, 0.0, 0.0), # 90 degrees in radians @@ -292,6 +302,8 @@ class FONT3D_PT_TextPlacement(bpy.types.Panel): layout.label(text="Set Properties Objects") layout.row().prop(font3d, "text") layout.row().prop(font3d, "letter_spacing") + layout.row().prop(font3d, "font_size") + layout.column().prop(font3d, "translation") layout.column().prop(font3d, "orientation") placerow = layout.row() placerow.enabled = self.can_place @@ -578,6 +590,8 @@ class FONT3D_OT_PlaceText(bpy.types.Operator): t.text_object = selected t.text = scene.font3d.text t.letter_spacing = scene.font3d.letter_spacing + t.font_size = scene.font3d.font_size + t.translation = scene.font3d.translation t.orientation = scene.font3d.orientation t.distribution_type = distribution_type else: