UNSOLVED Is there a Metrics Machine extension API?



  • I'm hoping to build a secondary proofing view that will relate to work done in the Metrics Machine extension.

    Specifically, I am hoping to take the currently-displayed string from MM and show that in a secondary view, probably processed through Drawbot.

    But, this leaves me stuck at step 1: is there a way to access the currently-displayed string in MM?

    I'm imagining some kind of approach like the following (though, this is a totally wild stab, based slightly on scripting with the Space Center):

    >>> from mojo.UI import CurrentMetricsMachine
    >>> kernText = CurrentMetricsMachine().getRaw()
    >>> print(kernText)
    
    'HHATHOHOO'
    

    Is there any way of doing this or anything similar? Is there anywhere I might read more about scripts involving Metrics Machine?

    Thanks for any leads!



  • Is there anywhere I might read more about scripts involving Metrics Machine?

    The next version of the current extension will have a scripting API. We're going to release it very soon.


Log in to reply