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

How to select "Effects >> multiply" setting?

Contributor ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Dear Friend,

How to select "Effects >> multiply" setting in javascript? I have place the screenshot below;

Eff.png

please suggest friends,

Thanks in Advance

KS

TOPICS
Scripting

Views

590

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

Guru , Oct 07, 2016 Oct 07, 2016

Try this:

currLineTxFrm.transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;

Votes

Translate

Translate
Contributor ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Dear Friends,

Sorry! one point is missing. Please see below;

I need to applied for text frames only in the above options.

Thanks

Ks

Votes

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
Guide ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Did you tried anything?

Votes

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
Contributor ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Thanks to your reply!

Yes!

This is my part of code - TPK: Below

var currLinecont = xmlElements.lines;

var currLinecontLen = currLinecont.length; //current line connt

//Here with creating for text frames as per current line width and hight

var currLineLeading = parseFloat(xmlElements.texts[0].leading); //Here geting with current text leading sapce.

var x1currLineHor = parseFloat(xmlElements.texts[0].horizontalOffset); //Here geting with current text left to right sapce.

var y2currLineBase = parseFloat(xmlElements.texts[0].baseline); //Here geting with current text baseline sapce.

var x2currLineEndHor = parseFloat(xmlElements.texts[0].endHorizontalOffset); //Here geting with current text right to left sapce.

var y1currLine = parseFloat(y2currLineBase-currLineLeading);

var currLineTxFrm, currLineTxFrmY1;

//Start single line text frame creat.

    if(currLinecontLen == 1){

        currLineTxFrm = myDoc.pages.itemByName(currLinePageName).textFrames.add({geometricBounds: [y1currLine, x1currLineHor, y2currLineBase, x2currLineEndHor]});

        colrName = rValue+'-'+gValue+'-'+bValue;  //Here with create color nameing.

        MakeColor(colrName, ColorSpace.RGB, ColorModel.process, [rValue, gValue, bValue], colorCMYK);

        currLineTxFrm.fillColor = colrName; //applied for text color.

        //************** I Need help here **************************

    }

Thanks

KS

Votes

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
Guru ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Try this:

currLineTxFrm.transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;

Votes

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
Contributor ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

LATEST

Hi kasyan,

Thanks lot!

Your coding working good

Thanks

KS

Votes

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