Pixel Bender?

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

Mikeal.Sim

Pixel Bender?

Post by Mikeal.Sim »

Has anyone tried out the Pixel Bender Plugin for PS?
(last item on the page)
http://www.adobe.com/devnet/pixelbender/

I've tried working with it but it seams impossible to produce JS Scripts to run these filters. Its also difficult to get actions to even record running these filters as its inconsistent.

Ideas?

-Mike

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

jcr6

Pixel Bender?

Post by jcr6 »

seems fairly straightforward to me:

Code: Select all// =======================================================
var idPbPl = charIDToTypeID( "PbPl" );
    var desc316 = new ActionDescriptor();
    var idKnNm = charIDToTypeID( "KnNm" );
    desc316.putString( idKnNm, "BilateralBlur" );
    var idGpuY = charIDToTypeID( "GpuY" );
    desc316.putBoolean( idGpuY, true );
    var idFPth = charIDToTypeID( "FPth" );
    desc316.putString( idFPth, "/Applications/Adobe Photoshop CS4/Pixel Bender Files/BilateralBlur.pbk" ); //I used the Bilateral
    var idPNaa = charIDToTypeID( "PNaa" );
    desc316.putString( idPNaa, "d" );
    var idPTaa = charIDToTypeID( "PTaa" );
    desc316.putInteger( idPTaa, 0 );
    var idPFaa = charIDToTypeID( "PFaa" );
    desc316.putDouble( idPFaa, 2.000000 );
    var idPNab = charIDToTypeID( "PNab" );
    desc316.putString( idPNab, "r" );
    var idPTab = charIDToTypeID( "PTab" );
    desc316.putInteger( idPTab, 0 );
    var idPFab = charIDToTypeID( "PFab" );
    desc316.putDouble( idPFab, 4.425000 );
executeAction( idPbPl, desc316, DialogModes.NO );


But it doesn't work in 32-bit mode, or if the image is larger than the VRAM.
Mikeal.Sim

Pixel Bender?

Post by Mikeal.Sim »

Ok, for what ever reason I just can't record running the one that I made.
However I can edit that code to call my filter instead.
odd

thanks
-Mikeal