Rune L-H
Explorer
Rune L-H
Explorer
Activity
‎Jun 25, 2015
12:44 PM
JSinha, last I heard was that the engineers would take a look at it. But you should give the support ticket a vote here: Photoshop CC 2015: (win7) Crashes instantly when extension uses script UI I did come up with a hackish workaround to this issue though. If you make a script that briefly shows an (invisible) dialog and closes it again, and run that from Photoshop's File->Script menu before using the extension, then Photoshop will not crash. This means that you can distribute that script together with your extension and run it as part of the extension initialization, and everything will work out the box for the end user. Here's my code: // Copy this script to Photoshop/Presets/Scripts folder var dlgWindow = new Window("palette", ""); dlgWindow.opacity = 0; dlgWindow.show(); dlgWindow.close(); // In your panel initialization try{ if ($.os.match(/windows/i)) { var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" ); var desc1 = new ActionDescriptor(); var idjsNm = charIDToTypeID( "jsNm" ); desc1.putString( idjsNm, """YOUR SCRIPT NAME""" ); var idjsMs = charIDToTypeID( "jsMs" ); desc1.putString( idjsMs, """undefined""" ); executeAction( idAdobeScriptAutomationScripts, desc1, DialogModes.NO ); } }catch(e){}; Crazy, eh.
... View more
‎Jun 23, 2015
01:56 PM
CC2015 also seems to have broken ScriptUI.environment.keyboardState. Reported here: Photoshop CC2015 has broken Script UI Keyboard state object
... View more
‎Jun 18, 2015
12:24 PM
Thanks Tim. That's very helpful!
... View more
‎Jun 18, 2015
11:00 AM
2 Upvotes
You can do this: // check if active layer is an artboard var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) ); var isArtboardLayer = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled")); // get artboard dimensions var artBoardRect = executeActionGet(ref).getObjectValue(stringIDToTypeID("artboard")).getObjectValue(stringIDToTypeID("artboardRect")); var artBoardRectWidth = new UnitValue (artBoardRect.getDouble(stringIDToTypeID("right")) - artBoardRect.getDouble(stringIDToTypeID("left")), "px"); var artBoardRectHeight = new UnitValue (artBoardRect.getDouble(stringIDToTypeID("bottom")) - artBoardRect.getDouble(stringIDToTypeID("top")), "px"); But I'm still struggling for a way to read the current value of the "autoExpandEnabled" setting... anyone?
... View more
‎Jun 17, 2015
04:52 PM
Thanks.
... View more
‎Jun 17, 2015
04:51 PM
I'm trying to read the current value of "autoExpandEnabled". Anyone knows how to find it?
... View more
‎Jun 17, 2015
04:03 PM
You can download an example extension here:
https://dl.dropboxusercontent.com/u/2...
It's a new blank project from extension builder 3, modifled to use a dialog instead of an alert.
... View more
‎Jun 17, 2015
03:18 PM
As far as I can tell it's any script that opens a script UI window. Those will crash PS but only when called from an extension.
... View more
‎Jun 17, 2015
11:31 AM
Tim or Chuck, I haven't figured out how to access the document level array of all artboards that you mention. Any cues on how to do that?
... View more
‎Jun 17, 2015
03:14 AM
17 Upvotes
Photoshop CC2015 on Win7 64bit crashes instantly when an extension runs a jsx to draw a window or palette using script UI. The same script works perfect when being run from ExtendScript instead of from the extension. If I first run any script that draws a script UI window (either from ExtendScript or from File->Scripts) then the extension suddenly works without any crashes... until next time PS is restarted. I have tried this on two different pc's with two different extensions, one being the default project generated by Extension Builder 3.
... View more
‎Jun 17, 2015
03:03 AM
So far I've run into these issues: - Photoshop CC2015 on Win7 crashes instantly when an extension runs a jsx to draw a window or palette using script UI. The same script works perfect when being run from ExtendScript instead of from the extension. Also, if I just briefly run any script that draws a script UI window (either from ExtendScript or from File->Scripts) then the extension works without any crashes... until next time PS is restarted. Vote for the support ticket here: PS CC2015 (win7) crashes instantly when extension uses script UI - Seems there is a change in what kind of error dialogs are shown. Stdlib.convertToSmartLayer() now results in an error saying "The object 'layer 394 of document 5932' is not currently available". This is caused in Stdlib.wrapLCLayer() when it tries to reselect the layer and it's not available. It can be avoided by using app.displayDialogs = DialogModes.NO / Rune
... View more
‎Oct 11, 2014
02:48 AM
Yep, agree on the willies But then again, most AM code does that to me. Btw, thanks for all your contributions to the scripting community. Much appreciated!
... View more
‎Oct 10, 2014
01:57 PM
1 Upvote
Hi, this also seems to work, at least in CC 2014. I haven't tested it fully, but it's shorter and doesn't seem to affect content or other text properties. That being said, I still hope Adobe gets a fix out fast for textItem.size
var changeTextSize = function(newSize){ var idsetd = charIDToTypeID( "setd" ); var desc23 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref6 = new ActionReference(); var idPrpr = charIDToTypeID( "Prpr" ); var idTxtS = charIDToTypeID( "TxtS" ); ref6.putProperty( idPrpr, idTxtS ); var idTxLr = charIDToTypeID( "TxLr" ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref6.putEnumerated( idTxLr, idOrdn, idTrgt ); desc23.putReference( idnull, ref6 ); var idT = charIDToTypeID( "T " ); var desc24 = new ActionDescriptor(); var idtextOverrideFeatureName = stringIDToTypeID( "textOverrideFeatureName" ); desc24.putInteger( idtextOverrideFeatureName, 808465458 ); var idtypeStyleOperationType = stringIDToTypeID( "typeStyleOperationType" ); desc24.putInteger( idtypeStyleOperationType, 3 ); var idSz = charIDToTypeID( "Sz " ); var idPxl = charIDToTypeID( "#Pxl" ); desc24.putUnitDouble( idSz, idPxl, newSize ); var idTxtS = charIDToTypeID( "TxtS" ); desc23.putObject( idT, idTxtS, desc24 ); executeAction( idsetd, desc23, DialogModes.NO ); }
... View more
‎Jan 29, 2014
07:15 AM
This issue seems to have sneaked in again in PS 14.2 (Windows 7 64bit). Worked fine in previous versions of PS CC.
It's quite a major workflow issue. Most of Photoshop's color selection happens from modal dialogs (even nested dialogs; ie. Layer Style -> Gradient -> Color Picker) and so swatches needs to be scrollable to make sense even when a modal dialog is open.
... View more