03-21-2020, 07:01 PM
Can someone describe how to handle a TransformAgain message?
I get that I need to register a notifier with the Dispatcher (where I specify the callback) and then respond to a notifier in that callback.
I would presume that my plugins transform-again method needs to transform the selection in the same way as the last operation, but shouldn't there be some way for my plugin to register itself as "about to do a transformation" so that it knows that it was the last plugin to do a transform? Do I re-register a new TransformAgainMessageType in the Dispatcher before each new transformation? What does the registerMessageCallback method of Dispatcher that includes a caller and selector string add?
Currently, Transform Again does whatever the transformation was before my plugin transformed something. Any suggestions would be very much appreciated.
I get that I need to register a notifier with the Dispatcher (where I specify the callback) and then respond to a notifier in that callback.
I would presume that my plugins transform-again method needs to transform the selection in the same way as the last operation, but shouldn't there be some way for my plugin to register itself as "about to do a transformation" so that it knows that it was the last plugin to do a transform? Do I re-register a new TransformAgainMessageType in the Dispatcher before each new transformation? What does the registerMessageCallback method of Dispatcher that includes a caller and selector string add?
Currently, Transform Again does whatever the transformation was before my plugin transformed something. Any suggestions would be very much appreciated.