I went through the post again to make sure however what I am after is slightly different.
the script in the post looks for the internal workings of ngui for its onpress and so on.
what I am after is a script to send to an fsm that would fit in the "call when finished" field.
this from what I understand calls the script once the animation has finished.
I would prefer this way to garuntee there would not be any issues between playmaker and ngui, for example a 3 second UI animation was played, instead of having an event sent by onpress and a 3 second wait in playmaker, the event would only be sent once the animation has finished avoiding any miss match in time between playmaker and ngui.
it may be possible to edit the original script to check for call when finished is triggered instead of a script to go into this field, I think that way would be more useful/easy way to use this as you would be calling the same script every time that can not be changed, however I am not sure if this is possible.
below is an image with the field within the animation script of ngui that I am refering to