Layer.translate behavior in configurator panel

i have a simple panel with a Script File button to execute the following script:
app.activeDocument.activeLayer.translate(256);
When i click this, I get:
The object "previous history state" is not available
This was part of a larger script that has some funky bahvior when running through configurator.  Through ESTK, it works as expected.  So I narrowed it down to this.
Why is it trying to do history state stuff?

May be here your solution :-)
http://www.ps-scripts.com/bb/viewtopic.php?f=2&t=4041

Similar Messages

  • Photoshop scripting calls from Adobe Configurator panels

    Can javascritpt functions executing from an HTML element inside a panel affect the photoshop scene?  I know it can using the scripting toolkit, but I'm trying to do this in the Adobe Configurator.  In Configurator I created a new panel with an HTML panel and a button inside it that executes a javascript function on click "createDocument".  When I bring this into photoshop, I can load the panel and click on the button, but I never get a new document created.  If I uncomment the "alert" line, reexport the plugin, and click on the button, I get the alert, but still don't get a new document. 
    var createDocument = function() {
        app.documents.add(2,4);
        //alert("creating new doc!");
    I've tried other functions like creating layers, but still don't see anything happening in photoshop affecting the UI.  It's even more frustrating that I don't see any kind of error message that is happening.  My conclusions seem to imply this panel can't call the photoshop files for some reason (running in a different VM, wrong namespace, etc.).  Has anyone been able to make photoshop scripting calls from inside a configurator panel? 

    You might have better luck asking the in the Configurator forum. http://forums.adobe.com/community/labs/configurator/

  • How do i install a configurator panel into cc

    how do i install?convert a configurator panel which works on CS6 into Photoshop cc ?

    Moving this discussion to the Photoshop General Discussion forum.

  • Is the Configurator Panel available in Photoshop CC?

    Will the configurator Panel be available in the "new" photoshop CC?

    Good question.
    I would assume so, but maybe you should ask over at
    http://forums.adobe.com/community/labs/configurator
    though the Forum does not seem to be jumping.

  • My Adobe Configurator panels do not work in CS6 can anyone help?

    my Adobe Configurator panels do not work in CS6 can anyone help?

    See this post http://forums.adobe.com/message/4286318?tstart=0, it helps me to update one of my panels.
    regards

  • Create customized component for Configurator Panel

    The SWFWidget can load a Flash component on the Configurator
    Panel.
    But if your SWF component is a "Flash Panel" which called the
    "CSXSInterface" and execute some functions in the "JSX" file. It's
    a little different
    For example, the "color picker" in the flash panel SDK at url
    http://download.macromedia.com/pub/developer/photoshop/sdk/photoshop_panel_developers_guid e_win.zip
    You still can load this "colorpicker.swf" in a Configurator
    Panel with SWFLoader Widget, it can talk with CSXSInterface
    correctly.
    The only manual step required additionally is that:
    After you export your panel into the Plug-in/Panels folder,
    you can found a file with name "YourPanel.jsx", then copy and paste
    all the script code in "color picker.jsx" into this
    "YourPanel.jsx", then start PS.
    You can see the "Color Picker" works in your Configurator
    Panel as a component.
    I'd uploaded a sample onto exchange at url
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1715 022
    This link is not approved yet, may be available several days
    later.

    Dear ,
    You can try to develope a report with the help of you ABAPer with following FM /BAPI :
    CSAP_MAT_BOM_MAINTAIN
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    Refer this experts theards on this issues : Deletion of BOM item using BAPI/FM
    If you need to go ahead with ECM , you refer  our earlier posting in the same issue :
    Changes in Production Orders
    Regards
    JH

  • Layer.translate() making layer disappear

    Hi,
    Experienced a strange problem trying to move layers with layer.translate(). I had a pretty peculiar case of a bunch of 1px tall and 400px wide dividers as simple artLayers stacked on top of each other. Then I tried to move them vertically to even spacing, i.e. move first one 10px, second 20px, etc. However what happened is that seemingly randomly some layers disappeared after the translate()-operation. When layer disappeared, layer.bounds was correctly [0, 0, 400, 1] before operation, and [0, 0, 0, 0] after operation ie. the pixels really seemed to disappear. I also tried making sure there is no selection and setting the layer as selected before moving, but same results.
    What helped was making the height bigger, e.g. adding an almost invisible dropshadow. It's like Photoshop CS6 would make a rounding error in bounds calculation and decide it became empty. Anyone with similar experience, workarounds?
    Matias

    You are aware that the lines will all end up atop one another with those settings?
    The AM code seems to provide a different result from the DOM code in that the Layers have proper bounds.
    #target photoshop
    var HEIGHT = 5
    app.preferences.rulerUnits = Units.PIXELS
    var doc = app.activeDocument
    for (var i=0; i < doc.artLayers.length; i++) {
        var layer = doc.artLayers[i]
        doc.activeLayer = layer
        doc.resizeCanvas (doc.width, doc.height + HEIGHT, AnchorPosition.BOTTOMCENTER)
    //    layer.translate(0, -HEIGHT);
        moveLayer (0, -HEIGHT);
    function moveLayer (theX, theY) {
    // =======================================================
    var idmove = charIDToTypeID( "move" );
        var desc3 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idLyr, idOrdn, idTrgt );
        desc3.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T   " );
            var desc4 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc4.putUnitDouble( idHrzn, idPxl, theX );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc4.putUnitDouble( idVrtc, idPxl, theY );
        var idOfst = charIDToTypeID( "Ofst" );
        desc3.putObject( idT, idOfst, desc4 );
    executeAction( idmove, desc3, DialogModes.NO );

  • Configurator Panel Icons are generic

    I've recently upgraded Photoshop to the latest version 13.0.3. I've noticed that all my Configurator Panels are now generic, even the Adobe Panel Extensions, like Kuler and Mini Bridge. I've used the latest version of Configurator to re-export the Panels that I created but they are still generic. Is anyone else experiencing this bug? Since I have many Configurator Panels that are collapsed in icon view, it makes it very difficult to distinguish which panel is which.
    Thanks,
    Rico

    Hi Terry
    Mine is OK for the Nikon .NEF
    Apple released an update yesterday for Raw Files.
    Some were for Sony.
    http://download.cnet.com/Apple-Digital-Camera-Raw-Compatibility/3000-18513_4-126 289.html?tag=rb_content;main
    Cheers Tomi

  • Javascript Layer translate in CS2

    I'm working on a script that using layer translate for relativly large images and it's going a bit screwy; I was reading up about the layer translate bug using points instead of pixels in early versions of Photoshop. Firstly does anyone know if this ever got fixed in updates of CS2? And secondly if it's still relying on points instead of pixel information is the work around dividing the result by 4.86127 (4.86127 pixels = 1 point)  And thirdly does this bug happen in VB?
    Cheers

    CS2 doesn't have arbitrary canvas rotation. That feature was only introduced in CS5 by ways of GPU acceleration features. For your otehr issue it might help to know what system you are on, so people don't have to do that much guessing. I'm not even sure if the shortcuts already existed back then, but my mmeory is realyl failing me on CS2. Seems liek a lifetime ago.
    Mylenium

  • EA6500 Configuration Panel

    Hi,
    I am going to replace my Netgear DGND3700v2 router with Linksys EA6500. I hope that the signal strength of this router will be better, particularly for 5GHz.
    The problem is that I have a cable connection to Internet and my line has MAC address of Netgear assigned by my ISP. I would like to clone this address to EA6500 to test the power of the signal, before making the final decision to replace Netgear.
    My question is how to do this in off-line mode. I cannot have Internet before cloning.
    I've been using Internet Explorer with various addresses - 192.168.0.1; 192.168.1.1; myrouter.local; even 192.168.2.1 and some others but couldn't get connected to EA6500. Of course, the original CD suppied with the router does not work, either.
    Is there any other way to get to router configuration panel to proceed with cloning the MAC address?
    Robert

    I've made it.
    The solution was in previous posts. Sorry for my laziness.

  • Configurator panels(even empty once) are slowing down Photoshop CS6 significantly

    After updating java this morning, in some cases Configurator Photoshop CS6 panels(even empty once) are slowing down Photoshop CS6 significantly.
    I noticed this when i got complaints about hotkeys not working when custom panels were open, the behavior was similar to holding down the hotkey for temp access to tools
    I found a workaround where i made the panels not persistent and therefor they load everytime i expand them (slowing photoshop).
    Is there a better workaround? and/or is this issue a known thing?

    I Had a problem with Configurator slowing down photoshop and what I found on another thread here worked for me. What I did was to exclude Photoshop from my virus software. Once i did that my issues went away.

  • Package and deploy Photoshop presets with Configurator panels ?

    Hi,
    is there any functionality available in either Configurator or the Extension Manager that might allow me to package and install some Photoshop presets (brushes, shapes, scripts etc) when I create a ZXP file ?.
    I work as an educator, and really like the idea that the Panels can be deployed so easily by novice users. It would be particularly useful if I could also add some content to the presets folder at the same time as installing a Panel.
    Thanks

    An example on how to configure the mxi file for installing  your personal items ( as an example i use burshes) :
    1-Create a new folder inside the directory :   Adobe Extension Manager/Samples/  and call it Photoshop
    2-go to Adobe Extension Manager/Samples/Dreamweaver/
    copy the DreamweaverBlank.mxi file, past it in the Photoshop folder you Have created and rename it PhotoshopBlank.mxi
    You will keep this file as a template.
    3-open the file you renamed with a text editor
    make the modifications  you see below and save it with a nameyoulike.mxi   (without spaces)
    <macromedia-extension
    name="name you want"
    version="number you want"
    The description above will appear in extension manager
    type="command">
    <!-- Describe the author -->
    <author name="your name" />
    <!-- List the required/compatible products -->
    <products>
    <product name="Photoshop" version="version" primary="true" />
    </products>
    instead of dreamweaver write Photoshop, and change also the version
    ( for example Photoshop CS4 is version 11.0,  CS5 is version 12.0)
    That will  target photoshop as program where to install your brush
    <!-- Describe the extension -->
    <description>
    <![CDATA[
    write a description  of the presets you are installing, this will appear in Extension Manager.
    ]]>
    </description>
    <!-- Describe where the extension shows in the UI of the product -->
    <ui-access>
    <![CDATA[
    write a description  of where the  presets you are delivering will be installed in PS.
    ]]>
    </ui-access>
    <!-- Describe the files that comprise the extension -->
    <files>
    <file name="Your brushes' name.abr" destination="$presetsfolder/brushes" />
    <file name="Your brushes' name2.abr" destination="$presetsfolder/brushes" />
    <file name="Your brushes' name3.abr" destination="$presetsfolder/brushes" />
    </files>
    describe the file that will be packaged and the path destination folder
    <!-- Describe the changes to the configuration -->
    <configuration-changes>
    </configuration-changes>
    </macromedia-extension>
    4- place your Your brushes' name.abr /Your brushes' name2.abr /Your brushes' name3.abr
    near the mxi file you have edited and personalized with the same brushes'name
    5- launch Extension Manager CSxx , go to File>Package Extension and go to  Adobe Extension Manager/Samples/ Photoshop and choose your nameyoulike.mxi
    If you want to target a different folder than Presets where to install your item see attribute in the pdf link 
    NOTE:
    if you want to install your items  (  the brushes in this example)   toghether the the installation of your panel  you have to edit   the  .mxi panel file and adding only the part that " Describe the files that comprise the extension":
    <file name="Your brushes' name.abr" destination="$presetsfolder/brushes" />
    May be you can now deploy your panel and items  immediately and have time to read more in the pdf when you'll have time

  • Can I add a PLAY or Continue button in my Configurator Panel with a script?

    Some of my actions have a stop in them so that I can make some adjustments. How can I continue the action to complete it? Right now I need to go back to the regular action set and press the play button or have a shortcut key assigned to play. Can I add a PLAY button in Configurator?

    ocphotog wrote:
    Thanks but the action does most of that already. The action makes one last stop so that I can make a few last adjustments. I need a play button for the Configuator panel so that I do not have to go back to the action panel to press play.
    If the Stop is the last step in the action that action is actually done. I do not do panels but I would venture two guesses.
    1.) Put the stop message in the pannel instead and remove the stop that is in the action.
    2.) Leave the stop in the action so the user knows the process is done and they should make any final adjustment on ther own manually. Make the stop a stop with continue and add to the stop message click continue now.

  • Displaying the layer image in a Flex panel

    Hi,
    I need to display the contents (image) of the active layer in a Flex panel. Was thinking along the lines of saving the layer as a temporary image and then loading it into an Image control. But is there a better/less messy way than this?

    I want to know this too.

  • Layer Palette Behavior When Opening AI Docs

    Whenever I open a multi-layered AI file, all of the layers and sublayers are automatically unzipped (i.e., the disclosure triangles are all downturned by default to expose every layer -- ugh).
    Upon opening an AI document, I would like for the layer disclosure state to match the layer disclosure state of the document at the time the document was last saved and closed.
    Is there a way to change the default behavior of Illustrator here?
    Thanks,
    Mark Oehlschlager

    Nope, It's been this way for multiple versions now. It somehow relates to having Groups of Groups. I have a couple of maps that do this and I have to change it every time I open them.

