ソースを参照

Add Power socket to Copy Scale node

Joseph Brandenburg 6 ヶ月 前
コミット
42c1a03b44
3 ファイル変更5 行追加2 行削除
  1. 1 1
      __init__.py
  2. 2 1
      base_definitions.py
  3. 2 0
      link_socket_templates.py

+ 1 - 1
__init__.py

@@ -16,7 +16,7 @@ from .utilities import prRed
 
 MANTIS_VERSION_MAJOR=0
 MANTIS_VERSION_MINOR=10
-MANTIS_VERSION_SUB=11
+MANTIS_VERSION_SUB=12
 
 classLists = [module.TellClasses() for module in [
  link_definitions,

+ 2 - 1
base_definitions.py

@@ -615,6 +615,7 @@ SOCKETS_ADDED=[("DeformerMorphTargetDeform", 'INPUT', 'BooleanSocket', "Use Shap
                ("UtilityMatrixFromCurve",    'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
                ("UtilityMatricesFromCurve",  'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
                ("UtilityPointFromCurve",     'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
+               ("LinkCopyScale",             'INPUT',  "FloatFactorSocket", "Power",    5,      False,    1.0),
                ]
 
 # replace names with bl_idnames for reading the tree and solving schemas.
@@ -903,7 +904,7 @@ class MantisNode:
     def bFinalize(self, bContext=None):
         return
     def __repr__(self): 
-        return self.signature.__repr__()
+        return self.ui_signature.__repr__()
 
 # do I need this and the link class above?
 class DummyLink:

+ 2 - 0
link_socket_templates.py

@@ -131,6 +131,8 @@ LinkCopyScaleSockets = [
     SockTemplate(name='Additive', bl_idname = 'BooleanSocket', is_input=True,
                          default_value=False, blender_property='use_add'),
     AxeSockTemplate,
+    SockTemplate(name='Power', bl_idname = 'FloatFactorSocket', is_input=True,
+                         default_value=1.0, blender_property='power'),
     TargetSpaceTemplate,
     OwnerSpaceTemplate,
     InfluenceTemplate,