The object of the CENPyOlpWM_AttribChangedOperator class is passed to the PostWmOnAttribChanged callback as a parameter.
It can be used to obtain the required operators within the scope of the PostWmOnAttribChanged callback in the %WORK_METHOD%.py script file, located in the folder of the plugin.
[Example]
def PostWmOnAttribChanged(wmAttribChangedOperator):
pass
This operator gives the possibility to find attribute and get their values.
[Example]
attribGetter = wmAttribChangedOperator.GetAttribGetter()
This operator gives the possibility to change attribute values.
[Example]
attribSetter = wmAttribChangedOperator.GetAttribSetter()
This operator gives the possibility to log issues resulting by user input.
[Example]
logOperator = wmAttribChangedOperator.GetLoggerOperator()
This operator gives the possibility to open a csv file and read the data.
[Example]
csvOperator = wmAttribChangedOperator.GetCsvParserOperator()
This method returns the world matrix of the attribute reference object.
If the attribute does not have a reference object, the returned matrix will be unit.
[Example]
worldMatrix = wmAttribChangedOperator.GetWorldReference()
This method returns the assigned controller.
[Example]
controller = wmAttribChangedOperator.GetController()
Method is deprecated, consider using GetChangedAttributeName()
This method returns the changed attribute which rises the OnAttribChanged callback.
[Example]
changedAttrib = wmAttribChangedOperator.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())
|