Detecting The Current Brush Size

Hi all,
Is there anyway in javascript to detect the pixel size of the current brush? I want to use that value as a variable in a script.
Thanks for any help.

>
> Is there anyway in javascript to detect the pixel size of the current brush?
It's fairly easy to set the current brush size via scripting listener code, but
reading the current value does not appear to be as simple.
If I had to do it, I would create a new (temporary) brush preset, save the
preset to disk, delete the temporary in-memory preset, then pick apart the saved
brush file to extract the brush size.
The last part is the only part that gets a bit tedious. The others can all be
taken care of via SL code. Or, even easier, the PresetsManager script in xtools.
-X
for photoshop scripting solutions of all sorts
contact: [email protected]

Similar Messages

  • Annoying 'Could not use the history eraser because the current canvas size does not match that of the history state' message

    Does anyone know if it is possible to get rid of the message 'Could not use the history eraser because the current canvas size does not match that of the history state'?. It comes up if I hit the alt/option key while I have the eraser selected. Something I do by accident all the time.

    The way you've described it, one gets the distinct impression you do not have a clue as to what the history brush does and how to use it.
    You need to read up on it.  Read the Help files and google for tutorials.
    First you need to create an image (with actual pixels in it), edit it as desired, then make a snapshot of the edited image, then target the snapshot with the history brush tool, then go back in the History panel to the step before your edits and selectively paint your edits in with the History Brush.

  • Booklet .pdf with crop marks, booklet doesn't fit the current paper size warning

    Hello. I am on XP using CS4 InDesign.
    I have the document set up as 4 pages, each 8.5 x 11, however, when creating a booklet .pdf, I mean it to be 2 pages 11x17.
    When I add in the crop marks they do not appear on the .pdf when it is created. I receive a warning in the booklet diaglog that the booklet doesn't fit the current paper size and it says to specify a larger paper size.
    What can I do to have the crop marks on my file? I understand the .pdf will be a little larger than 11x17 in order to fit the crop marks.
    Thanks for any help in advance.

    Hi Peter,
    Thank you. I did try that first, but now I figured out what I did wrong. When the .pdf was made and opened, I cropoped the page according to the marks, but the page remained 12 x 18 instead of 11x17. I made sure that the "automatically adjust to fit marks and bleeds" and "use document bleed settings" was checked in the booklet dialog and print InDesign dialog.
    When I cropped the page again to make sure I sized it correctly, it was 11x17.
    Thank you!!!

  • Detecting the current window in Forms 4.5

    Hello,
    Is there a way to detect the current window that is in use? I want to find the window's x/y coordinates to center another form or LOV on top of it. Thanks for any help you can provide.
    Frank

    To help make it more clear... If I have a 'root_window' and I launch an LOV or another form with a button on the window, I want to pass in the form or LOV (to be centered) into a procedure pCenterLOV('myLOV') without having to pass in the window name too. Hope this makes more sense.
    Thanks again for your time.
    null

  • Detect the current transaction used in MIRO :EXIT_SAPLMR1M_001

    hi ,
    my requirment is to find  a way to detect the current transaction used within the MIRO transaction ,which can be one among
    invoice/ credit memo/ subsequent debit/subsequent credit .if the user  is using the credit memo ,  then prevent him from posting based on the authority /role given to him. Im making use of the Exit:EXIT_SAPLMR1M_001 for this.
    Please let me know which field of the exit parameters should be made use for detecting if the user is in credit memo transaction.
    Thanks in advance,
    Shyam.

    Hi
    Define a variable for VORGANG and set a value in the same way that from VORGANG SAP gives values for other fields in include LMR1MF5G (FORM vorgang)
      CASE rm08m-vorgang.
        WHEN '1'.                          " Rechnung
          rbkpv-xrech      = 'X'.          " - Rechnungs-Kennzeichen
          rbkpv-tbtkz      = space.        " - Nachbelastungs-Kennzeichen
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '2'.                          " Gutschrift
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = space.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'H'.
        WHEN '3'.                          " nachträgliche Belastung
          rbkpv-xrech      = 'X'.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '4'.                          " nachträgliche Entlastung
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'S'.
    So, do the algorithm in the reverse for fields XRECH, TBTKZ, XRECHL and XRECHR in MRM_RBKPV.
    I hope this helps you
    Regards
    Eduardo

  • How to query the current instance size of an instance of a process

    Hello guys,
    I'm currently doing a Capacity Plan for my BPM enviroment and I would like to know the current instance size of different kind of processes deployed in my environment. I'll need this to calculate an average instance size per process. The main reason for this capacity plan is that our environment instance size is configured to more then 1000kb(don't know what kind of issues occurred in the past that led to this exceeded value configured) and I don't want to leave this configuration but I can't be safe decreasing it without know if our production environment will start launching the "Max Instance Size Exceeded" error.
    Is there any way to fetch this information? Any API or SQL Query where I can find this information?
    Thanks for any help.
    Regards,
    Luiz
    Edited by: Luiz Rocha on 30/04/2009 16:50

    Hi, Luiz!
    In order to estimate the instance size, you will have to sum up all the instance variables size.
    From the practical prospective it may be difficult to use the algorithm in cases when your instance variables are not simple types.
    For already existing instances, you can look the instance size in the database:
    An instance is just a java object, that is serialized as a byte[] and stored in the engine database, PPROCINSTANCE table, column INSTDATA.
    You can write a simple program (either java or SQL plus) that would read the instance from the BLOB and measure the size.
    And yes, with large instances you can have performance problems.

  • How to get the current Mailbox size

    Hi,
    Does anyone know how to get the current size of Mailbox and Archive by using GW api?

    Originally Posted by NanLau
    Hi,
    Does anyone know how to get the current size of Mailbox and Archive by using GW api?
    Can anyone answer this? Thanks.

  • Detecting the current tab page

    Hello All,
    I am working on a task for our current project which requires that I correctly identify the
    current tab page selected on the user's page.
    Toward that, I was passed some information about the function:
    wwpob_api_page
    function get_selected_tabs( p_pageid in number,
    p_store in wwsto_api_session,
    p_tabstring in varchar2,
    p_tabviewprivs in out wwsbr_type.boolarray,
    p_pages in out page_table,
    p_base in boolean
    return varchar2;
    which appeared in version 3.0.6.X.
    I was unable to locate this function in the 3.0.7 / 3.0.8 api installed on our machine, but since I
    only have access to view the public interface of this package, and wondered if this function was
    still available.
    Has the function been moved, or included elsewhere, or deleted?
    The success of this task depends on having a reliable way to determine which tab page is
    currently selected/viewable.
    Is there another / better method for accomplishing this?
    Any help would be most appreciated.
    Stuart Dautrich

    That isn't a supported API yet. I'm not aware of any current functionality that will allow you to find the current tab.

  • [solved!] Running a command to detect the current resolution of X?

    I want to write a script that detects the resolution I'm running and echo it to a configuration file.  I've heard of xrandr, but when I run it, I get ...
    [max@pwn rigsofrods]$ xrandr
    Xlib: extension "RANDR" missing on display ":0.0".
    RandR extension missing
    This script will be a part of a PKGBUILD, so I'm hoping there's something really simple and seamless that I could use for just about anyone's computer regardless of configuration.
    Last edited by synthead (2008-12-24 00:33:27)

    Haha.  I made a better solution with the PKGBUILD, actually   Rigs of Rods isn't the "smartest" linux game so lots of configs are in the program directory.  Just like any other big game, I put it in /opt, so there were a lot of permission issues and complications when regular users tried to configure the game.  What I ended up doing is replacing the blank config it comes with with a very basic 800x600 windowed configuration, and if a user runs RoR, a little script makes a hidden folder and copies it to it.  From there, that section of the configuration utility edits the ~/.rigsofrods configuration   And as you would expect, its in plaintext, so you can edit it by hand too.
    But not ignoring all the other configs that have to be in /opt/rigsofrods, I made a group called "ror" that allows rw access to config files and allows you to fully configure the game.

  • How to detect the current VI being used.

    I have built security into my LabVIEW application and would like to implement an auto logoff function. Is there a way I can get a VI reference to the VI that the user is currently interfacing with? I can then use the detect front panel activity vi to reset a timer.

    Check the VI Property:Front Panel Window:Is Frontmost. If that is true, the VI is in front and, therefore, is most likely the one being used. I am not sure how modal windows and dialog boxes affect this.
    Lynn

  • A way of detecting the current Scene in a document class

    I just want to know if there is a way to this.
    Thanks,

    you can use the currentScene property of movieclips.  check the scene class to see how you can use the scene reference but if you only need its name, you can use:
    // this.currentScene.name;

  • A5 booklet  "doesn't fit the current [A4] paper size". What's wrong?

    Hi,
    Sorry, I'm new to InDesign, and am having a bit of a freakout over a booklet I need to complete by this afternoon.
    The page sizes are all A5. I try to print with A4 paper settings and the preview looks okay, but says underneath "the booklet doesn't fit the current paper size". Obviously A5, A4, it should fit perfectly, as  it looks to in the preview. When I actually print it the pages are slightly jumbled - 3 with 24  (of 24 pages), 4 with 23 etc., with the centrefold 12-13 split (12-15, 13-14).
    Any idea what's going on here? Is it something to do with crop areas? I can't work it out.
    Thank you! An enormous amount of gratitude to anyone who can help me fix this.

    OH HEY  it's suddenly saying it's fine now, even though the  only thing I've changed is to add a  bit  of  text, nothing that should fundamentally affect the structure. Thanks InDesign!

  • Can see different brush size options but it won't let me change the size

    When I'm in Flash CC 2014, I go to the tools menu, then the brush size option, and I can see all of the various brush sizes. I am able to click any size, but when I go to draw, it keeps defaulting to the same size over and over. I'm completely unable to change the brush size. Any ideas?

    i am using a wacom bamboo fun cte-650 as my tablet
    the pressure sensetivity is disabled, and the tilt option is disabled as well.
    i am running flash CC 2014 = Version 14.0 - Released June 2014
    and we have tried this with just the mousepad, and the tablet, neither seem to let us change brush sizes
    i have attached a video of the issue taking place

  • Brush size - why is it so restricted?

    I have a 24 megapixel RAW image shot on my 5D MkII open in Aperture. I want to use the burn brush, but the maximum brush size is only 200px. Can I make it larger? It's useless as it stands.

    Well, it's useless if the brush size cannot be increased from 200px. That being said, even 1000 is small for a 24mp image.
    If I'm using a 200px brush, then I end up overlapping strokes to cover an area that is larger than 200px square. Then I get streaks and irregular coverage - that makes it useless.
    If I uncheck Detect Edges, then my max brush size is still 200. How are you getting 1000?   EDIT: I was just able to make it 1000 - thanks for the tip!
    Thanks again

  • Can I programmatically change the printer paper size from ActionScript?

    Hi,
    I'm a newbie Flash/ActionSript developer and I have been searching for answers for a while with no luck. I wonder if I can get some pointers from this forum.
    I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip.
    According to the ActionScript online API spec ( http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002066.html), I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting. Maybe I missed something here. Can somebody help me out?
    Thanks in advance!

    check your duplicate thread.
    and, please don't cross-post.

Maybe you are looking for

  • IPod touch: need to restore to previous update so it will work again on mac computer

    iPod touch: - my iPod has always been used with my desktop iMac computer, which has iTunes version 9 currently installed. It is updated to it's latest possible update, so I am assuming it is not compatible with the latest, iTunes 10. While working on

  • Error with eclipse

    hi, i know this is not a web app forum,but as my question is with eclipse i am posting my question here i am trying to debug my application through eclipse. i have added source and jars to eclipse debug environment. when i dubug i am getting follwoin

  • Want to attach files in while creating an order (VA01)

    Hi All, Can you please let me know what settings can be done to enable us to attach files while creating the sales orders (VA01). I know that if i add the "SD_SWU_ACTIVE" to the user profile than i can do the same in VA02 & VA03 but i want these opti

  • Gone thru 3 sets of batteries in my Magic Mouse so far today...

    Got the 'low battery' message today, so I put in new batteries. Within 5 minutes got the 'low battery' message again. Figuring I had a couple of bad batteries I switched them again. Then...it happened again. I replaced the batteries and just now got

  • I am not able to access Canon EOS 600D on OS X 10.9

    I am facing problem for accessing the camera after upgrading to OS X 10.9, i download all below drivers find in the web. file:///Users/shaji/Downloads/dpp3.13.0x-updater.dmg file:///Users/shaji/Downloads/Driverwhiz-2.exe file:///Users/shaji/Downloads