ExportPNG based on layer name

I'm trying to export a png sequence with a command with the following code
fl.getDocumentDOM().exportPNG("document.pathURI/layer.name.png", true, false);
as that code shows, I have no idea how to code, I searched the actionscript data base and tried to piece together what I want, to render out a PNG sequence to the FLA location (instead of the last location a png sequence was rendered to) and have the PNG's named after the layer selected. Is this possible? Even when I gave this code a legit location and name, I got an error back saying the maximum size bitmap that can be created is 8000x8000?

you can't specify the layer or frame in exportPNG().  you can specify whether to use the current frame or all frames.  you've specified all frames.
the first parameter should be the path/file name of the exported png.
so, if you wanted to export to png the on-stage elements in frame 6 of your main timeline, you could use:
var doc = fl.getDocumentDOM();
var root = doc.getTimeline();
root.setSelectedFrames(5,5);
fl.getDocumentDOM().exportPNG("file:///F|/Flash/frame6.png", true, true);  // you need to adjust the path and possibly file name.

Similar Messages

  • Naming images using 'Save for Web' based on layer name

    Hi All
    Hope someone can help, I'm a bit stumped!
    I've got a PSD in Photoshop CS4 which is for some T-Shirt Designs. I have 15 colours of shirts, all on 15 different layers. Then I have the design of the t-shirt on the top layer. I want to create 15 images with the design shown on each of the 15 shirt colours.
    Is it possible to automate the saving of the files? ie Always have the top layer (the shirt design) on, but save a file with just one of the shirt layers on, and save the file so the filename reflects the layer name?
    I seem to recall Imageready doing something like this, though maybe it was in the Animation section, its been a while :-)
    Cheers
    Mark

    Have a look at layer comps and File>Scripts>Layer Comps to Files.
    more about layer comps:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7870a.h tml
    MTSTUNER

  • Is it possible to print the layer name on file/copy when print or export file?

    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl

    Karl Z wrote:
    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl
    InDesign's pasteboard, bleed, and slug areas are independent for each document page. Running header text variables in these areas can capture sources on document pages. If you place a text frame with a character style for the layer name, and a character style for the language name, on a layer, and capture them in a character-style-based running header in the slug, for example, the source from whichever layer is visible will appear in the running header in the slug area. Similarly, you can capture other text variables for page number, filename, date/time, etc.
    It may take a little fussing to set it up the first time, but thereafter when you change layer visibility, the visible layer name changes automatically.
    NOTE: Text frames on master page pasteboards, bleed, or slug areas do not appear on document pages unless they also touch the document page border.
    Above: Master page view
    Above: Page 1 view
    Above: Page 2 view
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • Active Layer Name as Text Variable/Live Caption?

    Hi all,
    I work for a company that uses heavily layered InDesign files to create variable brochures, with the appropriate layers activating for output as pdfs based on user information. Our clients often have difficulty discerning what layer they're looking at when we send them proofs for approval, and I'd like to find a way to have the names of active layer on any given page appear automatically in the slug, as though they are text variables or live captions.
    One rather inelegant solution I've come up with is creating a small uncolored picture to put onto each layer, with the layer name as that picture's file name, and link it for Live Captioning. This is a huge messy timesuck though, and I'd love to see if I can just dedicate a text variable to display the names of active layers on a page prior to output. Any help/info is very much appreciated.
    Thanks!

    Willi—that's a great point. I was simply hoping to avoid the reiterative task of writing it out in the slug so it would change automatically if the layer name was changed, and having to go back through old files to put this info in (each document typically has 150+ layers). If I can't find an automated solution, this is most likely the route I'll be taking.

  • Templated Theme Based FOI layer Error

    I'm trying to add FOI like in an example - Templated Theme Based FOI layer.
    Javascript:
    var tbfc = 0;
    function addMyFOI(oKOD){
    tbfc++;
    var foi_name = 'foi'+tbfc;
    var tbg = new MVThemeBasedFOI(foi_name,'cad.dj');
    tbg.setQueryParameters("'"+oKOD+"'");
    tbg.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(tbg);
    dynamic theme:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <hidden_info>
    <field column="NOMER" name="ffff"/>
    <field column="DOM" name="ffff"/>
    <field column="LIT" name="dff"/>
    </hidden_info>
    <rule>
    <features style="M.CYAN PIN"> (NOMER=:1) </features>
    </rule>
    </styling_rules>
    When i call addMyFOI function i get error looks like this:
    06/10/20 01:06:10 ERROR [oracle.lbs.foi.FOIServlet] [Foi Server] foi width value is wrong.
    Does anybody know what it is?

    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 18429.573997;//getCenterLon(MAP_NAME);
    var mapCenterLat = 17544.041656;//getCenterLat(MAP_NAME);
    var mapZoom = 5;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,262148);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(new MVBaseMap("CAD.TYUMEN"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    mapview.addCopyRightNote("&#169;2006 powered by &#8482;");
    ovcontainer = new MVMapDecoration(null,null,null,200,150) ;
    ovcontainer.setCollapsible(true);
    mapview.addMapDecoration(ovcontainer);
    var over=new MVOverviewMap(ovcontainer.getContainerDiv(),3);
    mapview.addOverviewMap(over);
    mapview.display();
    I use this code to initialize my map.
    Hmmm, I still cannot solve that problem

  • Script for using layer name in Save for Web command

    I am using the Save for Web  command (Illustrator CS2) to export layers to CSS so that each layer is  saved as a different jpg.  The only issue I have is that I want the  layer name to be part of the file name, but layer name is not an option  when I look at the "Edit Output settings" dialog for saving files.  Is  there anyway I can do this? I do not have experience writing or working with scripts.
    For example. My fiel name is flower.ai.  I will have 20  different layers (each containing a different color of the same image)  and want the exported file to be flower-scarlet.jpg,  flower-cranberry,jpg, etc. Right now I am looking at renaming all the  files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
    Thanks in advance
    Christine

    Btw.. to make it work for JPGs, change the PNG options to the following:
    var options = new ExportOptionsJPEG();
            options.antiAliasing = false;
            options.optimization = false;
            options.artBoardClipping = true;
            options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
            options.blurAmount = 0;
            options.verticalScale = 100;
            options.horizontalScale = 100;

  • Oracle SQL Developer  error - "The file-based source procedure Name is not present in the database."

    I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name>  is not present in the database.  Was it compiled?'
    instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.

    Sounds like you do not have the correct privileges.  What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
    grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
    Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
    So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest?  If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
    The role SELECT_CATALOG_ROLE
    The system privilege SELECT ANY DICTIONARY
    And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
    The role EXECUTE_CATALOG_ROLE
    The system privilege EXECUTE ANY PROCEDURE
    Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
    Best wishes,
    Gary

  • How to change background color of text in pdf based by font name

    Hi
    How to change the background color of text in PDF based by font name. Is there any option in Javascript. e.g: If PDF containing ARIAL font, the ARIAL text background color needs to be changed in red color for all pages. Same for all fonts with different different color in the PDF.
    Thanks in Advance

    Hi
    1) Is there any possibilities to highlight with different color based on font using javascript
    2) list of font used in PDF using javascript
    3) How to hilight the text using javascript
    Thanks in Advance

  • How do I copy parts of layers from one AI doc into a new AI doc and keep/create same layer names?

    How do I copy PARTS of layers containing many objects from one CS5 AI (v.15.0.2) doc into a new CS5 AI doc and keep/create the same layer names?
    To start with, I have one fairly complex AI document with 100 layers,  with several hundred items in each layer. For example, one layer named "Stars" contains  400 separate stars (not grouped), another layer named "Crosses" contains 300 separate crosses, and a 3rd layer named "Text" contains 200 separate words (not outlined).
    If I select, by marqueeing a section of the image/artboard, some (but not all) of the individual items contained in the several layers, then  paste that selection into a new CS5 AI doc, I cannot get them to  create new layers of the same name. Instead they go into one general layer (e.g. "Layer 101") as a jumble of discrete, but unorganized objects (no layers or sublayers). In other words, I have lost the 3 main layers from which I selected a bunch of objects.
    Checking "Paste Remembers Layers" has no effect on this result. In fact "Paste Remembers Layers" does not remember layers at all. Only if I select ALL the items in the several layers will it paste those layers by those names into the new doc (or create new layers of the same names).
    Of course it is a COLOSSAL waste of time copying the ENTIRE document, then pasting the WHOLE thing into the new doc (with layers retained), then deleting the parts I DON'T need, so please don't suggest that as the solution.

    No Monica, nothing in Plug-ins other than the standard installed items (extensions, filters, formats, etc.). No 3rd-part clipboard extension on my computer that I'm aware of, either. All frustratingly basic. And my other CS5 Adobe programs appear to work well, at least to the extent that I am familiar with them.
    So, from what I can tell of the various comments (thanks to all of you), am I correct in thinking that it seems I can't, in fact, do what all of you can do (that is, copy some objects from some layers in one doc and paste into another doc preserving those same layers by name and organization, and each containing the correct objects from each original layer)?
    If so, that solves half my issue - "is it supposed to be possible to do it"; leaving just the other half - "why can't I do it too".
    I'll get those screenshots made and posted later just in case I haven't adequately described the issue, or y'all haven't understood it.

  • Can you customize your deployment based on VM name

    I know it is possible to customize your deployment by mapping your PC based on MAC or serial number using the MDT database.  However, is it possible to do this by just the VM name alone? (I would think the same challenge apply to both ESX or HyperV). 
    If I could go ahead and create a serial of VM call VM01 to VM10, how can I have MDT deploy Task Sequence 1 to VM01 to VM05, while deploy Task Seq 2 to VM06 to VM10?  As the VM doesn't have any netbios name of predefine MAC address yet ?  Any idea
    would be appreicated

    Hi,
    The answer is no, you couldn't customize deployment based on VM name. 
    Customize deployment by mapping PC based on MAC or serial number using MDT database is completely different with mapping PC name. The first one is based on hardware query, seconde one is based on software level.
     As we know, WMI command can be used to obtain information of Computer Hardware, software, etc. While in WinPE phase, it only could be used to obtain hardware information, the command like
    Get -WmiObject win32_computersystem should be works properly, but it won't be work if you try to obtain VM name by using WMI command, WinPE doesn't support these command to obtain VM name, it only works at host system. That's
    to say, we didn't have method to obtain host VM name in guest machine. Therefore, if you try to mapping your PC based on VM name, it would be failed.
    For more information about WMI, you can refer to the link below for more details:
    http://msdn.microsoft.com/en-us/library/aa394585(v=vs.85).aspx
    Roger Lu
    TechNet Community Support

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • Receiver File adapter: dynamic folder name based on file name

    Hi there,
    is it possible to set up one communication channel that will use different target folders based on file name?
    E.g.
    File abcdef will be saved to /root/abcdef/abcdef or /root/abcdef/abcdef.txt
    File xyz will go to /root/xyz/xyz or /root/xyz/xyz.txt
    I know I could use Sender/Receiver Service, Interface/namespace or data from message for variable substitution but could not find an easier solution for this scenario than to create multiple communication channels.
    Thanks.

    If you haven't a message mapping, then you can create only an interface mapping with an abap mapping.
    In your abap mapping:
      DATA l_record type mpp_dynamic.
      l_record-namespace = 'http://sap.com/xi/XI/System/File'.
      l_record-name = 'FileName'.
      l_record-value = "your filename"
      dynamic_configuration->add_record( l_record ).
      l_record-namespace = 'http://sap.com/xi/XI/System/File'.
      l_record-name = 'Directory'.
      l_record-value = "your directory ".
      dynamic_configuration->add_record( l_record ).
    Afther that, you must activate Adapter Specific Message Attributes (directory and/or filename) in your target communication channel .
    Regards,
    Carme.

  • Load files to stack with out file extention as part of layer name

    Ok so as the title says i'm trying to figure out how to modify the "Load Files to Stack..." script so that it doesn't put the file extention as part of the layer name. it makes it a pain to have to go through and remove it when dealing with a lot of layers. I'm using photoshop CS5 on Win 7.
    Also if possible a script that would make Comp Layers for each layer created when loading files to stack it's a bit much to ask but worth a shot

    If anyone is just looking to import files into stack without extension names here's what I did:
    1- Go to your adobe scripts folder:
    64 bit - C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts\
    32 bit - C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts\
    2 - Copy and paste these 2 files somewhere other than in the adobe folder like the desktop (I had to due to permission restrictions when saving):
    Load Files into Stack.jsx
    Stack Scripts Only\CreateImageStack.jsx
    3 - Rename these files to
    Load Files into Stack - no ext.jsx
    CreateImageStack_noext.jsx
    4 - edit Load Files into Stack - no ext.jsx (I use notepad++) and save
    Line 16 - <name> Load Files into Stack (no extension) </name>
    Line 43 - $.evalFile(g_StackScriptFolderPath + "CreateImageStack_noext.jsx");
    5 - edit CreateImageStack_noext.jsx, insert this line into "line 411" (just above "app.activeDocument.activeLayer.name = this.fName;") and save
    Line 411 - this.fName = this.fName.replace(/(?:\.[^.]*$|$)/, '');
    6 - copy and paste these edited files back into your adobe ...\Presets\Scripts\ folder (overwrite folder), reload photoshop and you should now see in File > Scripts > Load Files into Stack (no extension) available!
    And for the lazy, here are the two files
    load_files_into_stack_no_ext.zip
    drop these in your photoshop scripts folder:
    64 bit - C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts\
    32 bit - C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts\
    Hopefully this helps someone! Why adobe just doesn't have this as the default is beyond me.

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • Exporting Layers to PNG files using each layer name to create the file name??

    Hi All
    I'm trying to sort the following problem and was hoping somebody here could help with a scripting solution - my knowledge extends as far as actions unfortunately - which I don't think is appropriate for this.
    I've created a User interface in Illustrator with many layers and have exported this as a psd with layers.
    Basically what i'm wanting to do is export every layer as a png file while using the layer name to create the file name - each layer needs to be clipped.
    There is no transparency in the png.
    I've run the export to files script - but the names are too long and there is no anti aliasing.
    I've tried running a script from Illustrator - but it doesn't see sub layers - and doesn't name the layers.
    any help would be appreciated.
    thanking you in advance
    regards
    nate

    Hi,
    We just released this tool: FERRY (http://ferry.thedamarmada.com). It does exactly what you want and a little bit more.
    I think it's worth it a try.
    It comes with a free demo that will export 5 layers.
    Take a look and let us know if it's what you need.
    It could be easily tweaked.
    Jordi

Maybe you are looking for

  • Solution Manager -- Export Import Project

    Hi, I want to import a project from SolMan 7.00 to SolMan 7.00 EHP1, but I can´t find an option to do it. As I know  I have to create an Implementation Project in tx SOLAR_PROJECT_ADMIN and then import the implementation projects that already exists.

  • Created with Flip4Maac Trail??????

    Hi all, I am trying to import a .wmv file into FCP using Mac OS X, I dont usually do this, i usually capture my own footage but its bit of a home movie for a friend which they shot on there own small camera, but when i bring in this file it comes up

  • Creating a cartoon from regular image

    Okay, I am trying my hands at vector graphics and there is something that I found that I really want to learn to do. I would like to know how to take a regular image and make it look like a type of cartoon. Here are two example of what I am looking t

  • Connect by question

    I have a table that I'm trying to traverse, it does have a circular reference. I'm using the nocycle option and it seems to work with the exception of getting some extraneous data back. What I really need is the Root value for each node. Here is some

  • PB G4 17 Disappearing hard drive

    Ok, So my PB G4 17 is on life support. It began running very slowly while transfering files from an external HD and finally stuck with the spinning color wheel. Was forced to turn of using the on button and got the blue screen/apple logo. Did a start