Brush tools like: spacing is always 25% per script

When I try to put any tool of type brush spacing, it gets all the values, but not the spacing value [1-1000]

Is this a bug?

For example, when I try to put 2% a spacing value, the result will always be 25%. The same happens when I try other values. The result is 25%

Hardness, diameter, Angle, roundness, Flipy Flipx work well, but not space

setBrushFeatures(130, 40,undefined,undefined,2,undefined,undefined);

function setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx) {
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var appDesc = executeActionGet(ref);
    var toolDesc = appDesc.getObjectValue(stringIDToTypeID('currentToolOptions'));
    var brushDesc = toolDesc.getObjectValue(stringIDToTypeID('brush'));
    if (Diameter == undefined) Diameter = brushDesc.getDouble(stringIDToTypeID('diameter'));
    if (Hardness == undefined) Hardness = brushDesc.getDouble(stringIDToTypeID('hardness'));
    if (Angle == undefined ) Angle = brushDesc.getDouble(stringIDToTypeID('angle'));
    if (Roundness  == undefined) Roundness = brushDesc.getDouble(stringIDToTypeID('roundness'));
    if (Spacing == undefined) Spacing = brushDesc.getDouble(stringIDToTypeID('spacing'));
    if (Flipy == undefined) Flipy = brushDesc.getBoolean(stringIDToTypeID('flipY'));
    if (Flipx == undefined) Flipx = brushDesc.getBoolean(stringIDToTypeID('flipX'));
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID( "Brsh" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
    desc.putReference( charIDToTypeID( "null" ), ref );
    var desc1 = new ActionDescriptor();
    desc1.putDouble(stringIDToTypeID('diameter'), Diameter);
    desc1.putDouble(stringIDToTypeID('hardness'), Hardness);
    desc1.putDouble(stringIDToTypeID('angle'), Angle);
    desc1.putDouble(stringIDToTypeID('roundness'), Roundness);
    desc1.putDouble(stringIDToTypeID('spacing'), Spacing);  // ??????????????  Allways 25%  !!
    desc1.putBoolean(stringIDToTypeID('flipY'), Flipy);
    desc1.putBoolean(stringIDToTypeID('flipX'), Flipx);
    desc.putObject( stringIDToTypeID('to'), charIDToTypeID( "Brsh" ), desc1 );
    executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
}




SuperMerlin Issued the statement in a different thrreat that defines spacing in your original script

DESC1.putUnitDouble (stringIDToTypeID ('spacing'), charIDToTypeID('#Prc'), spacing);

//        Features(Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx)
//setBrushFeatures(undefined,undefined,undefined,undefined,undefined,undefined,undefined);
//setBrushFeatures(13,0,0,100,25,0,0);       //Adobe Defaults
//setBrushFeatures(13,0,0,100,25,true,true); //Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx
//setBrushFeatures(13,0,0,100,25,1,0);       //Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx
//setBrushFeatures(13,0,0,100,25,0);         //Diameter,Hardness,Angle,Roundness,Spacing,Flipy
//setBrushFeatures(13,0,0,100,1);            //Diameter,Hardness,Angle,Roundness,Spacing
//setBrushFeatures(13,0,0,50);               //Diameter,Hardness,Angle,Roundness
//setBrushFeatures(13,0,45);                 //Diameter,Hardness,Angle
//setBrushFeatures(13,50);                   //Diameter,Hardness
setBrushFeatures(25);                        //Diameter 

//==============================================================================================//
function setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx) {
    //A Brush tool must be the current tool
    if (!app.toolSupportsBrushes(app.currentTool)) selectBrush();  //CC 2014
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var appDesc = executeActionGet(ref);
    var toolDesc = appDesc.getObjectValue(stringIDToTypeID('currentToolOptions'));
    var brushDesc = toolDesc.getObjectValue(stringIDToTypeID('brush'));
    if (Diameter == undefined) Diameter = brushDesc.getDouble(stringIDToTypeID('diameter'));
    if (Hardness == undefined) Hardness = brushDesc.getDouble(stringIDToTypeID('hardness'));
    if (Angle == undefined ) Angle = brushDesc.getDouble(stringIDToTypeID('angle'));
    if (Roundness  == undefined) Roundness = brushDesc.getDouble(stringIDToTypeID('roundness'));
    if (Spacing == undefined) Spacing = brushDesc.getDouble(stringIDToTypeID('spacing'));
    if (Flipy == undefined) Flipy = brushDesc.getBoolean(stringIDToTypeID('flipY'));
    if (Flipx == undefined) Flipx = brushDesc.getBoolean(stringIDToTypeID('flipX'));
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID( "Brsh" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
    desc.putReference( charIDToTypeID( "null" ), ref );
    var desc1 = new ActionDescriptor();
    desc1.putDouble(stringIDToTypeID('diameter'), Diameter);
    desc1.putDouble(stringIDToTypeID('hardness'), Hardness);
    desc1.putDouble(stringIDToTypeID('angle'), Angle);
    desc1.putDouble(stringIDToTypeID('roundness'), Roundness);
    desc1.putUnitDouble( stringIDToTypeID('spacing'), charIDToTypeID('#Prc'), Spacing);
    desc1.putBoolean(stringIDToTypeID('flipY'), Flipy);
    desc1.putBoolean(stringIDToTypeID('flipX'), Flipx);
    desc.putObject( stringIDToTypeID('to'), charIDToTypeID( "Brsh" ), desc1 );
    executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
}
function selectBrush() {
    //select brush scriptlistener code
    var idslct = charIDToTypeID( "slct" );
    var desc12 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref8 = new ActionReference();
    var idPbTl = charIDToTypeID( "PbTl" );
    ref8.putClass( idPbTl );
    desc12.putReference( idnull, ref8 );
    executeAction( idslct, desc12, DialogModes.NO );
}

Tags: Photoshop

Similar Questions

  • When you use the Brush tool, it always comes back to the single stroke and no fill. How can I fix it? I have already disabled the new art of a choice of the basic look.

    When you use the Brush tool, it always comes back to the single stroke and no fill. How can I fix it? I have already disabled the new art of a choice of the basic look.

    Double-click on the Brush tool and you will see important option.

    Please also read the manual on the other options.

  • In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). I can't understand how to disable.

    In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). Whenever I try to use a tool, a blue box appears around the line and I have to double click on it to handle, which opens just this line in a screen finery semi where all other objects are semi-gris in the background. I can handle this line in this screen, but nothing else at this point I could do 5 minutes ago. For example, I can no longer reach the 2 lines drawn by the tool online together. For some reason, it started randomly (probably due to an accidental combination) and I just can't put it to what it was. I inserted a video showing if all goes well I mean. Any help would be appreciated.

    Object drawing mode. Simply disable it in the tools Panel, or by using the default keyboard shortcut, which is J.

  • Where is the way to use the Airbrush tool like an airbrush tool?

    Hello. If I could understand the intuitive way to use the airbrush CS6 tool for photoshop I wouldn't be here.

    Yes, I miss my new mac system with my own software and how easy it is the applications work.

    Trying to figure out how to use the tool airbrush CS6 make me wonder about all these decades in the industry of graphic arts where I could use photoshop.

    I'm NOT a newbie to computers and adobe applications. However, that said, they always do their best to confuse me and let me do my work.

    I am about the evacuation? So what...

    Then like a seasoned Photoshop cs6 veteran, before I am now reduced to begging for an answer of how to do a single airbrush on the photo application that I used to do

    After about three minutes, and "outta there". to spend an hour and not being able to accumulate layers of color fade on the lettering in photoshop.

    (you can cut as many you want)

    How you you will find a tool that is not in the toolbar, the Airbrush tool?

    How do you get to the layer of air brush past on an object?

    Thank you

    (I'll probably take the House and my photoshop 5 allows you to do the job)

    In Photoshop 6 and earlier versions, the airbrush has existed as an independent tool. After that, it was moved to an option for the Brush tool.

    Airbrush simulates painting with an airbrush. When you move the pointer over an area, paint builds up as you hold down the mouse button. Brush hardness, opacity and options the Frother to how fast and how much the paint is applied. Click the button to enable or disable this option.

    If you can switch to the simulation of the voice, this video may help: How to use Airbrush in Photoshop CS6 - YouTube

  • The BRUSH TOOL is off-center and screwed up with wacom tablet on my update of Flash 2014

    Hello I updtaed cc Flash today, and I have the same problem. It's like the Brush tool is not calibrate, the line is off of the tip of the pen, about 5 mm beyond the point where I put the pen tip and the beginning of the line is always made a strange figure as figure shows (such as tip number one). It is not my tablet because with the cc Flash (2013), it is OK and is ok too with other software.


    My tablet is calibrated correctly and works fine with photoshop, it's with the brush in Flash tools who is screwing on.  To try to solve the problem, I've updated by driver of the Tablet, but it does not solve the problem.  Remember, it worked perfectly fine with the previous version of Flash, the problem happened as soon as I have upgraded to the new version.

    My tablet is a Wacom Cintiq 12WX

    FLASH CC version: 14.0.0.110

    my pen mode is

    1222.png

    Hello

    I see used Tablet driver version is too old (released in February 2010). Could you please uninstall the old and install the latest drivers which is 6.3.8 - 4. you can download and install the latest driver for cintiq12wx pilots Legacy | Wacom by selecting your Tablet model and the OS. Could you try and check the issue?

    Thank you

    Sangeeta

  • Profile of variable width Brush tool keeps resetting

    This problem is baffling to me. I'm relatively new to Illustrator, so I would appreciate help. I use Adobe Illustrator CS6 with a mouse, rather than a tablet of pressure.

    When I create a line using the paint brush tool, I hold on to contain a profile of variable width. For example, narrower at the beginning and at the end of the race, but thicker in the middle. Now I can do this by selecting the line, after that I did the race and choosing the fundamental definition of the brush in the drop-down list.  But if I try to draw a new line, the settings are reset again.  I can't create a variable race during the creation of the race. The definition of brush guard given to pt 5 round and accidents vascular cerebral width 1 pt. It would be much faster if the race remained as a profile of variable width I created features.

    I noticed the same problem with the blob Brush tool, except that it's even worse. With the blob Brush tool, the weight of the race resets always regardless of whether or not I try to define a profile of Variable width.

    I tried to uncheck "New Art has basic appearance" mentioned on another forum, but that has not worked.

    I know its possible because I've seen on this youtube video. http://www.YouTube.com/watch?v=R5wW_65iAiU

    View the profile of variable width is maintained, like artists, raffles. It is not keep resetting.

    Thank you

    OK - I thought about it.  I was tried on a thicker line, but I guess this line had been created by the brush, or at least brush "3 PT round" had been applied to it.  When I clicked on the back of base, the designation of variable width appeared.

    Phew!  Thanks for sticking with me on this little stupid thing!

  • I just installed acrobat adobe 7.0 standard and everything seems to go well except it doesn't have the option of the typewriter in the section tool like my previous installation. This is a very important feature for me how this works?

    I just installed acrobat adobe 7.0 standard and everything seems to go well except it doesn't have the option of the typewriter in the section tool like my previous installation. This is a very important feature for me how this works?

    Hi timr22708473,

    Acrobat 7 is really an old version of acrobat & might not be compatible with your system configuration to features may or may not work.

    This is the reason why Adobe recommends always using the application in a consistent environment.

    Kind regards

    Nicos

  • Spanish foam Brush tool?

    Is there a Brush tool of Spanish moss in PE or artificial intelligence?

    Not with the default photoshop elements 14 install, but there are a lot of brushes out there, can be added like this:

    http://www.deviantart.com/browse/all/resources/applications/psbrushes/?q=Moss

  • Paint Brush tool vs. Pen: why both?

    Hi all

    I just downloaded CC. animate happy with most of the changes, but we really intrigues me: the paint brush tool.

    Not to be confused with the Brush tool (which is still to animate it) Unlike the brush, paint brush tool tool is not draw with lock fills, pressure and tilt sensitivity or brush modes (Normal, fills, behind, selection, inside).

    The closest relative of the paint brush tool is actually the pencil, with a few differences: it can make custom vector brushes and draw like fillings but missing modes of pencil.

    My question is: why have both? Why didn't the Animate team just to extend the functionality of the pencil tool to make custom vector brushes? That's backward compatibility? Ease of use? Technical constraints?

    It's a small complaint, but I find it strange that the pencil can do everything from the paint brush tool can do with just an additional command. (You can change a pencil line vector brush in the properties panel, after it is drawn, and you can change a pencil line to a fill to change-> menu form)

    Anyone want to tell me?

    The paint brush tool is essentially the pencil, with 3 differences

    1. With the Brush tool, you can draw with brushes vector art from the library of the brush. (Object drawing mode will be fixed to) You can't do that with the pencil tool directly; Instead you have to draw a line, select it, and then apply a vector art brush in the menu dropdown style in the properties panel. (Note: you need to double click brushes vector art found in window--> library brush before they are added to the drop-down list Style)
    2. With the Brush tool, you can draw as fills or lines using the draw as fill the checkbox in the properties panel. You can do it with the pencil as well, but you will need to draw the line, select it, then click on change--> form--> convert lines in fillings to do the same thing.
    3. The overall behavior of the paint brush tool acts like a hybrid between the smooth pencil tool and straighten modes. On the one hand, the paint brush tool creates optimized lines similar to the smooth pencil mode; on the other hand, it performs similar to the mode to straighten shape recognition. If you draw a rectangle, an arc or ellipse, Animate will convert your drawing an exact shape. Recognition of shape can be adjusted under Edit--> preferences--> drawing--> recognize the forms.

    In summary, the paint brush tool seems to be a new and improved pencil tool and the pencil tool is kept for legacy reasons. The paint brush tool is not the different modes as the pencil tool, but personally, I find the lines made with the paint brush tool to have tasks less problem than the pencil tool. The pencil tool creates lumpy line segments or hyper-redresse light arcs; the paint brush tool strikes a nice balance. With recognition of shape and Vector Art brushes added to the mix, the paint brush tool is an asset.

    So in conclusion: change your shortcut 'Y' for the paint brush tool.

  • Brush tool the conscious content option is missing after upgrade to healing

    contentaware.JPG

    Hi after the recent update of the photo shop, I'm missing the option contained taking charge of the Healing Brush tool and its does not work properly. One has experienced the same problem or his i can turn it back on?

    The customizable toolbar was introduced with CC2015.1.2

    Looks like you have the selected marker.  Content Aware is an option with Spot Healing brush

  • adjust the tint with the paint brush tool?

    I have 2 good paintings together to appear like when hooked together. I like several colors in the two existing skies but just cyan edge seal on one of them is hue. Is there a way I can gradually adjust the hue of an area with a paint brush tool. In other words no paint on the texture.

    An adjustment layer tint effects uniformly a whole layer or a selection, not what I need. I want to use a diffuse brush or Airbrush to tease gradually in a color change where I want.

    Ideally, it would be surprising if I could adjusted the tint of end target so once the image reached this color it would interrupt being adjusted no matter if I continued to paint.

    I suspect one of the dozen or so list drop-down MODE options like normal, color dodge, saturation... could do but nothing with that I've experienced seems to do.

    Is this possible?

    Barry

    Use the Bush set to color.

    Example of the color box.

    Opacity allows to get the desired color.

  • What adobe acrobat is compatible with indesign cs5 and has preflight tools, like to check the density of the ink?

    What adobe acrobat is compatible with indesign cs5 and has preflight tools, like to check the density of the ink?

    You posted in an old, dead, forum. But now, I found your message... Acrobat is not compatible with InDesign, they did not need to work together. You should NEVER use always distill with InDesign, export. Acrobat Pro preflight tools has, and the only version you can buy is Acrobat Pro DC.

  • Is there a way to reflect the image taken by the spot Healing Brush tool?

    Hello

    Is there a way to reflect the image taken by the spot Healing Brush tool? For example, I learn to restore an old photo of a face. One nostril is damaged, so I want to use the other to replace, but the image of the nostril by the spot Healing Brush tool is back forward.

    Thank you

    Sally

    Hi Sally,

    It is the wrong tool to use, but rather to use the clone stamp. Open the control panel in the Windows menu and you will see many options. One is to reverse the cloned area. Like this. Put the clone on its own layer like that allows you to better position and apply a layer mask to cover whatever it is unwittingly cloned. Cloning should be done with a soft brush at around 50% opacity just to enhance the effect. When you have finished giving the layer clone a soft Gaussian blur as this smooth out the look. Then flatten to restore

    It may be useful

    Terri

  • The Healing Brush tool problem

    I have Photoshop CC 2015 and Healing Brush tool does not work properly, it works like the Clone Stamp tool. When I use the Healing Brush tool, it clones the patch instead of merge. Does anyone know how to fix this? Thank you!

    Ozge salvation,

    Please check if window > Clone Source > Clipped is enabled or disabled

    Also make sure that if you have normal, opacity to 100%, the value brush size not set very broad

    Let us know if this helps

    ~ Assani

  • Shift-click to create straight lines with the Brush tool is no longer works in 2015 CC

    Hello!

    I feel a maddening thing I can't explain, maybe a bug or a dark environment?

    If I use the pencil tool, I can click on the same spot on the canvas, then releases, then hold SHIFT key and click in another location on the canvas to create a straight line between the two points. This is expected behavior, and Photoshop has done this for years, as long as I can remember.

    Until recently, the same has worked with the Brush tool. Since the upgrade to 2015 CC, however, shift-click on demand exactly as if I was clicking simply - he draws another full brush, but without a straight line connecting the two clicks. Weird.


    Everyone knows the same behavior? (CC and Yosemite are completely up to date.)


    Best,

    Jason

    Image%202015-08-04%20at%201.04.07%20PM.png

    (this little test of the brush is also to express my emotional state right now.)    : |

    Spacing stops on this special brush?

Maybe you are looking for