SOLVED Ability to customize existing Inspector
-
Hey there,
I saw the existing script example on how to build a custom Inspector, but I would like to limit the amount of windows floating around. Is it possible to tap into the built-in Inspector and add/subtract some buttons and things? If so, how would I start with that?
Thanks!
Ryan
-
@frederik Thank you very much!
-
in the next public beta and release, extension and start up scripts will be loaded before document will open.
-
I see the problem, could be the document is always opened before the application is calling a did finish launching (where the startup scripts are called)
-
@gferreira Thanks for your reply Gustavo. It is now working in Single Window Mode. I think I've figured out the issue though. I was opening the .ufo as a way of opening Robofont, and Inspector-related scripts didn’t work. If I open Robofont and then open the font, those scripts work. Can RF set it such that the startup scripts are set to always run before the font is opened?
-
@ryan the script must be called before an Inspector is opened. I guess with Single Window mode the Inspector is always ‘open’, even if it’s hidden. (?)
this works for me:
- run the script (font is closed)
- open the font in Single Window mode
- the custom pane is there
ps. setting the script as a startup script works for me too… not sure what went wrong in your test.
-
@gferreira Thanks Gustavo! The former doesn’t seem to be working in Single Window Mode. I also tried as a startup script to make sure the Inspector state wasn't cached in Single Window mode. Is this something that you can see working on your end? In the meantime, I'm building it in the other mode.
-
yes, you can add your own panes to the Inspector. have a look at this example.
another option is adding UI controls directly to the Glyph Editor.