PixelBender + Flash in Photoshop panel

Dear all,
I've posted something similar in Configurator forum with no
luck, so here I am with my question: any hint or comment will be
greatly appreciated.
Is it possible for a SWF that contains a PixelBender shader to
be embedded in a Photoshop CS4 panel?
I'd like to exploit some built-in function of Flash (like
blur and other filters) without the need to write custom code, and
build a complex PixelBender shader concatenating several pbj files:
the Photoshop panel should contain only the sliders of course, and
the effect have to be applied to the opened image. The Photoshop
panel developer's guide explains that, for the project to be
working and besides the swf, it's needed a javascript that
communicate with Photoshop through its DOM, and it seems that there
happens all the Photoshop commands. Currently I'm stuck and it
seems to me there's no way to make it works.
Why all this pain? Because it would mean to be able to have
complex shaders in form of sort-of-binary plugin-like easy to use
Photoshop panel; it would open a world of wonders.
Thanks in advance for any comment or thoughts
Davide Barranca
Bologna, Italy

Hi Davide,
I have to apologize. I misread your first email and
misunderstood what you were trying to achieve. I thought you were
simply asking whether you could use Pixel Bender filters in the
Panels at all (the answer to which I didn't know until I tried it
yesterday). I see now that you are trying to write your own
Photoshop filter with the Panel APIs.
I'm not sure what you want to achieve is possible with the
current Photoshop panel model, and even if it is possible, I don't
think it will be very fast. The Photoshop Panel functionality is to
provide an easy way to add a new workflow UI to Photoshop, but I
don't think it was intended to add new image processing features to
Photoshop. In general, if you are adding any new image processing
to Photoshop, you have to go through the Photoshop Plug-in SDK. I
did look at the documentation for the Panel API. I'm no expert on
Photoshop scripting, but it looks like the exported properties of
the DOM are purely descriptive with little chance to access the
actual data. The only bit of promise is to use the ColorSampler
tool to pull the image data from the foreground window, but that
would be extremely painful and very slow. Even if that did work, I
didn't see any way to actually update the pixels in the document.
That being said, I believe there might be an indirect way to
achieve what you are trying to do. The basic workflow would be:
1. Use Panel API + Javascript to have Photoshop write out the
image to a known location
2. Load the image from the saved location in the SWF
3. Process the image in the SWF
4. Save the resultant image back out to the file
5. Use the Panel API + Javascript to have Photoshop load the
file
I'm not 100% sure that this will work, and it definitely does
have some side effects like leaving an image on disk and opening up
another document in Photoshop for the results. But, I believe it
will do the job. I'll see if I can whip up a tutorial on this if it
works, but since it is not an easy example, it might take some
time.
As I said, I'm definitely no expert on Photoshop scripting,
so I would strongly recommend contacting the
Photoshop
scripting forums to see if there is a way acquire the image
data directly from the DOM. Judging from what the Panel API is
trying to achieve, it's not likely that this is possible or will be
well supported. Trying to track down the pbk versions of the
filters to put into the Pixel Bender Photoshop Plug-in is always an
option.
Again, I apologize for the misunderstanding. My eyes simply
stuck to the question in bold. Good luck with your search.
Thanks,
Brian

