The object of the CENPyOlpSeries_AttribChangedOperator class is passed to the PostSeriesOnAttribChanged callback as a parameter.
It can be used to obtain the required operators within the scope of the PostSeriesOnAttribChanged callback in the %SeriesName%.py script file, located in the folder of the plugin.
[Example]
def PostSeriesOnAttribChanged(seriesAttribChangedOperator):
pass
This operator gives the possibility to find attribute and get their values.
[Example]
attribGetter = seriesAttribChangedOperator.GetAttribGetter()
This operator gives the possibility to change attribute values.
[Example]
attribSetter = seriesAttribChangedOperator.GetAttribSetter()
This operator gives the possibility to log issues resulting by user input.
[Example]
logOperator = seriesAttribChangedOperator.GetLoggerOperator()
Method is deprecated, consider using GetChangedAttributeName()
This method returns the changed attribute which rises the OnAttribChanged callback.
[Example]
changedAttrib = seriesAttribChangedOperator.GetChangedAttribute()
•
|
GetChangedAttributeName()
|
|
|
name of the changed attribute
|
This method returns the name of changed attribute which rises OnAttribChanged callback.
[Example]
def PostOnAttribChanged(Operator):
logging = Operator.GetLoggerOperator()
logging.LogInfo(FILE_NAME +" GetChangedAttributeName:"+ Operator.GetChangedAttributeName())
|