Maybe you are looking for

  • What other options are there for burning a dvd outside of premiere pro?

    I tried the downloading of PPCS6 which included encoder. That didn't work, the dynamic link library did not contain a link to send something to encoder. Whats the procedure in buring a project from PP to a dvd not using encoder? Thanks for your help!

  • Lightroom 5 Printing under Mac OS 10.8 - crashes

    I have been using  Adobe Lightroom for several years - no problems. Recently I installed LR 5 on my imac  running OS 10.8. Two days ago I was able to print files. Suddenly Lightroom 5 crashed as it exceutes the print script. Have re-installed LR5 ser

  • Is it possible to create a new "Sent" mailbox stored locally on my Mac

    I want to create one or more new "sent messages" mailboxes locally on my Mac. Mailboxes used for incoming mail have the "From" column visible by default, whereas "sent" mailboxes have the "To" column visible by default. I have imported several MBOX f

  • Communication between SCM ICH and ECC

    Hi every one, We are trying to implement SCM ICHin our landscape. Can any one explain me, what all the stuff needed to configurations communication between SCM ICH to ECC. How to do that also? As per knowledge I head PI(Process Integration) is involv

  • Are we missing any Management Packs for newly installed services/applications

    Hello! Would it be possible to get a report or alarm when new server roles, services, applications etc. are installed on the monitored Windows Servers in SCOM 2012 SP1, but there are no Management Packs installed to monitor the new services? For exam