Similar Messages

  • Pixel bender filters in Photoshop Panel

    Hello,
    I'm writing a suite of Photoshop filters with PixelBender and would like to know if there is a way to call them from a Photoshop Panel built with Configurator without embedding these filters in a flash panel.
    I tried to build a panel with configurator, but in the filters menu, PIXEL BENDER doesn't show. So, I guess I will have to build a flash panel which is close to Chinese for me (read http://forums.adobe.com/message/37408).
    Am I out of luck?
    Thanks!
    Enrique

    Use a 'Run JavaScript' button from ACTIONS/SCRIPTS section of Configurator.
    Then use/modify the following code:
    try{
    var idPbPl = charIDToTypeID( "PbPl" );
        var desc636 = new ActionDescriptor();
        var idKnNm = charIDToTypeID( "KnNm" );
        desc636.putString( idKnNm, "Kaleidoscope" ); /*modify the name of your pixel bender filter*/
        var idGpuY = charIDToTypeID( "GpuY" );
        desc636.putBoolean( idGpuY, true );
        var idFPth = charIDToTypeID( "FPth" );
        desc636.putString( idFPth, "/Applications/Adobe Photoshop CS4/Pixel Bender Files/kaleidoscope.pbk" ) /*modify the path to your filter*/
    executeAction( idPbPl, desc636, DialogModes.ALL );
    }catch(e){
         /* catch user cancellations */
    I have it so the default settings are populated and the Pixel Bender dialog is shown (DialogModes.ALL). You could use the scripting listener plug-in to populate specific settings and/or not show the dialog (DialogModes.NO)

  • Command-line Compilation of Photoshop Panels

    Hello,
    I'm attempting to create a Photoshop Panel using the Flex SDK and the mxmlc compiler.  I'd really love to avoid Flash Builder.  Here is the compilation line and the resulting error:
    ~/dev/shared/flex/bin/mxmlc --show-actionscript-warnings=true --strict=true -include-libraries=CSXSLibrary-2.0-sdk-3.4.swc -load-config=config.xml gridpanel.mxml
    Loading configuration file /Users/justin/dev/me/photoshop/gridpanel/config.xml
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.core:IWindow)
    Error: Type was not found or was not a compile-time constant: NativeWindow.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenu.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenuItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHistoryItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLUncaughtScriptExceptionEvent.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.managers:NativeDragManagerImpl)
    Error: Type was not found or was not a compile-time constant: NativeDragEvent.
    I don't have too much experience with Flex, but I'm guessing the CSXS library is using mx.* components that I haven't linked against.
    Here is the config file I'm using.  My flex SDK is located at "/Users/justin/dev/shared/flex/", hence the absolute paths in the config file.
    Out of desperation, I downloaded Flash Builder to see if I could inspect what compilation command it was running.  I had it dump the config file it was generating, and attempted to use it (it looks almost identical) and I ended up with the same error when trying to compile from the command line.
    For the sake of completness, I have a super basic MXML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- Copyright 2010 __MyCompanyName__. -->
    </mx:Application>
    Have any idea what I might be missing?
    - Thanks

    I had an HTML Class instantiated on my code, which is part of air framework. Removing it, all works.

  • Debugging a Photoshop panel with FB4

    Hello,
    I'm trying to get my environment set up to debug a Photoshop panel I'm working, since the include AIR debuggers is apparently no longer supported. I've followed all the steps in the CS5 sdk guide, like setting the PlayerDebugMode to 1, and adding the Contents/debug file to Photoshop.
    In the documentation it then says in FB to:
    1. Open your project in Flash Builder and select it in the Package Explorer.
    2. Choose Run > Debug > Other.
    Getting Started with the Adobe Creative Suite SDK Packaging and signing your extension for deployment 19
    3. Select Web Application and click New to create a configuration for Web Application.
    4. Enter "Debug <extension_name>" in the Name box, and the name of your project in the Project box.
    5. Deselect the "Use defaults" option.
    6. Replace the values in the Debug, Profile, and Run boxes with about:blank.
    7. Click Apply and close the dialog.
    In the dialogue that comes up under Run > Debug > Other, there are no such "Debug, Profile, and Run boxes." The only place I can see to enter "about:blank" is under "URL or path to launch." That doesn't really make sense to me, since I'm not trying to launch about:blank.
    What should I be doing here?
    Also, once all of this is done, Nothing shows up under "Run > Debug > your_debug_config_name" as the guide suggests. I have to go back to "Run > Debug > Other" to select my profile again.

    Ha, fantastic! Your post prompted me to go back and look at all the debug flags to see why it wasn't working. I had the debug file in Photoshop and the PlayerDebugMode set in ~/.../com.adobe.CSXS2Preferences.plist but that wasn't working. It occurred to me to check /.../com.adobe.CSXS2Preferences.plist as well, which hadn't been set. When I set that it started working for me.
    I'm curious why having it in my ~/ directory didn't activate it. Is that some sort of global only setting, or is it possible I have some kind of problem elsewhere? I've noticed a number of debug related things (like which version of flash player is used) have issues when I try to do them in the user rather than globally.

  • Can't Left Click in Flash Player Settings Panel - HELP PLEASE

    Hi and thanks for taking the time to read this. Believe me it is a fraction of the time I have wasted trying to resolve this issue.
    Basic problem is:
    I am trying to stream to Ustream but since downloading AFP11 for my Windows PC when I open the Flash Player Settings panel i can't left click on anything. It is set to deny but I can't click allow, or close or any of the icons.
    Right click does work.
    I have followed countless instructions in other forums from other posts that have encountered the problem on Mac and older versions of AFP but as yet none of the solutions have proven succesul.
    I have tried all of the following but nothing has resolved the problem.
    1. Uninstall and reinstall Adobe Flash Player (although this is impossible using Google Chrome) and restart computer.
    2. Unistall flash and install older version. (made no difference on Google Chrome and on IE8 had no flash whatsoever).
    5. Uninstall older AFP and reinstall AFP11.
    4. Uninstall Google Chrome and restart computer.
    5. Uninstall QuickTime (I got this off http://www.techsupportforum.com/forums/f10/flash-player-not-working-properly-please-help-1 61552.html) and restart computer
    6. Last resort use keyboard shortcuts such as tab, enter and ctrl+arrows. This either didn't highlight the panel at all or if it did I still couln't select allow, or close the panel itself so was no help either.
    So now I'm back to square one.
    Now here's a really bizarre thing... I am using a shared laptop computer and if I use my colleagues profile where she hasn't updated her AFP to Adobe Flash Player 11 the settings panel is responding just fine. IT'S THE SAME PC!
    I know I am alone with this problem but someone out there has an answer. If you can help please let me know how to fix this problem where I can't left click in the Adobe Flash Player settings panel.and I will be eternily grateful.
    many thanks
    nik

    OK the amount I hate myself right now is more than a fat guy's self loathing for raiding the fridge at 2am for Pizza but less than an armed robber who's accidentally shot a pregnant woman in the stomach during a shootout. but not much less.
    So after I had miraculously got the Flash Player Setting Panel to work again, (after deleting QuickTime and leaving the window open for abut an hour it just started working again) I then got enticed into downloading the ustream producer software.
    While downloading it informed me that it would only work with QuickTime.
    Stupidly and Optimistically hoping it would remove the need to use flash player altogether I downloaded and installed both.
    I then discovered to my horror that Ustream producer is not a patch on Vidbalster and that it was not capable of delivering the same level of broadcast.
    I then opened the flash player settings panel on ustream and... the problem has returned!
    This means I am 99% sure that QuickTime IS the cause of the problem so I have uninstalled QT off the PC. I have also uninstalled Ustream Producer.
    The thing is though, now no matter how many times I restart, or uninstall and reinstall Adobe, or Google Chrome, I am once again UNABLE TO LEFT CLICK IN THE FLASH PLAYER SETTINGS PANEL. AAAARRRRRGGGGHHHH!!!!
    What did I do? I fixed it and  f***ing broke it again!
    Now it properly will not come back to life! the problem is not solved and i urgently need help.
    Why does Adobe Flash Player Settings Panel and Apple QuickTime hate each other so much that they've got to ruin my life?
    Help forum PLEASE!
    Regards,
    nik

  • Flash security settings panel

    I am new to FlashPro CS5.  I need to use it with SlideShowPro Director and the associated product 'ThumbGrid'.
    I followed the instructions and settings from SlideShow Pro but nothing happens when I publish.  They say I need to go to the flash security settings panel and add my local folder as a trusted location to execute the files from.
    I cannot find the flash security settings panel.  Can I get a hint on where to find the flash security settings panel. I need to add my local folder as a trusted location to execute the files from
    Has anyone in the forum had experience with SlideShowPro Director or Thumb Grid.

    Its okay continue with the thread, the next thing is about the crossdomain policy, you should also know about that for these kind of issues, let see with the following links:
    http://www.designswan.com/archives/actionscript-30-flashs-security-sandbox.html
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Security.h tml?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6
    http://kb2.adobe.com/cps/142/tn_14213.html

  • Icon size in Photoshop panels

    Hello,
    what's the recommended size for PNG icons (to be used in a Photoshop panel)?
    In the CS5 version of the Photoshop Panel Developer's Guide they still uses 50x50px.
    I asked to a friend of mine, who looked inside the application resources: she told me that icons are 128x128, 48x48, 32x32, 16x16.
    If you measure a screenshot (like the one below), the icon border that appears when you mouse over is around 26x26 pixels.
    Is there any official number buried in the documentation?
    Thanks in advance,
    Davide

    This may be coming too late, but as far as I can tell, the panel icons need to be 23x23. If you make it smaller, they'll get scaled up. This info is based on my personal tests (my 21x21 kept scaling up) and digging through the default installed plugins. The Kuler icon is 23x23.

  • Custom brushes in Flash like Photoshop?

    I just started using Flash for my animations and I want to ask if one can create custom brushes in Flash like Photoshop?
    Also I imported an embeded video avi into Flash and I want to reduce the opacity of the video so I can create a new layer over it and draw over the frames with the video as reference.I dragged the movie into the stage and converted to movie clip and reduced the opacity but its not showing on the stage when I go to the part of the video I want to draw over.
    I use Flash CS3.
    BTW,why isn't the bucket tool & selection tool like Photoshop?It makes shading colours problematic?or is it because its vector?

    I was not able to access the mc inside the scroll pane with the code:
    TweenLite.to(mc_pane2.content.scrollpaneBckgrnd_mc.FloraLytell_btn, 1,
    I had to explicitly specify that it is the mc I am accessing inside the
    scroll pane, otherwise I was getting errors:
    TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.FloraLyt ell_btn,
    1, );
    That's OK. It's because ScrollPane::content is of a type DisplayObject. DisplayObject does not contain property named scrollpaneBckgrnd. MovieClip, however, is a dynamic class and enables you to (try to) access virtually any property you can imagine. If it doesn't exist in your particular instance of a MovieClip, you'll get an runtime error.
    P.S. If you have time can you briefly tell me why is there  a line of code
    in your sample:
    mc_pane2.update();
    ScrollPane::update() measures your content and sets scrollbars accordingly, if needed.
    Can it be changed with the size specified for the mc_pane2:
    mc_pane2.setSize(556, 300);
    what would be the major difference between them?
    They definitelly don't do the same. ScrollPane::setSize() sets size of your scrollpane If you get same results using one or the other function, it's because your content is smaller than 556x300px and you don't need scrollbars so in this particular case ScrollPane::update() would "do nothing".

  • Delete adobe flash adobe photoshop elements 8 and shockwave. Problem gone!

    I have an iMac 2.66 GHz Intel Core 2 Duo. 10.6.6.  4Gb ram. 320 hard  drive only used about 50GB of it. I've been using it fine until about  november 2010. Spinning BeachBall  - system holds -  cannot close down  force quit - happens constantly and so i ...
    Reset prams fixed permissions
    safe boot opened new user account
    did hard drive apple disk check cleared caches
    used applejack (this helped a little - for a period of time)
    clean installed slowly reinstalled items
    so after weeks of slow deduction (installing apps programs uninstalling cleaning etc) I have now been able to fix the problem
    delete adobe flash - adobe photoshop elements 8 and shockwave. Problem gone!
    But clearly not solved.
    cannot reinstall later or older versions of flash/shockwave  onto my  computer or in anyway install elements because the problem comes  straight back.
    Help?

    Well you are being thorough on your troubleshooting however this looks like an Adobe issue. Have you posted the problem in an Adobe forum?
    Roger

  • Photoshop panel scrollbars and size

    Hi,
    If you take a look at some of the included Photoshop panels, like the kuler panel, it has a minimum size you can scale the panel. When you do this with a panel you created in Flex, even with the samples that are included with the developer guide, you can always scale the panel down as much as you want and the panel gets the flesh scrollbars.
    How can I make a panel to acts more like the kuler panel and the built in photoshop panels? Is there a way in Flex to tall the photoshop panel what is the minimum size?
    Thanks...

    Hi,
    If you take a look at some of the included Photoshop panels, like the kuler panel, it has a minimum size you can scale the panel. When you do this with a panel you created in Flex, even with the samples that are included with the developer guide, you can always scale the panel down as much as you want and the panel gets the flesh scrollbars.
    How can I make a panel to acts more like the kuler panel and the built in photoshop panels? Is there a way in Flex to tall the photoshop panel what is the minimum size?
    Thanks...

  • Have to remove Flash Player Control Panel but don't know how to find it

    I am attempting to install Flash Player 10.3.n. I have downloaded both versions (IE & Firefox). When I try to install them it comes up with an error message. FLASH PLAY CONTROL PANEL must be turned off. I don't know where this is or how to find it. How can I install these two versions?

    Unfortunately, Firefox for android doesn't support Flash Player. Yet. That feature will be coming soon in a very near future release ;)

  • Flash and Photoshop

    Is it possible to edit photoshop pages and than have flash
    read them as webpages?
    I have downloaded an online template that has flash and
    photoshop files. I was wondering if there is any way I would be
    able to edit photoshop files and flash would recognize them.
    Instead of editing the flash file directly.

    I agree with _xchanin.
    Look for the dropbox and you can select what scene you want
    to edit.
    What version of Flash are you using ?

  • Stop flash player  security panel

    Hi,
         I want to stop flash player security panel to appear every time in my video recorder. I apply allow and remember but still popup appears. How I can stop this popup if once user chooses allow and remember?
    Thanks,

    The security pop-up was first introduced with FP7. If you want to bypass it I can name two ways off the top of my head:
    1. Regardless of ActionScript version (2.0/3.0) in the Flash authoring enviroment, in the Publish Settings dialogue box, the Flash tab, near the bottom choose Access Network Only from Local Playback Security.
    2. Publish your movie as a projector. Both of these techniques will allow to "play" your swf file locally.

  • Tried to reinstall my CS6 master collection onto my iMac. It will not install - In Design, Fireworks, Premiere Pro, Encore, After Effects, Flash Professional, Photoshop, Illustrator & Prelude. Could you give me some advice. I noticed problems when I was d

    Tried to reinstall my CS6 master collection onto my iMac. It will not install - In Design, Fireworks, Premiere Pro, Encore, After Effects, Flash Professional, Photoshop, Illustrator & Prelude. Could you give me some advice. I noticed problems when I was doing some 3D work and the computer kept crashing and thought I would just reinstall my software.

    uninstall (using the uninstallers), clean Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 and then reinstall.

  • URLLoader not working in Photoshop panel?

    I have started creating a panel plugin for Photoshop, but I seem to have run into a road block. I am using a simple URLLoader to grab some info from the internet, but when I load the plugin it never seems to be called nor does it fail. Here is an example of what I am trying to do.
    var url:String = "http://www.mySite.com/page.php";
    var urlR:URLRequest = new URLRequest(url);
    urlL = new URLLoader();
    urlR.contentType = "text/plain";
    urlR.data = "var=something";
    urlL.addEventListener(Event.COMPLETE, onCompleted);
    urlL.addEventListener(IOErrorEvent.IO_ERROR, onFault);
    urlL.load(urlR);
    Is there something I am missing here?
    I have checked the obvious things like:
    Verified "Allow Extensions to Connect to the Internet" is checked in Preferences/Plugin-ins/
    Added Security.allowDomain(url); and Security.allowInsecureDomain(url);
    Even added the swf file location to the flash global settings.
    All to no aval. Any help would be appreciated. It looks like help on panels outside of the flex environment is pretty scares atm.
    Thanks

    Both onComplete and OnFault contain a single command that will cause an alert in Photoshop. For example;
    CSXSInterface.instance.evalScript("alert", "completed");
    CSXSInterface.instance.evalScript("alert", "fault");

Maybe you are looking for

  • Fax picks up fax AND voice calls

    I thought when you have an external modem fax set up, the computer is supposed to tell if it's a voice call or a fax call. For some reason, the fax keeps picking up on ALL calls on the first ring (or any ring # I set it for) and no voice calls are ge

  • What would cause a lot of redo or logswitches in an instance with no users?

    Hello all, I've got a database instance that is set up as a 3 node RAC cluster. I don't think this is RAC related, but the database issues is causing RAC issues. The instance has been set up, and later will be used to temporarily hold data while anot

  • Rotate in bridge

    People I`m new on forum and i`m from Brazil, so, sorry about my english. Why i cannot rotate .gif, .png on adobe Bridge CS3?? can I do that on Adobe Bridge CS4?? If this cannot be possible can i do some scripting for do that? Thanks

  • What happened to my previous TB email system? Suddenly it's changed and I DO NOT LIKE IT.

    How can I go back to the previous TB email system? This new release is very difficult to use. I can no longer delete a message without opening it. When my mouse hovers over a message in the inbox, it does not open. I cannot immediately see that there

  • HTTP tunnelling on version 9.0.2.0.0 - does it work?

    I can't get HTTP tunneling to work on version 9.0.2.0.0, though it seems to work OK on version 2.0.0.0 ( the version included with the JDev Release Candidate) on 9.0.2.0.0 when trying to connect to my session bean using HTTP tunneling I get the follo