Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Odom <clockmender@icloud.com>2019-12-30 17:43:35 +0300
committerRune Morling <ermo.blender.org@spammesenseless.net>2020-01-15 00:24:07 +0300
commit479531654816970b55be491ccd48b723c002c50f (patch)
tree1608819b679ef3acda8d40facbc12d0cf2b22d43 /precision_drawing_tools/__init__.py
parent0d57c62d6f7b8861c041cd910a5c7a893c47152f (diff)
PDT: Add features to Command Line
Add "Re-Run" button to repeat last command line input. Add "Maths Output" to take result of calculation when the `mo` command is used. Allow commas in maths operation so calls like `hypot(3,4)` can be used.
Diffstat (limited to 'precision_drawing_tools/__init__.py')
-rw-r--r--precision_drawing_tools/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py
index 1f1d4454..e99e7735 100644
--- a/precision_drawing_tools/__init__.py
+++ b/precision_drawing_tools/__init__.py
@@ -96,6 +96,7 @@ from .pdt_msg_strings import (
PDT_DES_OFFDIS,
PDT_DES_OFFPER,
PDT_DES_OPMODE,
+ PDT_DES_OUTPUT,
PDT_DES_PIVOTDIS,
PDT_DES_PPLOC,
PDT_DES_PPSCALEFAC,
@@ -358,6 +359,11 @@ class PDTSceneProperties(PropertyGroup):
update=command_run,
description=PDT_DES_VALIDLET,
)
+ mathsout : FloatProperty(
+ name="Maths output",
+ default=0,
+ description=PDT_DES_OUTPUT,
+ )
error : StringProperty(name="Error", default="")
# Was pivot* -- is now pivot_*
@@ -449,6 +455,7 @@ classes = (
PDTSceneProperties,
PDTPreferences,
pdt_bix.PDT_OT_LineOnBisection,
+ pdt_command.PDT_OT_CommandReRun,
pdt_design.PDT_OT_PlacementAbs,
pdt_design.PDT_OT_PlacementDelta,
pdt_design.PDT_OT_PlacementDis,