Retrieve the reference of work plan of the nested active layer

Hello

I'm looking for a way to get the referral of artboard to a nested in layer. I was looking around, but I'm still quite confused on how to proceed.

Any help much appreciated!

Thank you

I don't know, but maybe this will help you...

var doc = activeDocument,
    currentArtboard = getActiveArtboard();

/* ======================== */
alert(currentArtboard);
/* ======================== */

function getActiveArtboard() {
    while (true) {
        if (isArtboardLayer()) {
            return doc.activeLayer
        }
        selectForwardLayer();
    }
}

function isArtboardLayer() {
    var ref = new ActionReference();
    ref.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
    var isArtboardLayer = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled"));
    return isArtboardLayer
}

function selectForwardLayer() {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Frwr'));
    desc.putReference(charIDToTypeID('null'), ref);
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
}

Tags: Photoshop

Similar Questions

  • retrieve the default activity indicator

    my default activity indicator has disappeared and I want it back

    Firefox displays the default activity since versions of Firefox 2 indicator. He is sitting in the Customize Palette, you need to go where you want.

    https://support.Mozilla.com/en-us/KB/how+to+customize+the+toolbar

    http://KB.mozillazine.org/Toolbar_customization

  • in the nested table clause

    HIII

    I created a nested table
    There as rows and columns.
    now I'm trying to retrieve the nested table data, I found this application and it works can any body tell me what that c and value (c) mean in the query below

    Select value (c) of the (select cl vir where age = 22) c;

    810345 wrote:
    now I'm trying to retrieve the nested table data, I found this application and it works can any body tell me what that c and value (c) mean in the query below

    Select value (c) of the (select cl vir where age = 22) c;

    What version of Oracle are you using? THE is obsolete for ages. Use of TABLE operator. VALUE is built-in and is documented.

    SY.

  • The coordinates of the object relative to the selected work plan.

    Controls Oregon (x, y = 0.0) to a point of coordinates of objects? I'm not referring to the "reference Point".

    I use a lot of work plans and sometimes Oregon comes from the new artboard I created, which is great for my workflow. I place a lot of objects using the higher coordination tool.

    Screenshot on 8.1.2013 at 2.17.30 PM.png


    But often the Oregon corrects its position for the first work plan. Is there a way to control the Oregon?

    Data sheet: Win7 64 bit, Illustrator CS6 16.0.3.

    Best regards
    Kristian Bendsen

    Game artist

    View > leaders > change executives global/plan of work.

    JET

  • Passwords do not work to retrieve the files that I locked for the protection of personal information under my administrator account.

    I had some that I have files protected by Word, under my administration account that s wa also password protected. recently, I had to have my computer reformatted and returned it to me without administrative access, research nothing same and none of my passwords work to open these locked files. Please help me... inside one of them was a picture of my husband roommmate that he has lost the war. I need to these files and photos.  Thank you!  BTW I don't know if I have windows xp or pro.  Thanks again

    Would you be able to help me more if I had administrative control?  Because the place that did that at my computer only altered my administrative control, if I'm not mistaken it is still mine.

    At this point, you should probably take the computer to the one who did what they did and ask them to retrieve the files for you.

  • move the selection to the new work plan

    Hi guys,.

    I'm new to Illustrator script but I have done some in InDesign.

    I want a script to move a selection to a new work plan and be able to name the work plan.

    I can't find something in the DOM as artboards.add ().

    Any help?

    Hi jakec88782761,

    are what version of picture you?

    Working with work plans is possible since CS4 +.

    Here's a simple example in [JS]

    var AB_1 = activeDocument.artboards.add([0,50,200,0]);
    AB_1.name = 'first quadrant';
    var AB_2 = activeDocument.artboards.add([-200,50,0,0]);
    AB_2.name = 'second quadrant';
    var AB_3 = activeDocument.artboards.add([-200,0,0,-50]);
    AB_3.name = 'third quadrant';
    var AB_4 = activeDocument.artboards.add([0,0,200,-50]);
    AB_4.name = 'fourth quadrant';
    

    Have fun

  • Problems with the edition of work plans

    I did not have a good experience. I can't even change my plans of work, they get stuck off the coast to the right or left and I can't scroll right or left to get them to a place where I can zoom in on the map of the art of making changes. The screen of UI zooms only the Board of the art that is visible on the screen at the same time. Also when adding graphics to images or work plans I can't select them at all.

    You should be able to use two fingers on the touchpad to the panorama of the view in XD, similar to how you would scroll/pan in other applications on your Mac.  Please let us know if this doesn't work for you.

  • Align the work plans

    CC to HAVE, on a Mac

    I have 20 work plans, same size, but they are not aligned. I tried "-Fit artboard to display" but is no more.

    In addition, see how they are sitting in the middle of the pixel on the outer border? Why is this? Size of work plans is 16 x 16. I am working on a pixel grid and align with the pixel grid.

    Ideas?

    Thank you

    artboard_alignment.png

  • Command of the keyboard to switch between work plans?

    I was unable to find a shortcut - or a menu/button option - to change the display between work plans (like turning pages in InDesign). If there is not one, I hope it's in the works for the next update. Double click right on the artboard in the layers panel displays its parameters and Ctrl + 0 by default to "adapt (all work plans) on the screen.

    So far my solution is to Ctrl + 0 to 'hold the artboard on screen. ' I can, click once on a work plan in the layer panel, then press the shortcut and it will be re-center/size on the newly selected artboard. But this involves several steps and you may need to scroll down in the layer panel. A simple 'page' high-low shortcut would be nice.

    Thanks to all the people who have comments!

    -Ryan

    What a great question, but no, we don't have navigation plan work in Photoshop as we do in Illustrator, or page navigation as in InDesign. You can put in your request here: feature request/Bug Report Form .

  • How get rid you of the "work Plan" and just opened a "Document?

    I am trying to open a new blank document, but the resulting page has the little word 'Work Plan' in the upper left corner on the page. I don't know what a work plan is not something perhaps in Illustrator. I wanted not a "work plan" and even spelling wants to force me to put "target".

    If someone could tell me how and why I'm getting this and help me a little to open a Photoshop Document clear, white, new, I would be so grateful. If you want to tell me briefly what is a 'work plan' and knowing I don't want one and probably never employeront such a thing...

    TIA,

    Ken

    File/new

    When you get the screen of characteristics of the document (paper size, etc.), search for "Type of Document" and select what you want.

  • Photoshop 2015.5 can not export the work plan in PNG transparent

    should I upgrade Photoshop to the latest version (2015.5) and now I can not export in PNG transparent work plans and that sucks A * big time
    Anywho whenever I export in PNG or PNG8 with transparrensy, it receives a white background and space color Medallion to the index as if it was a GIF.

    All the solutions or anyone who has a script that will make the transparent PNG out of work plans?

    Are you sure that you correctly configure the work plan? The 2015.5 version to now set the background color of the artboard that is different from before

  • Guide to PHOTOSHOP - issue Simple, just not found the answer [Guides under work plans. How to get the guides above work plans?]

    Working with work plans, I noticed that the guides that I drag are layers under work plans I do not currently use.  I saw guides that are available in the workspace that are layered above all work plans.  What is the command to switch between the two types of guides?

    The position of the guides depends on what is selected when you drag them off the leaders.

    With a work plan selected, drag the guides of the rule to the canvas. These guides now move with the artboard. You can also duplicate a work plan with the guides assigned to assign identical to the duplicated artboard guides. Alternatively, you can select view > new layout Guide for target work plans you want. To set the visibility options guide, select view > Show > Guides of the artboard.

    Or select a layer, drag the guides of the rule to the canvas. To set the visibility options guide, select view > Show > Web Guides.

  • How to be notified when the work plan changed

    Anyone know how to connect to a notice of changed work plan?

    I searched all over the contents of the documentation and found nothing.

    Thank you

    You are looking for kAIDocumentCropAreaModifiedNotifier

  • Automaticly loading pdf files in the document (multiple pages, on several work plans) model.

    Hello

    I created a few models photos in Photoshop for a prospectus (8 pages) placed on 4 work plans (front, two rear and inner pages).

    At the present time, I have every linked page (I followed some tutorials), so that when I click on the layer, it opens a new window where I can paste into the page and save/close (which is that the function called again?) )

    As I will do this regularly and the order of the pages will always be the samen, is there a way to automate this?

    Meaning: linking the model to PDF and have it automatically choose each page and place it in the right order/location?

    Any help is appreciated!

    Thank you

    Benny

    I don't know of any way to import multiple files at a time. I agree... your action does not save much if anything. I was wrong.  Perhaps using an action is not your solution.  You can try using loading files in the stack. Who would get at least all the imported files at the same time.

    Photoshop: Import multiple images into a layered document. Digitalchemy

  • Can select > same be limited to just the active work plan?

    CS4 on Mac. Can select > same be limited to just the active work plan?

    ... sort of...

    First select > map of active work

    Then select > Inverse

    Then object > lock selection

    Then select may even be restricted

Maybe you are looking for