Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get actual brush blend mode

Engaged ,
Jun 09, 2018 Jun 09, 2018

I'm trying to get the actual brush blend mode (not layer blend mode).

I'm not very familiar with ActionDescriptor. So before I lose a lot of time, can some of you awesome guys help me?

Thomas

TOPICS
Actions and scripting
722
Translate
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

People's Champ , Jun 09, 2018 Jun 09, 2018

alert(typeIDToStringID(get_tool_mode()))

function get_tool_mode()

    {

    try

        {

        var r = new ActionReference();

        r.putProperty( charIDToTypeID( "Prpr" ), stringIDToTypeID( "tool" ) );

        r.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );

        return executeActionGet(r).getObjectValue(stringIDToTypeID("currentToolOptions")).getEnumerationValue(stringIDToTypeID("mode"));

        }

    catch (e) {  }

    }

Translate
Adobe
People's Champ ,
Jun 09, 2018 Jun 09, 2018

alert(typeIDToStringID(get_tool_mode()))

function get_tool_mode()

    {

    try

        {

        var r = new ActionReference();

        r.putProperty( charIDToTypeID( "Prpr" ), stringIDToTypeID( "tool" ) );

        r.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );

        return executeActionGet(r).getObjectValue(stringIDToTypeID("currentToolOptions")).getEnumerationValue(stringIDToTypeID("mode"));

        }

    catch (e) {  }

    }

Translate
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
Engaged ,
Jun 10, 2018 Jun 10, 2018
LATEST

Thanks!

Translate
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