Sg2.8
News
Recent RSS
From:  Jürg Lehni
Date:  20. July 2010, 15:36

Version 2.8.055 of Scriptographer was just released, including one new feature and a row of bug fixes:

The very convenient pathItem.getIntersections(other) function was added, which returns all intersections between two path items as CurveLocation objects, whether they are open or closed, simple or compound paths. Behind the scenes, this function performs a simple form of bezier clipping. CurveLocation objects are now used in many other places as well. See the reference for further information, and bear with us while we prepare tutorials to explain their function better. This is functionality that the Pathfinder does not offer itself. In fact, none of the Adobe Illustrator tools offer this exact functionality, so we believe this should open doors to a nice new family of scripts.

The release also fixes these known isues:

  • Fix wrong active components in prompt dialogs.
  • Fix an issue where list components were not correctly initialised based on their initially set value.
  • Fix an issues with keyboard short-cuts: Bringing up the main palette window and the console should work now when documents are open.
  • Fix various issues with SpinEdits positions and enabled / disabled states.
  • Fix an issue where displaying prompt dialogs would mess up the undo history.

As always, happy coding, and do not hesitate to get in touch if things do not work as they should or are not clear.

1 Comment
From:  Jürg Lehni
Date:  8. June 2010, 16:46

Here a short note to inform you that the new version 2.8.052 was just uploaded. The previously released 2.8.050 introduced a few regressions due to the many under the hood changes, which were quickly identified and fixed. There are not enough changes for a real change-log, but below a list of what was fixed.

If you encountered problems with the previous release, please test again with this one first before reporting.

  • Fixed a bug in document.getItems(attributes) that prevented attributes.type from being recognised correctly.
  • Fixed UI layout issues with older scripts that directly work with the ADM package, where certain items would appear to have their bounding rectangles set incorrectly.
  • Fixed an error in the undo history tracking code that prevented item deletion from being detected in some situations and therefore leading to item.isValid() falsely returning true for such items.
  • Got version for Mac CS to compile correctly again.
  • Fixed a row of issues in the code that generates the Reference templates and improved documentation for some of the new features.
4 Comments
From:  Jürg Lehni
Date:  3. June 2010, 22:05

It has been a busy couple of weeks here at the Scriptographer HQ, as we were adding new features and writing tutorials, squashing bugs, simplifying things further and also adding support for the new Illustrator CS5.

We are quite excited about the mixture of new things, simplifications and more stability that we added to this release and think it was well worth the wait.

Refer to the change-log for a more complete list of what is new, but here some of the highlights:

Script Repository Manager

We introduced a new way to organise your scripts that is far more flexible and also more secure, as it prevents you from accidentally overriding your own script files: The Scriptographer Repository Manager lets you define multiple script repositories that serve as root folders for your scripts. These root folders show up in the Scriptographer Main Palette as if they were all nested together in one parent folder, but in fact they can be located anywhere on your hard-drive, and really should be located outside of the Scriptographer folder. In the future this will allow far simpler updates of Scriptographer to new versions, without the risk of any changes to your scripts lost – that is as long as you do not store your changes inside the default Examples folder.

Here is how it looks like with my personal configuration of multiple projects done with Scriptographer, all located in different parts of my harddrive:

Palette Improvements

We also spent a lot of time thinking about how the already great new Palette class could be made even more useful, simple and flexible. And we believe we came up with some really great ideas that we are soon going to write more about in the tutorial about User Input and Feedback. We also changed many of the example scripts in the Tools folder to use this powerful new feature, so until the tutorials are done, the best way to see how to use it is to look at these scripts.

Components in palettes now support a couple of new values for component.type: 'font', 'color', 'ruler', 'menu-entry' and 'menu-separator'. But what's even better: If a script changes properties in the values object that is passed to palettes on creation, the palette gets updated automatically and efficiently. In the same way, the components object that is passed to the it now offers simpe access to the created Components, allowing the components to be disabled and enabled again, hidden and shown, list options can be changed, etc.

Please note:

From this release on, the classes previously available through the UI package are now deprecated. The reason for this is that the technology they are based on (ADM) will go away in CS6 when Illustrator will be ported to Cocoa.
In order to prepare for this transition early, and also to simplify the way people work with Scriptographer, we decided to come up with this new way of making UI in Illustrator that we believe is very powerful and incredibly easy. The only classes you need to know of are Palette, Component and Dialog.
Documentation for the previous UI package, now dubbed ADM, is still available at http://scriptographer.org/legacy/adm/.

Timers

Lastly we would like to highlight a feature that might produce a whole new category of scripts: In this release, timers finally became reliable, much faster and stable, allowing them to be used to write background scripts that can continuously change items in the document. This can for example be used for animations, or other playful things, such as the new Throw.js script in the Examples folder. Timers are currently not documented in the reference, but you can use them in the same way as you would in browsers: setInterval() / setTimeout() to set a periodic / one-shot timer, and clearTimeout() / clearTimeout() to abort them again.

This should give a good overview of what is new. We are aware that a lot of things still need better documentation and will now again focus on that part.

We hope you will have as much fun with this release as we had making it.

So that's about it for now from us, time to download and start writing your own scripts!

9 Comments
From:  Jürg Lehni
Date:  24. April 2010, 00:20

We just released another maintenance release. This finally solves a row of issues with mysterious crashes that we encountered for quite a while, making this the most stable release ever.

We have given it quite a hard time in our tests and have yet to experience a single crash.

Refer to the change-log for a detailed list of improvements, and expect a bigger update with a row of nice new features soon!

6 Comments
From:  Jürg Lehni
Date:  22. March 2010, 10:39

The 5th Scriptographer workshop was held by Jonathan Puckey and Jürg Lehni. from March 8 to 12 2010 at ECAL in Lausanne.

The students were asked to come up with ideas for useful tools in Illustrator, either for their own needs or for something they identify as generally missing in Illustrator's functionality. During one intense week of teaching a mixture of geometry, scripting and designing simple user interfaces and interactions, the students then worked on turning their ideas into functioning products.

With Time Bandit 0.1, the first result of this week just started to arrive on the Scriptographer.org website now, and a quite astonishing one too. Who would have thought that Illustrator would be useful as an animation tool?

Thanks again to all the students for their enthusiasm for the scripts. We hope your work will inspire you and others to take this way of working further, beyond the scope of these workshops.

1 Comment
Scripts
23.07.10, 01:02
08.06.10, 20:05
08.05.10, 12:28
18.04.10, 06:57
29.03.10, 18:20
29.03.10, 15:32
Posts
28.07.10, 21:50
26.07.10, 22:15
24.07.10, 20:28
24.07.10, 17:33
23.07.10, 23:14
22.07.10, 17:01
Script of the Moment
Qutter 18.09.08
Donation

If you use Scriptographer regularly or for commercial purposes, please consider making a donation via PayPal:

Thank you!