This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to the next line of Input Text in Robofont's Space Center | |
from mojo.UI import CurrentSpaceCenter | |
from difflib import get_close_matches | |
class SpacecenterNext(object): | |
def __init__(self): | |
sp = CurrentSpaceCenter() | |
tgli = sp.top.glyphLineInput | |
items = tgli.getItems() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla import * | |
import mojo.drawingTools as ctx | |
from mojo.events import addObserver, removeObserver | |
from mojo.canvas import CanvasGroup | |
from mojo.UI import CurrentGlyphWindow | |
s = 50 | |
class MarkyGlyph(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
# this uses a burner gmail account to send from | |
# I use this to email my phone's sms email | |
email = 'to@email.com' | |
text = 'hello sms' | |
server = smtplib.SMTP('smtp.gmail.com', 587) | |
server.starttls() | |
server.login('burner@gmail.com', 'password') | |
server.sendmail('Robofont', email, text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jackson # ok@yty.pe | |
# version 0.3 - conditional status icons | |
import os | |
from AppKit import NSFilenamesPboardType, NSDragOperationCopy | |
from vanilla import Window, List, Button | |
action = 'Do Thing' | |
class doThing(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
sys.path.append("..") | |
import subprocess | |
# size | |
pW, pH = 612, 612 | |
# timing for animation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# menuTitle : my funky script | |
# shortCut : command+q | |
# command+shift+control+alt+<input> | |
# character space tab backtab arrowup arrowdown arrowleft arrowright f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 f27 f28 f29 f30 f31 f32 f33 f34 f35 enter backspace delete home end pageup pagedown | |
from vanilla import * | |
from mojo.events import addObserver, removeObserver | |
from AppKit import NSApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla import Window, EditText, Button | |
from mojo.extensions import setExtensionDefault, getExtensionDefault, registerExtensionDefaults, removeExtensionDefault | |
class preferenceTest(object): | |
def __init__(self): | |
self.windowname = 'pref save / load test' | |
self.prefKey = 'com.okaytype.toolName' | |
self.makeWindow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quick and dirty auto start points | |
# set a command+shift+t keyboard shortcut to match prepolator | |
def getKey1(item): return item[1] | |
def getKey0(item): return item[0] | |
g = glyph = CurrentGlyph() | |
g.prepareUndo("Lazy Startpoint") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# menuTitle : Toggle Font Toolbar | |
# shortCut : command+alt+` | |
from mojo.UI import AllFontWindows | |
''' | |
toggle the visibility of the toolbar and the status bar in robofont's font overview window | |
sorry, i haven't tested this in single window mode or anything | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# menuTitle : Interpolated Preview | |
''' | |
v 0.2 | |
jackson @ okaytype | |
to do: | |
- clean up imports | |
- better performance | |
- needs a smarter, cheaper redraw trigger | |
- only redraw/reinterpolate the current glyph when changed, keep others |