I tried this script on CC but it does not work for me.
However, here is the method I usually use when all the artwork is on the same layer:
Make a new square the size of the preview you want.
In the Layers panel, hit the Make/Release Clipping Path button at the bottom of the panel.
This masks the preview area.
Hide or show using the eye on this sublayer.
If you want to use it onwards as your work progresses, it is good to rename this sublayer and for the next preview you have to move it to the top of layer stack. Bring to Front would do the trick.
A second method, if you are using many layers:
Draw a rectangle which covers everything.
Second rectange for the preview area.
Fill both with white, no stroke.
Make a compound Cmd/Ctrl + 8
Move this to a new layer called Preview.
Hide it or show using the eye on the layer.
Hi Sigurdur, in a true Adobe fashion (new bugs introduced with every new release), the Script User Interface got all messed up, as reported here
try the script with an earlier version CS3-CS6
Thanks. Actually in my true fashion I thew out all previous versions of Illustrator (and CS suites) and installed CC fresh. I had preferences all the way down to CS3. But I am going to try your script on one of the other macs I have here. I have no doubts it works. Just wanted to let you know.
ok, thanks for reporting that this script and most likely any other with a Script UI won't work on CC
in case you get to try the script, press "Esc" to dismiss the Preview.
Yes, thanks and thanks for making this script anyway. I love to use scripts (wished I could make some myself). Hope Adobe fixes this issue very, very soon.
Don't know if I'm doing it wrong, but the artboard preview script works for me in CC on a Mac OS 10.6
Monika, you are not doing it wrong. I was. I didn't realize that the black square on the description picture was the artboard. I thought it was a drawn square. (I am using dark for the outside area.) When I moved my objects half outside of the artboard everything behaves right.
Sorry, Carlos, my fault. Your nice script works 100% in CC.
Another old and shabby workaround is to maximise the Navigator palette while the Show Artboard Only option is turned on in its palette flyout menu.
thanks for chiming in Monika, then not all Script UI is broken in CC version, only some of it
glad to hear at least this one script still works.
It is cmd+shift+h on a mac