Forum Replies Created
-
AuthorPosts
-
Thank you frederik!
Incidentally, I’m using Version 1.2 (built 1203042229).
Hmm, the help() built-in function doesn’t work in the RoboFont scripting window.
from defconAppKit.windows.progressWindow import ProgressWindow print dir(ProgressWindow) help(ProgressWindow.update)
Yields:
NameError: name 'help' is not defined
oh, I get it. You call progress.update() count times: that’s why there’s not int argument.
oho, just saw this:
# CurrentFontWindow is only available only in RoboFont 1.3
Hmm, that can’t be right.
for i in range(count): time.sleep(.1) progress.update("action....%s" %i)
You’re formatting a string with an int but using the string format descriptor: %s
Also, shouldn’t progress.update() take an int argument?Lastly,
from mojo.UI import CurrentFontWindow
Yields:
importError: cannot import name CurrentFontWindow
in RoboFont 1.2
cool, thanks.
I moved this extension to http://charlesmchen.github.com/typefacet-robofont/
That’s excellent, but it doesn’t include scripts from extensions. Or am I missing something?
Yes, you’re right.
Ah, I see what you mean.
Alternately, RoboFont could add the root folder of the extension to the python path when it invokes a script from that extension.
I’m not sure how you’re invoking extension scripts in Robofont…Anyhow, I’ve reorganized the extension per your suggestion.
Thanks
Hmm, I’m not sure I understand.
You’re saying that any script that corresponds to a menu item needs to be in the root folder (ie. the “script root” in the Extension Builder)?
I’ve written an extension that does this.
https://github.com/charlesmchen/robofont-extensions-and-scripts
If its not what you had in mind, or if you have any other ideas for extensions, let me know.
I’m not yet satisfied with how it updates control points adjacent to “merged” points.
-
AuthorPosts