Browse Source

Add Power socket to Copy Scale node

Joseph Brandenburg 6 months ago
parent
commit
42c1a03b44
3 changed files with 5 additions and 2 deletions
  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_MAJOR=0
 MANTIS_VERSION_MINOR=10
 MANTIS_VERSION_MINOR=10
-MANTIS_VERSION_SUB=11
+MANTIS_VERSION_SUB=12
 
 
 classLists = [module.TellClasses() for module in [
 classLists = [module.TellClasses() for module in [
  link_definitions,
  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),
                ("UtilityMatrixFromCurve",    'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
                ("UtilityMatricesFromCurve",  'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
                ("UtilityMatricesFromCurve",  'INPUT',  "UnsignedIntSocket", "Spline Index",  1, False,    0),
                ("UtilityPointFromCurve",     '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.
 # replace names with bl_idnames for reading the tree and solving schemas.
@@ -903,7 +904,7 @@ class MantisNode:
     def bFinalize(self, bContext=None):
     def bFinalize(self, bContext=None):
         return
         return
     def __repr__(self): 
     def __repr__(self): 
-        return self.signature.__repr__()
+        return self.ui_signature.__repr__()
 
 
 # do I need this and the link class above?
 # do I need this and the link class above?
 class DummyLink:
 class DummyLink:

+ 2 - 0
link_socket_templates.py

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