Sg2.9
SG not running after ex. rast...
Recent RSS
SG not running after ex. raster script!
From:  AT
Date:  20. October 2006, 10:49

I have used the SG (latest download) and installed it freshly yesterday. At the beginning it run fine but suddenly I get this message in the console:

  • -------

Wrapped com.scriptographer.ScriptographerException: Cannot create art object. Please make sure there is an open document. (C:Program FilesAdobeAdobe Illustrator CS2Plug-insScriptographerscriptsrastersraster.js#23)
com.scriptographer.ScriptographerException: Cannot create art object. Please make sure there is an open document.
at com.scriptographer.ai.Art.nativeCreate(Native Method)
at com.scriptographer.ai.Art.(Group.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:166)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:227)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:183)
at com.scriptographer.js.ExtendedJavaClass.construct(ExtendedJavaClass.java:85)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3126)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2248)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160)
at com.scriptographer.ScriptographerEngine.executeScript(ScriptographerEngine.java:252)
at com.scriptographer.ScriptographerEngine.executeFile(ScriptographerEngine.java:299)
at com.scriptographer.gui.MainDialog.execute(MainDialog.java:264)
at com.scriptographer.gui.MainDialog$11.onClick(MainDialog.java:182)
at com.scriptographer.adm.Button.onNotify(Button.java:75)
at com.scriptographer.adm.NotificationHandler.onNotify(NotificationHandler.java:55)

  • -------

I’m running illustrator CS2 (win)
Note:

Tools are running fine but not the scripts…?

Re: SG not running after ex. raster script!
Date:  20. October 2006, 13:05

Checked this on the latest version of Scripto + win cs2

The only way I was able to replicate this error was by selecting the raster and object on one layer, then click on a hidden/locked layer and execute one of the raster scripts.

Any chance you might have done this by accident?

Re: SG not running after ex. raster script!
From:  AT
Date:  20. October 2006, 14:42

I have hided some objects before I selected the raster and the image, if that’s what you meant!

Workflow:

I have one image I have worked with… its working fine!
I import a new image and make it rasterized – object / rasterize…
Move and hide the old image to a new layer…
Select the new one and my raster bit and hit play on one of the raster-scripts

Thank´s
;o)

Re: SG not running after ex. raster script!
Date:  20. October 2006, 15:15

I don't seem to be able reproduce the exception by the steps you provided..
If you create a new document and try again, does the exception still occur?

Re: SG not running after ex. raster script!
From:  AT
Date:  23. October 2006, 16:17

Yes it dose, but now I have pinpointed the problem. It occurs when you have one or more layers turned off, even if the layer is empty. If you have a turned off layer on top of your current-active layer it goes banana;o)
Moving all the the layers under the current layer solves the problem! But it results in an ever moving of layers and stacking them in correct order… small issue;o)

Best regards

Re: SG not running after ex. raster script!
Date:  23. October 2006, 16:50

Yep, I can reproduce the error now. Scriptographer creates the group in the first layer, when it's invisible it can't create it there and returns an error.

So this bug is only about the first layer being set to invisible (or locked)

When I commented out the lines of code that involve the group, no more errors occurred.. So cloning objects is working fine..

I thought Juerg had already fixed this bug, but maybe only with cloning and not with creating new art objects..

tried reproducing the bug on mac, but no weirdness there.. It creates the group on the active layer.

Re: SG not running after ex. raster script!
From:  Jürg Lehni
Date:  23. October 2006, 19:03

I think this bug is already fixed, I just need to compile and upload the new version for PC. I Will do so this week.

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
Lorem Ipsum Generator 25.06.11