@@ -19,8 +19,6 @@ class Attribute(BaseObject):
1919 def __init__ (self , name , label , description , value , advanced , semantic , group , enabled ,
2020 invalidate = True ,
2121 uidIgnoreValue = None ,
22- validValue = True ,
23- errorMessage = "" ,
2422 visible = True ,
2523 exposed = False ,
2624 validators :list ["AttributeValidator" ]= None
@@ -37,8 +35,6 @@ def __init__(self, name, label, description, value, advanced, semantic, group, e
3735 self ._invalidate = invalidate
3836 self ._semantic = semantic
3937 self ._uidIgnoreValue = uidIgnoreValue
40- self ._validValue = validValue
41- self ._errorMessage = errorMessage
4238 self ._visible = visible
4339 self ._exposed = exposed
4440 self ._isExpression = (isinstance (self ._value , str ) and "{" in self ._value ) \
@@ -108,8 +104,6 @@ def validators(self):
108104 invalidate = Property (Variant , lambda self : self ._invalidate , constant = True )
109105 semantic = Property (str , lambda self : self ._semantic , constant = True )
110106 uidIgnoreValue = Property (Variant , lambda self : self ._uidIgnoreValue , constant = True )
111- validValue = Property (Variant , lambda self : self ._validValue , constant = True )
112- errorMessage = Property (str , lambda self : self ._errorMessage , constant = True )
113107 # visible:
114108 # The attribute is not displayed in the Graph Editor if False but still visible in the Node Editor.
115109 # This property is useful to hide some attributes that are not relevant for the user.
@@ -286,11 +280,11 @@ class Param(Attribute):
286280 """
287281 """
288282 def __init__ (self , name , label , description , value , group , advanced , semantic , enabled , invalidate = True ,
289- uidIgnoreValue = None , validValue = True , errorMessage = "" , visible = True , exposed = False , validators = None ):
283+ uidIgnoreValue = None , visible = True , exposed = False , validators = None ):
290284 super (Param , self ).__init__ (name = name , label = label , description = description , value = value ,
291285 group = group , advanced = advanced , enabled = enabled , invalidate = invalidate ,
292- semantic = semantic , uidIgnoreValue = uidIgnoreValue , validValue = validValue ,
293- errorMessage = errorMessage , visible = visible , exposed = exposed , validators = validators )
286+ semantic = semantic , uidIgnoreValue = uidIgnoreValue , visible = visible , exposed = exposed ,
287+ validators = validators )
294288
295289
296290class File (Attribute ):
@@ -351,11 +345,11 @@ class IntParam(Param):
351345 """
352346 """
353347 def __init__ (self , name , label , description , value , range = None , group = "allParams" , advanced = False , enabled = True ,
354- invalidate = True , semantic = "" , validValue = True , errorMessage = "" , visible = True , exposed = False , validators = None ):
348+ invalidate = True , semantic = "" , visible = True , exposed = False , validators = None ):
355349 self ._range = range
356350 super (IntParam , self ).__init__ (name = name , label = label , description = description , value = value ,
357351 group = group , advanced = advanced , enabled = enabled , invalidate = invalidate ,
358- semantic = semantic , validValue = validValue , errorMessage = errorMessage ,
352+ semantic = semantic ,
359353 visible = visible , exposed = exposed , validators = validators )
360354 self ._valueType = int
361355
@@ -381,11 +375,11 @@ class FloatParam(Param):
381375 """
382376 """
383377 def __init__ (self , name , label , description , value , range = None , group = "allParams" , advanced = False , enabled = True ,
384- invalidate = True , semantic = "" , validValue = True , errorMessage = "" , visible = True , exposed = False , validators = None ):
378+ invalidate = True , semantic = "" , visible = True , exposed = False , validators = None ):
385379 self ._range = range
386380 super (FloatParam , self ).__init__ (name = name , label = label , description = description , value = value ,
387381 group = group , advanced = advanced , enabled = enabled , invalidate = invalidate ,
388- semantic = semantic , validValue = validValue , errorMessage = errorMessage ,
382+ semantic = semantic ,
389383 visible = visible , exposed = exposed , validators = validators )
390384 self ._valueType = float
391385
@@ -447,13 +441,12 @@ class ChoiceParam(Param):
447441 _OVERRIDE_SERIALIZATION_KEY_VALUES = "__ChoiceParam_values__"
448442
449443 def __init__ (self , name : str , label : str , description : str , value , values , exclusive = True , saveValuesOverride = False ,
450- group = "allParams" , joinChar = " " , advanced = False , enabled = True , invalidate = True , semantic = "" ,
451- validValue = True , errorMessage = "" ,
444+ group = "allParams" , joinChar = " " , advanced = False , enabled = True , invalidate = True , semantic = "" ,
452445 visible = True , exposed = False , validators = None ):
453446
454447 super (ChoiceParam , self ).__init__ (name = name , label = label , description = description , value = value ,
455448 group = group , advanced = advanced , enabled = enabled , invalidate = invalidate ,
456- semantic = semantic , validValue = validValue , errorMessage = errorMessage ,
449+ semantic = semantic ,
457450 visible = visible , exposed = exposed , validators = validators )
458451 self ._values = values
459452 self ._saveValuesOverride = saveValuesOverride
@@ -527,12 +520,12 @@ class StringParam(Param):
527520 """
528521 """
529522 def __init__ (self , name , label , description , value , group = "allParams" , advanced = False , enabled = True ,
530- invalidate = True , semantic = "" , uidIgnoreValue = None , validValue = True , errorMessage = "" , visible = True ,
523+ invalidate = True , semantic = "" , uidIgnoreValue = None , visible = True ,
531524 exposed = False , validators = None ):
532525 super (StringParam , self ).__init__ (name = name , label = label , description = description , value = value ,
533526 group = group , advanced = advanced , enabled = enabled , invalidate = invalidate ,
534- semantic = semantic , uidIgnoreValue = uidIgnoreValue , validValue = validValue ,
535- errorMessage = errorMessage , visible = visible , exposed = exposed , validators = validators )
527+ semantic = semantic , uidIgnoreValue = uidIgnoreValue ,
528+ visible = visible , exposed = exposed , validators = validators )
536529 self ._valueType = str
537530
538531 def validateValue (self , value ):
0 commit comments