PDA

View Full Version : Prototyping in OmniGraffle?


wolfman
2007-03-29, 12:50 PM
I have just started using OG, and I am beginning to realize the power of this really cool tool.

I would like to create a UI prototype. I would usually do this in something like flash or dreamweaver... but it may be easier in OG. Specifically, I would like to create a screen with various tool pallets... each with tabs. I would like to be able to click to each tab and esentially show or hide the other layers during presentation. I see that there is a way for me to link to different canvases, but is is possible to stay within a canvas and show/hide layers programatically?

Thanks!

Wolfman

Lizard
2007-03-29, 05:40 PM
Sure. Here's an example. With AppleScript, you can do a lot of custom actions.

wolfman
2007-03-29, 06:04 PM
I don't get it. When I put it into preview mode, and I click any of the boxes, it just ends presentation mode. What am I doing wrong?

wolfman

Lizard
2007-03-29, 10:18 PM
It works for me in regular mode (just choose the pointing hand from the toolbar menu), but not in presentation mode either. I think that may be a bug. I'll check with the Graffle ninja.

wolfman
2007-03-30, 06:26 AM
Ah ha! OK, now we're talking! I can see the possibilities here. So, I am looking at the script you wrote, and although I know flash and was an old VB guy, I don't understand it. Can you recommend a resource for me to learn how to do this?

For example, for one of the objects, you have this code:

set c to canvas 1 of front document
set visible of layer 1 of c to true
set visible of layer 2 of c to false
set visible of layer 3 of c to false

I can't figure out how you assigned c, or what it really is? did you somehow assign Canvas 1 the name c? if so, I can't find where you did that. The rest seems self explanatory.

Thanks!

Ed Renaud
2007-03-30, 10:41 AM
Hi,

the first line is the one that assigns a reference to "canvas 1" to the variable "c"; only then do the other lines make sense and work:

set c to canvas 1 of front document

Ciao!

Joel
2007-03-30, 10:54 AM
Using AppleScripts to show/hide layers in Presentation Mode now works in OmniGraffle Professional 4.2 beta 2, which you can find here (http://www.omnigroup.com/applications/omnigraffle/beta/).

optionclick
2007-05-20, 03:47 AM
Does the show/hide only work in presentation mode?
I've been trying to export html pages, and this functionality doesn't work.

gemello
2007-06-09, 01:39 PM
Using AppleScripts to show/hide layers in Presentation Mode now works in OmniGraffle Professional 4.2 beta 2, which you can find here (http://www.omnigroup.com/applications/omnigraffle/beta/).

I've just downloaded beta 5, but the scripts don't work in Presentation mode - has something changed?