Sg2.9
Programming
Recent RSS
Programming
From:  Jürg Lehni
Date:  27. July 2006, 02:00

This post serves as a starting point for all discussions for people who want to be involved in the development of the plugin itself. Questions about how to set up a development environment and where to start coding will be answered here.
If someone is interested in helping out here, please write a reply to this post so I can see there is an interest in this and will then write all the explanations needed.

Re: Programming
From:  Jürg Lehni
Date:  27. July 2006, 10:49

Here are the criteria:

  • Good knowledge of OOP languages and design. As the "flat" Illustrator API is wrapped in a OOP structure, finding good design solutions is important. This is something that can allways be discussed on the forum here.
  • Good knowledge of Java. This is the main language used behind the scene. Mechanisms for JavaScript wrapping are all in place, so adding a new prototype is mostly as easy as creating a new Java class.
  • Knowledge of C / C++ and the Java JNI interface. This is used on the native side of the plugin. JNI is used as an interface to get Java to talk to the C methods. There are quite a few helper functions and scripts to facilitate wrapping of existing Illustrator suites, but sometimes things can become a bit complicated here. Maybe this will soon change to the easier CNI, when we are ready to switch to GCJ.

Basically you can allways start by checking out the code and setting up the development environment to be able to compile. I will write an explanation about how to do this soon.

Re: Programming
Date:  21. September 2006, 12:33

Dear Lehni

I am a senior Java and web developer who would like to work with the plugin. but I was unable to download the source from sourceforge.net. Can you please send me instructions on how to get started.

Best regards

Nikolaj

Re: Programming
From:  Jürg Lehni
Date:  25. September 2006, 13:26

That's great to hear, Nikolaj.

Did you manage to download the source following Simon's instructions?

Re: Programming
From:  Jeff Adams
Date:  8. February 2009, 22:12

Is there interest in expanding the interaction of scriptographer and Illusttrator control to other Java applications? The goal of providing JavaScript scripting through a Java JVM bridge is great, but there is a huge potential to tap this JVM connection for linking Illustrator to other Java applications.

In the past I created a native Illustrator plugin that spoke 'MathLink' and connected Illustrator to a local Wolfram Research Mathematica engine to generate dynamic Illustrator graphics.

I'd rather tap in to the JNI JVM classes you have written and speak to the Java classes to dynamically create and tag Illustrator graphics.

Is there a way to contribute and contrib to the Java side of the codebase at dev.scriptographer.com?
I can only seem to browse source and not see an easy way to SVN checkout to consider making contributions.

Thanks
Jeff

Re: Programming
From:  Jürg Lehni
Date:  9. February 2009, 12:07

Hi Jeff,

This all sounds very interesting!

Yes, such a connection between two JVMs should be possible. You could either write a socket server and your own communication protocol or maybe use one of the RPC architectures available for Java. I'm not a specialist in that field, a bit of research about the available options should be done beforehand.

Since there was very little interest so to contribute to the codebase I have not put a document online yet as to how to access the SVN repository as a guest.

The code is located at:

https://svn.scriptographer.com/

And this gives you the latest revision in a folder called scriptographer:

svn co https://svn.scriptographer.com/trunk scriptographer

In order to be able to compile both the native and Java side of the codebase and get things running quickky a bit of setup work needs to be done. Are you working on Windows or Mac? I am happy to outline all the steps so you get there quickly.

I usually have a symbolic link from the Illustrator plugin folder to my debug build folder, and from there to the Java build folder as well, so the compiled binaries get picked up the next time I start Illustrator, or even straigt away when using Java hot swapping, without repackaging everything. On Windows I use little tool that allows to create NTFS junctions points to do the same.

So let's start like this and see where we get. Once you start making contributions I will review these and if all goes smooth I shall give you write access to the repository directly.

Thanks!

Jürg

Re: Programming
From:  Jeff Adams
Date:  10. February 2009, 03:34

Great info thanks!

Ill give this a shot on Mac for now since that is where I am running CS3, (haven't kept my Windows licenses up to date past Ill9)

Of course once I can get/create a connection at the JVM layer for the plugin, it wouldn't prohibit a connection from a Windows Java application either.

I agree, there are a few choices on protocols, and also some potential service discovery mechanisms like DNS-SD for the plugin to dynamically discover 'Java Illustrator content service providers' on the local machine or subnet.

Your wrapping of the ADM UI is also intriguing as the Java based connections could potentially include sending ADM UI descriptors for any interface dialogs that might be involved.

Thanks, Ill let you know what progress I can make,
Jeff

Re: Programming
From:  Jeff Adams
Date:  12. February 2009, 04:28

Getting up and running wasn't too bad, the build files and project files are pretty straightforward. I'm building from source and have my Debug project linked to my CS3 plugin directory running fine.

I'll need some time to read through the organization of how things are currently setup before deciding how I try hooking into the Java layers.

Thanks
Jeff

Re: Programming
From:  Jürg Lehni
Date:  24. November 2010, 17:24

Hi Jeff,

Did you ever get to work with the source? In the meantime things have changed a lot (moving from svn to git, etc), so you'd need up to date information again.

Would be great to get other people commit to the code...

Re: Programming
From:  David Lumley
Date:  27. February 2011, 19:19

Hello Jürg

i have just stumbled on your work
i am keen to get involved with developing
as i have just come across Sg i will work on some scripts to see how things go
then i will be quite happy to spend time on the Sg code if i can be of use

regards

Da

Re: Programming
From:  Mark Hillig
Date:  2. April 2011, 05:45

Any word on the new location of the source and how to get it checked out? I am interested in reviewing what you have to see how easy it would be to add some new functionality. Also any info on the build environment setup for Windows or Mac would be great. Don't need a full blown tutorial but rather what packages are needed, from whom, and what compiler you are using. Thanks.

  • Mark
Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Sudoku Generator + Solver 03.01.13