Getting Gaussian Blur Values after running command

Participant ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

I'm trying to get the values after the gaussian blur command has been run, can someone tell me where i'm going wrong here. I use a similar schema to get values from the Color Range Command and it works... the var desc is coming up as undefined...

doc = activeDocument


var desc = gBlur ()

var key = desc.getKey(0)

var radius = desc.getUnitDoubleValue(key);



function gBlur(){
    var c2t = function (s) {return charIDToTypeID(s);};
    var d1 = new ActionDescriptor()
    d1.putUnitDouble( c2t( "Rds " ), c2t( "#Pxl" ), 10.000000 )
executeAction( c2t( "GsnB" ), d1, DialogModes.ALL )}
TOPICS
Actions and scripting

Views

315

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , May 24, 2021 May 24, 2021
sTT = stringIDToTypeID, executeAction(sTT('gaussianBlur'), undefined, DialogModes.ALL).getDouble(sTT('radius'))

Likes

Translate

Translate
Adobe Community Professional ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

 

sTT = stringIDToTypeID, executeAction(sTT('gaussianBlur'), undefined, DialogModes.ALL).getDouble(sTT('radius'))

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

LATEST

Thank you, that works a treat! 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines