• 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 omit stroke on one side of a text box

Guest
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

Hi,

In InDesign 2015.4, is it possible to omit a stroke on one side a text box ?

As you can see from the attached screenshot, I have a nice style setup that puts a blue border around text boxes to which it is applied.

Unfortunatley, as you can also see from the attached screenshot, you end up with a double-weight blue in locations where the boxes are butted up against each other.

I've looked through all the style settings but can't seem to find anything that will enable me to tell it to "don't apply stroke to left/right/top/bottom" ?

boxcol.png

Views

13.5K

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

LEGEND , Nov 04, 2016 Nov 04, 2016

Light-saber hits, for lazy as me! 

[sample 10 pts stroke]

Capture d’écran 2016-11-04 à 16.57.06.png

/*

    Written by Michel Allio [ 2016/11/04]

    See:

    https://forums.adobe.com/thread/2231551

    https://forums.adobe.com/thread/2199538

   

    Comment: If, after running the script, you change the stroke weigth, launch the script again to update!

    + Undo!

   

    At your own risk!

*/   

// ----------- Select a stroke -----------

app.doScript(main, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "3-Sides Stroke! …");

function main (

...

Votes

Translate

Translate
Community Expert ,
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

You can remove any one side from the frame using the Direct Select (white arrow) tool, but that probably is not really what you want to do. Another method is to use the distribute spacing command with a negative value in Use Spacing field to compensate for stroke width.

Can you explain in detail what you are doing?

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
Guest
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

Hi Peter,

Thanks for your super quick reply.

In relation to more detail, perhaps the fuller screenshot below would help (the seperation between the two boxes is just shown for the clarity of this question, the right/left border "clash" when they're joined is what I'm looking to address).

Essentially I'm creating a header for a leaflet .

boxcol_2.png

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
Community Expert ,
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

The two methods already mentioned would work, but a better solution might be to use a one-row, two-column table.

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
Guest
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

Peter Spier wrote:

The two methods already mentioned would work, but a better solution might be to use a one-row, two-column table.

I guess that's what they call .... thinking outside the (text)box. 

That sounds like a neat option !

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
LEGEND ,
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

Light-saber hits, for lazy as me! 

[sample 10 pts stroke]

Capture d’écran 2016-11-04 à 16.57.06.png

/*

    Written by Michel Allio [ 2016/11/04]

    See:

    https://forums.adobe.com/thread/2231551

    https://forums.adobe.com/thread/2199538

   

    Comment: If, after running the script, you change the stroke weigth, launch the script again to update!

    + Undo!

   

    At your own risk!

*/   

// ----------- Select a stroke -----------

app.doScript(main, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "3-Sides Stroke! …");

function main ()     

{

var myDoc = app.activeDocument;

var savedHorizontalMeasurementUnits = myDoc.viewPreferences.horizontalMeasurementUnits; 

var savedVerticalMeasurementUnits = myDoc.viewPreferences.verticalMeasurementUnits; 

myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS; 

myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;

var w = app.selection[0].strokeWeight - 1;

with (app.selection[0].transparencySettings.directionalFeatherSettings){ 

    applied = true;

    angle = 90;   //  angle 0° => top side  //  angle 90° => left side //  angle 180° => bottom side //  angle -90° => right side

    noise = 0; 

    chokeAmount = 100 ; 

    followShapeMode = FollowShapeModeOptions.LEADING_EDGE;

    //--------------------------

    topWidth = w; 

    bottomWidth = 0;

    rightWidth = 0;

    leftWidth = 0;

    //--------------------------

myDoc.viewPreferences.horizontalMeasurementUnits = savedHorizontalMeasurementUnits; 

myDoc.viewPreferences.verticalMeasurementUnits = savedVerticalMeasurementUnits;

}

// ___ (^/) ___

Variants [angle = 0°]:

Capture d’écran 2016-11-04 à 17.43.09.png

    //--------------------------

    topWidth = w; 

    bottomWidth = w;

    rightWidth = 0;

    leftWidth = 0;

    //--------------------------

Capture d’écran 2016-11-04 à 17.47.35.png

    //--------------------------

    topWidth = w; 

    bottomWidth = 0;

    rightWidth = 0;

    leftWidth = w;

    //--------------------------

Capture d’écran 2016-11-04 à 18.00.12.png

    //--------------------------

    topWidth = w; 

    bottomWidth = 0;

    rightWidth = w;

    leftWidth = w;

    //--------------------------

As often says my friend pixxxel schubser,

ENJOY!

(^/)

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
Guest
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

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
LEGEND ,
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

(^/) 

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 ,
Nov 04, 2016 Nov 04, 2016

Copy link to clipboard

Copied

Hi

No such thing in styling options. (would be cool...)

However, you can delete the right side of your box using direct selection tool.

Or (what i would do), use the space distribution options, setting negative space value equal to your stroke weight.

regards

Edit: Peter is way too fast for me ^^

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
Community Expert ,
Nov 05, 2016 Nov 05, 2016

Copy link to clipboard

Copied

LATEST

There exist some 3rd party plugins to create a specific border. If it is only a single side you want to omit, add an anchor point and delete it immediately.

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