Scenario: Creating layers and copy/paste

I have a JSON data structure that import from a file, which defines a hierarchy that I need to recreate tree.
At each point of the tree, I need to load an image and place it correctly on the screen (all data in my JSON file).

I can write the script to create the hierarchy (using addNewLayer() and addNewSubLayer()) very well.
I can write the script to import all the graphics very well also.

However, if I try to combine the two by importing the graphic so as to create the layer, it fails. Trying to create the next layer for graph fails, a message "-1073741819'.»

I was stuck on this problem for days now, and I got to this point stuck on other issues, this is my last option for what I do! (frame export of graphics for the production of Blu - ray)

The only other option to avoid this encrypted error message would be to create the layers, then import the chart subsequently and then re - position the graphics in the correct layers...


What would be really really useful would be to get into the conversation by e-mail or otherwise with the Fireworks javascript expert so that I could discuss other dead ends, I came to (leading back me to Photoshop for this last phase of the color reduction)

Thank you very much

Nathan.

Well, it looks like what I really need, it was doc.importFile ().

Thanks to John Dunning to host a scripts ("order Page") that has used it. It is in the documentation of FW, but I forgot of course. However, its funny (and reasuring) John was also having the same problem when using an another doc after calling doc.close ().

Tags: Fireworks

Similar Questions

  • Is it possible to only select the visible layers to copy/paste in place.

    Hello!

    I must be missing something.  In Adobe Illustrator, when you select a layer (or Sub-layer) to copy, is it possible to copy only visible layers and not those hidden?

    When I provide my clients with their final illustrator files, I only want to register the approved artwork.  Currently, I make a copy of the file and go through and delete hidden files, it would be much easier to copy and paste in place visible layers in an Adobe illustrator file.

    Thank you!

    Given that your items are grouped, select objects on the artboard should be as effective as Select layers in the layer panel.

    You will not be able to resolve this layer-selection-irritation. Happened for some versions. You might consider to report it as a bug.

    The link that I used to post on these occasions no longer works. Google sent me this one, I hope it works for you:

    Home

  • Table of Drag and Drop and copy-paste

    Hi all

    I use dreamweaver CS 5.5 on a macmini.

    I'm pretty new to dreamweaver-things integers and use it mainly for Web sites in html conversion. I usually only through copy - paste:

    Copy the text of the Web site - paste it into dreamweaver - edit in dreamweaver's code view Preview

    Now there's a big problem: if I copy a Table, it is not stick at all. It sticks quite simply nothing.

    If I drag ' drop it, it will only paste the data in the cells, not tab, culminating in a huge test without any format in it and useless to me.

    Is this a known issue? What can I do about it?

    Thanks a lot for all the help

    In case this does not work, you will need to open the code, find the code for the table, copy it and paste it into the code view. I think that when it does not work, it is because you have not copied the whole table and instead caught a snippet of the full table.

  • InDesign CS5 | Create layers and automatically distribute. [script]

    Hi guys,.

    is there some script for Indesign CS5, which create layers automatically a nd distribute text, images and objects their?

    Ex: I have a layer with a lot of pictures and I want to distribute to layers another automatically.

    Best regards

    JNSaraiva

    Hi JNSaraiva

    At a glance of your first bid looked like you have three specific objects (image, text, otherObjects) and you want to move all the images a specific layer images and text on another layer objects and rest to another specific layer. If what you wanted then my first code complete final will fill it but in your subsequent post it sounds like you want to move all the objects in your choice on different layers, if that's what you want then try my code below:

    var mySels = app.selection.length;
    if (mySels == 0) {
        alert("Select the object and Run the script");
         exit(0)
      }
    else{
    while(mySels--){
              var objLayer=app.activeDocument.layers.add();
              app.selection[mySels].itemLayer = objLayer;
         }
    }
    

    Mac

  • All my tabs are missing! Rename and copy/paste the files did not help

    I accidentally opened two windows of Firefox and closed one with all my tabs pinned first, then the second tab. After Firefox reload all my tabs are missing and I tried to rename files, copy and paste files, etc. as suggests these forums, but nothing has worked. I have myself screwed on?

    Check first the Menu history for any tab restore options.
    In the second place.
    If you have already restarted Firefox and have a copy of the files: close Firefox

    1. Open the profile folder profiles - where Firefox stores your bookmarks, passwords and other user data
    2. Save the previous.js recovery.bak and recovery.js under another name
    3. Place the recovery files in the profile folder.

    So that this does not happen again change your tab Preferences and settings or try Session Manager add and save your profile.

  • Problems with the highlighting of the mouse and copy - paste

    When I highlight text in Word 2007 (also in other programs, although Word is where it's the most troublesome), mouse cuts highlight short or he let go when I did not release the button and/or the Treaty as a drag and drop - I try to highlight a phrase, and it highlights a few letters and moves around the line - highlighting is jump autour essentially.

    I use Vista on a HP Slimline; the mouse is HP too, both not quite two years. Don't know offhand specs. I tried to check the single c. double click setting, it is set to double. I tried to delete the registry subkey and rebooting. I tried various diagnostics in Word and Win, and no report a problem. I have no COM add-ins

    Please tell me there is another way to solve this problem!

    Hi RDMosher,

    In Word 2007, click the Windows orb in the top right corner and select Word options at the bottom next to the exit button.  Click on advanced, then uncheck the "when selecting, automatically select entire word."

    There are also some other options here, you might be interested.

    Please let us know if that fixes the problem.
    Brent
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Impossible to copy, paste, delete, move, install something D drive, a window appears saying you need the permission of S-1-5-21-220523388-1972579041-682003330-1003 and is not to copy paste.

    Whenever I want to copy, paste, delete, move, install something from D a window pops up saying: you need permission frpme S-1-5-21-220523388-1972579041-682003330-1003 and copy past or what ever I am doing...

    someone help me please :D
     
    Original title: S-1-5-21-220523388-1972579041-682003330-1003
    You must enter the property of your records - see here:
    http://social.answers.Microsoft.com/forums/en-us/w7network/thread/24bdf172-2DBC-43b8-995d-a99b6a81413c/
  • Clone complete vs copy + paste?

    If Workstation is able to detect when travel/copies have been made and then by making modifications in the case of a copy, which completes clone offers just copy + paste the entire folder, and then click "I copied it" when asked is not?

    Copy / paste includes all snapshots.
    Full clone you gives a choice, and you can select what snapshot is used. This snapshot is then consolidated so that the result is a virtual machine without clichés.

    For virtual machines that have no pictures, there is no difference between a full clone and copy/paste of VM

  • If I copy and paste a comment in a pdf when I create a comment copied xfdf file is not included.  Is it possible to add these comments copied to the xfdf file?

    If I copy and paste a comment in a pdf when I create a comment copied xfdf file is not included.  Is it possible to add these comments copied to the xfdf file?

    Hi Steve Whipple.

    This link (Acrobat Help |) Import and export comments ) seems relevant to your query. Please let me know if it allows you to export xfdf file comments.

    Kind regards

    Rahul Tyagi

  • How to copy multiple layers and modify them

    I have a file with a twinkling of stars on a background. I want to copy thie twinkling star layer repeatedly but change the size, position, and the frame that starts with. What is the way most simple/correct to achieve?

    flash animation star.JPG

    Select (shift-mousedown-drag) to select the layers and all the frames, right-click and click on copy.  Create a new movieclip, right-click in the frame 1, layer 1, and click on paste.

    use repeatedly as movieclip to get the effect you want.

  • Impossible to copy/paste or drag/drop of files. Cannot copy and paste text, either.

    The operating system would prohibit me files copy/paste and drag and drop files text copy and paste all of a sudden. No error message; the right operating system does not respond to my 'stick' and 'slide' actions; 'paste' is grayed out in the menu. ('Copy' seems to be black if I remember correctly).

    Need to reboot back to normal. A reboot about once a day because of this problem frequently.

    P.S. The computer seems to be slower than usual these days. kernal_task and Google Chrome Helper often go beyond 100% of the CPU in the activity monitor. My MBP has a 480 GB SSD (with use of 180 GB).

    Try to run this program, copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days?

    This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if someone could help me I aprecciate it.

    Thanks in advance!

    Select, press COMMAND = C to copy it to the Clipboard; Select the date that you want a copy with the mouse, them press COMMAND\-V to paste. If you want a repetitive task, you can select the item and double-click it to open it, and then the pop up config, select repeat.

  • Suggestion: It's about the COPY PASTE function. It is possible to apply multiple copy and paste feature uses publishers or any application of MS?

    Suggestion: It's about the COPY PASTE function. It is possible to apply multiple copy and paste feature uses publishers or any application of MS? For example, I need to copy the 4 lines of text and want to paste in 4 different applications. First line on the 1st application, 2' nd on the other and so on. With this I can choose 1st line and COPY 1 copy, nd line 2' COPY 2 and so on. And while pasting, I can choose the necessary text to PASTE 1,2,3 or 4.
    This feature takes really where people have to work with text editors in their daily lives and find these scenarios quite often.
    I have no idea if this feature is already encapsulated in the MS Editors, so if it's already there kindly let me know.

    Thank you.

    Kind regards
    Fahad

    Send your comments to MS and request this feature in Windows 8:

    http://mymfe.Microsoft.com/Windows 7/Feedback.aspx? formID = 195

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Copy/paste and or remove the bug

    I have two different questions with Adobe Premiere (CC2015, running on 10.10.3, a lot of RAM), but they seem to be connected. one is to copy and paste, the other refers to remove.

    On a schedule, I'll mark one in and one out, with my tracks marked targets and all other active stocks.

    First of all, let's say I want copy this article and paste in another scenario, all leaving the choice of the original screenplay.  What happens is this: when I go to paste, it will stick in something 1 or 2 copies there.  I'll cancel it, then repeat the same action, and the right bit of the material will stick in.  I used to think maybe it's that I have somehow missed out on the stage of copying, but this happens if I use the keyboard commands or goes the long way and mousing commands in the Edit menu.  This does not seem to happen when I use the elevator or orders, only with the copy.

    On a related note, same scenario - marked inside and out on the timeline, with my tracks marked targets and active all the tracks.

    Let's say I want to remove the section that I scored.  I click on delete and Staples outside the marked area disappear, but the pieces that I've marked stay.  I cancel, then repeat them hitting the delete key, and deleted the correct bits.

    It also seems to be no pattern when that happens - it's incompatible, but frequent.  Workaround seems small, but it is very frustrating to have to make the same edit over and over.

    I tried to clear my cache and delete my preferences, but nothing helped.  Someone at - it suggestions?  Thanks in advance.

    In the example of video you posted, you seem to have a bunch of selected clips, as well as in and out of the points-

    In my view, that the selected clips take precedence over the starting points when copying.

    Try it without the selected clips and see if it will copy all the contents of the starting points.

    MtD

  • How to copy/paste the text box anchor to its anchor text and remove all checkpoints empty?

    Hi all

    I have a document of a few pages, but a story. The right column is the area of main text and on many places, anchored text boxes are placed which appears on the left column, as shown below.

    I want the text of each text box anchor to cut of his place and sticking to its point of insertion/anchor and remove all of the empty boxes of anchored.

    I'm trying since this morning but I was able to get the anchor object reference. Any help on how to start with will be useful.

    Marie rosine

    anchor_box.png

    OK, let's say you have a main text (not rooted) box and three text boxes that are anchored to the text it contains. One is anchored with text, the second is not anchored and the third argument is empty (I won't get into the anchor vs custom anchor line given that you mention in your message).

    Scroll us through the items on the page:

    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
      {
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
         }
       }
    }
    
    function flattenItem(funcItem)
    {
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    }
    

    I guess the takeaway is perhaps you aren't looking at the main text block and then check if anything it is anchored. You are watching each text block and find out if it is anchored. That's my approach, anyway.

Maybe you are looking for

  • Yoga 3 Pro has a fan?

    Some commentators say yes, some say no. It's the truth?

  • 15 laptop: access recovery drive controls

    Hello Does anyone know if there is a set of shortcuts I can enter and who let me access the recovery on the portable 15 drive? My daughter-in-law gave this laptop to his mother saying that it no longer works... She was right. What she does not mentio

  • I have a dell v505w printer that won't let me no scan to adobe, but he used to let me.

    I used to be able to scan to adobe but something has changed, and he said that programs are not there.

  • DRM error

    Accidentally, I started to download a program called memory Fixer. I canceled before it too far, but not soon enough. I used several malicious programs to try to get rid of it. I failed and my computer will play music and commericals without my help.

  • Using classes/site plan

    Anyone know if it is possible to use BlackBerry Maps to use 'get directions' function "where I am" and send the 'from address' from a button in my custom application? I don't want a user to have to enter anything for directions, but instead simply cl