Interface user-generated loop for?

var compLayerArray = new Array("Compsition 1", "Composition 2", "Composition 3");
var layerControls = newArray();


function generateWindow(){
var layerPositionsWindow = new Window("palette", "Layer Positions", undefined);
var layerPositionsGroup = layerPositionsWindow.add("panel", undefined, "layerPositionsGroup");
layerPositionsGroup.orientation = "column";

for(var p = 0; p < compLayerArray.length; p++){
        layerPositionsGroup.add("statictext", undefined, (p+1) + ". " + " " + compLayerArray[p].name);
        layerControls.push(groupOne.add("edittext", undefined, "0"));
}

var layerPositionsButtonGroup = layerPositionsWindow.add("group", undefined, "layerPositionsButtonGroup");
layerPositionsButtonGroup.orientation = "row";
var positionCancel = layerPositionsButtonGroup.add("button", undefined, "Cancel");
var positionSave = layerPositionsButtonGroup.add("button", undefined, "Save");

layerPositionsWindow.show();

I was wondering if it is possible, and if so, how, for generating a user interface based on a loop for? I try to view each layer within a model in the user interface. I can do, because a static text does not require any kind of var. However, when I get to the line 11, I don't really know how I would go about adding a text edit under the name of each layer. I want store a value for each layer. Thank you!

-Nate

OK, I see what is happening. You have decided to add an additional group to the user interface within the same main layerPositionGroup. What happens in the loop to the #14 line. Actually, this has changed now the user interface model that was easy to read before to something more complicated to read. So since you have now "group #" then "GroupTwo #" you now generate a user interface with this model...

Group 1 (statictext)

GroupTwo 1 (statictext, edittext)

Group 2 (statictext)

GroupTwo 2 (statictext, edittext)

Group 3 (statictext)

GroupTwo 3 (statictext, edittext)

.. compare to the original provision of...

GroupTwo 1 (statictext, edittext)

GroupTwo 2 (statictext, edittext)

GroupTwo 3 (statictext, edittext)

So when you browse the children in the group in the debug.onClick in the #34 line, you do not get anything because 'Group 1 (statictext)' doesn't have a second child, just one, the statictext. This interrupts the process. Not sure why it isn't throwing the error, but it is the cause of your problem.

Group 1 (statictext) //Has 1 child

GroupTwo 1 (statictext, edittext) //Has 2 children

Group 2 (statictext) //Has 1 child

GroupTwo 2 (statictext, edittext) //Has 2 children

Group 3 (statictext) //Has 1 child

Children //Has 2 GroupTwo 3 (statictext, edittext)

Through this model is very different, because now, you must take account that you want to only read that the odd numbered children clues, those two children. So your onClick for loop must now include a check for odd numbers like that...

debug.onClick = function(){
     var kids = globalVar.children;
     var kidLen = kids.length;
     var kidValues = new Array();
     for(var k=0; k 
         

Tags: After Effects

Similar Questions

  • Update of the elements of the interface in a loop for?

    Hello

    I have a loop which, among other things, contains a command appendText.  It adds character to a text on the screen box.

    I noticed that instead of adding text to each iteration, he waits until the loop is completed, and then adds all the characters.

    It is not noticeable on short, but very sensitive loops on the longest.

    Is there a way to flash update the text box as each iteration happens, rather than dump all the text added to the end?

    Thank you guys.

    Shaun

    Two things:

    1. If a loop is running that cannot do anything else

    2. the screen redraws occur once on each image

    So if you want to add text and to see the result before adding another text, you must do this on each image (i.e. on the enterFrame event). If you try to do this in a loop, Flash runs the loop at the end first, then go to the next section, then redraw the screen to display the final result.

  • user-generated event does not record

    I am having trouble with a user-generated event and hope that someone else has seen the same thing. I'm running LV 9 SP1, with a pretty standard structure of producer-consumer. The producer is event-driven and sends orders to the consumer based on the queue via the queues and the consumer information going back up the producer via the events generated by the user. In most cases, this works perfectly, but in a situation the event generated by the user is not registered by the structure of the producer of the event.

    The problem arises when the producer to place an order for the consumer advertising immediately generates an event. When this happens, the event is usually not treated by the producer - maybe 1 to 100 times the event is considered by the producer. My guess is that the user event is generated before the producer has completed execution of the event structure case who entered the command line of the consumer, which means (for some reason any) he'll never respond to the event. This suggests that event LV structures will not meet created events while they are running. Is this the case?

    I got around the problem by adding a 10ms before generating the user event (to allow for the case of the event at the end of the performance), but would really rather solve the problem if possible. Any suggestions?

    Thank you

    Baymen

    Thus, you do not have the result of the event of registry which contains this loop connected to any other other event that the loop of producer is correct?

    My first guess is that you raise the event and there is a State of race on the event and a loop is getting there faster than the other.

  • Loops For parallel within a Structure of case - one or more threads?

    I wonder if I put parallel for loops within a structure of business will be to the loops have their own thread, or run in the same thread?

    I think it would be a thread, but then I saw this post when looking on the forums to check.  Alas, I ask directly.

    I created the parallel for loops to improve the performance. (I'm in BT 8.5, if do not have the option of clever parallelization by right-clicking the loop for).   The parallel loops have the same code in each (I know I do the reentrant subVIs).  I wanted to put a case around the loop structure, so that they do not run if there is a mistake in them (I have a master/slave updated structure the where the for loops are slaves) because the code inside the for loops is 1) depends on correct data of the master and 2) by the high-performance computing I want to skip execution of loops if the master has a stop command.  Otherwise, errors are likely to be generated in the slaves because of incorrect data by the captain or the judgment happens quickly, which can confuse the user.

    Let me know if you need more details.  Thank you!

    ~ Kristen

    Each loop will run on its own thread and they will work in parallel. The only downside would be if they call them both the same Subvi and the Subvi is not reentrant. Besides, any shared call which blocks will result in two loops is not able to run completely independently.

  • Dynamic tab Interface User Shell - close the tab action &amp; number of open tabs control

    Hello
    I browsed the forum, but could not get their hands on a concrete solution to the issue on how to capture the event action to close the tab and perform an action on this?
    The thread below about my question, but doesn't seem to have a good solution
    Re: Dynamic tab Interface User Shell: control icon close

    And another question, currently in the TabContext the number of open tabs is at the limit of 15. How can I replace only such that I do not allow more than 7 tabs open at the same time?

    Please help me with the two queries above. Thank you!

    Kind regards
    SS

    Sorry for the delay so much. Finally got some time to play with the model and by downloading the source code for dynamicTabTemplate and substituting the closeIcon worked like a charm.
    Let me summarize what I did to help someone who is looking for it :)
    (1) download the source code for dynamicTabTemplate
    (2) added and additional attribute to the model closeTab
    ++
    +closeTab+.
    +java.lang.String+.
    ++
    true
    +
    +
    +
    +
    (2) the dynamicTabShell.jspx edition, closeIcon commanlink actionListener to be linked to the "#{viewScope.tabContext.closeIcon}".
    (3) implemented the method of closeIcon in TabContext
    +@Override+
    + ' public void closeIcon (ActionEvent actionEvent) {+
    CloseIconInterface bean = getBean().
    bean.closeIcon (actionEvent);
    +}+
    (4) generated the jar.
    (5) delete the oracle supplied jar dynamicTabTemplate by default and instead added my custom pot generated on demand
    (6) implementing the new model
    (7) set all attributes with attribute closeTab. It would take the name of BackingBean... example:
    (8) xxxBean done to implement CloseTabInterface
    (9) implementation of the method closeIcon with custom code to confirm the page close prior to removal of the tab.

    However as you say, I will keep tab on the future updates of the default model tab updates fail bug fixes or improvements.

    Thanks to all those who have looked into this for me and I hope this helps someone else :)... Good luck!

  • Clear out in a loop for

    Hi guys,.

    I have a problem, so I activate timed values on the outputs analog of my RedLab card.

    The problem is that when I stop the program, the outputs are always activate.

    How can I solve this problem?

    Best regards from max

    What version of LabVIEW?

    I forgot which version he presented, but lately, you can add a CONDITIONAL TERMINAL to a loop FOR.

    Use it to stop the loop if the user clicks a button or if the voltage exceeds 3.14159 Volts, or whatever.

    You can also use a basic while loop, set the AUTOMATIC indexing entries and compare yourself 'i' to N - 1, in the loop.

    Stop BUTTON so STOP = TRUE or i = 3.14159 > N-1 or V...

  • Output graphics of two loops for

    I would like to see a graph of the output generated in both loops for.

    X: steps (i x I have two loops)

    Y: Y1 should graph the polar output

    Y2 should chart the Azimuthal output

    Probably very simple to resolve/upgrade in place.  (The output file works fine).

    Thank you

    Kevin

    Good work Kevin.

    I have some suggestions for you (I don't know what it will be eventually, because then maybe they're based):

    • If the data do not change over time, you can use a graphic instead of a graph; Whatever it is, reduce the necessary processing power by updating the two parcels only once for a full run of the outside loop (see below)
    • You have a lot of indicators that are not obviously necessary (they simply out what puts out control - off 4;) Stop 5; Polar; Azimuthal, etc.).  When you submit here, the code is more it is easy to understand and faster you get an answer (minimal document also helps understand us what all is for).
    • Use the decrement vi but don't take it off 1 (reduced the increase in code).
    • Avoid strain - explicitly cast I32 to double so that no appeal should be made to the Manager of memory running (will reduce your footprint of memory of codes).
    • Written file are intensive and bays of building CU generally allocate dynamically memory - try to avoid these as much as possible.  In your VI, you can write to the file once when all iterations are complete.  This will reduce the runtime of the VI.

    Anyway, there are a whole bunch of thoughts that you probably care to hear, but I hope they have been helpful.

    Cheers, Matt

  • How can I distribute randomly addition or subtraction in a loop for?

    Someone at - it ideas for how can I randomly assign a loop for to add or subtract from the random numbers throughout the various itterations?  My current code generates two random numbers and added together for a number of itterations.  I need a few itterations randomly to be subtraction.  Thanks in advance!

    Add another random number generator and compare the result against 0.5. Use a case around your addition/subtraction operator.

    Looks like you might also want to exit what operation is in fact taken.

  • Iterate over all others (or number) of element in an array using a loop for

    I'm going through a table, but instead of autoindexing I want to ignore all the other elements or perhaps a number of elements that will be specified for the user.

    The basic features I want to reach are the next in C code.

    int temp_var = 10;

    int i = 0;

    for (i = 0; i<=1000; i="">

    {

    }

    I am very new to LabVIEW and I didn't know how to use internal variables.

    Can this be achieved using the registers at offset?

    I enclose the code that I currently have to do this. Let me know what you think.

    Thank you guys.

    You must implement this one a While loop with a shift register to hold the index.  The index must be changed by the step size.  Here is the code:

    I asked for a new style of loop For which would specify start, stop and the conditions of the stage, but it seems that a lot of people is just not this idea.  Don't know why?

    See here.

  • Report Generation Toolkit, production of the 2147417842 error, "The application called an interface that was marshalled for a different thread."

    Hello world

    I have an application that stores data in an Excel worksheet by using the report generation tool.  My VI have worked well in the past using Excel XP, but since I have upgraded to Excel 2007, I get COM errors like this:

    "2147417842 error occurred while the application called an interface that was marshalled for a different thread. in Excel_Insert_Text.vi', this is the exact wording, even with the odd punctuation and capitalization.

    The first occurrence of the error is not determined.  Sometimes, to the record 10 sessions, involving a new .xls file, may occur before this error.  Once this error occurs, I must leave LabVIEW to solve.  If I try to do something with Excel, I still get this error, even if sometimes it comes out different source Excel_Open.VI is another.

    These screw logging worked fine until upgrading to Excel 2007.  I checked and I have been using a very old version of the report generation tool, v1.0.1.  I read the documentation and had a big sigh of relief when I realized that I needed to upgrade to v1.1.2 for Excel 2007 help.  However, even after the upgrade, I still get the same errors.  I'm using LabVIEW 8.0.1 and I also build these screws in an application.   The error occurs in the application built both in the IDE of LabVIEW.  Anyone out there have any idea what I can do to fix this?  I google a bit and discovered it is a COM error, but I can't find any reference to the report generation tool specifically.

    Thank you

    Phil

    I think that suits him!

    Here's what I did: I left privileged execution environment level upper VI as "as the appellant.  I tried the "user interface" configuration, but it seemed to slow down considerably the program.

    Then, I found each sub - VI, calling the report generation tool and define the environment for running favorite "user interface".  All the errors went away, and the program is much happier now.

    Big assumption on what a Christian, thank you!

  • Help with the efficiency of the program, stop a loop for?

    Hi all

    I need some advice programming General to help my VI to operate more effectively.  I have a table in which the program runs each point and 2d compares the value for the surrounding points.  The user can select the range of cells to inspect range, so if the user selects 1, then, it will compare the point (0,0) to all cells in a single cell.  If the user selects 2, then all the cells in a range of cells 2 and so on.  If the point (0,0) is superior to everything around him, then he writes this point in a table.

    I made more notes in the VI to explain what is happening, but I think that the program would be more effective if I could stop a for loop to run as soon as it detects a false condition, i.e. the point (0,0) is not more than one of the surrounding points.  As it is right now, it compares at all points around him, writing TRUE/FALSE for a table, then checks if all conditions are TRUE.  That takes a lot of time if the user selects a value of 8, for example.  It would reduce a lot of processing time if he just threw to the next point as soon as it finds a FALSE condition.

    Any other advice would be appreciated as well.  Try to be a more effective programmer!

    Thank you!
    Alex

    I do not attach the data file, because it is too big.

    In versions before the invention of the loop For with conditional stay terminal, you can do it, but you have over what a while loop to stop when your condition is True, OR when the terminal i is equal to the size of the incoming array - 1.

  • How to stop and start a loop for

    I got the code and a loop running in a while loop.  What I need to do, is simply to suspend the processing of the loop until a condition is met, but retains its position of iteration throughout each pause time (not necessarily time, just paused until the following condition is met).  I tried wiring of a Boolean value to "continue if true" terminal of the for loop, but the reboot of the iteration count to 0 when the loop is restarted.  Is there a way to stop the loop for and continue to the particular iteration, it is in?

    Breakpoints, conditional, or normal are intended just for debugging your code.  I had the sense of your question as you want make a break is part of the normal operation of your code.  I would NOT recommend using a breakpoint for this situation.  It would make it appear the diagram showing the breakpoint when it occurs.  A user not to mention that the programmer wouldn't know what to do in this case.

    Yes, both the inner and outer loops would shift registers.

    Implementation of a structure dealing with a small loop inside the "case of a break" is feasible.  Depends on what you are or wait while the operation of the program is "paused."

  • Value of the loop 'For' pass before the complete loop - FPGA

    Hello

    8.5 LV, LV FPGA, PCI 7831-R FPGA Board

    I got a cramp of brain on this one.  I have a function (Arb. GIS read) that Im using to generate an arbitrary signal which I created in memory.  I can't move to the value of data however.  I don't know why I can not, its because it is nested in a "loop For" who runs indefinetly and updates only the value whenever it loops back to 'zero '.  Ideas quick and dirty on how to use this value as it is being updated in the loop in my hand vi?

    I've seen messages on the use of local variable 'Files' and property nodes, but I can not just give a sense the.  Maybe because it's FPGA, something is different/no supported?

    * My principal is 'control MicroMirror Arb. SP", look in the #4 case and the condition of"false. "

    The 'Sub - VI' is called 'Arb Sig read RevB', and I'm trying to pass the variable 'Data' to hand while the loop For always runs.

    Thank you!


  • Control of the double loop for a positioning system. - movement ocntrol

    I am currently a control of the double loop for a positioning system, I use the speedometer to read the speed and the encoder for position on the position of the platform.

    the problem I'm meeting now, is that I'm not sure weather the computer have the PID toolkit, because I can't find them under the control design and simulation module.  so I did a PID using the basic features of labview, related information in the attached documents.

    I'm not sure of the part of the dt, the labview has this kind of service as of the timing of simpling?

    do I have to install the labview real_time potion? I'm just using the labview 8.5

    Another issue is that, how I'm going to let the system remember the position instead of back to 0 whenever I restarted the program? If not is there any other way I can control the motor to move the position of the target that is initially set?

    the last question is that is it possible for me to generate a profile about the current and desired position? to set a maximum speed and acceleration.

    I do not have a motion controller, so I have not installed the module version and motion.

    can someone suggest me a way to do it?

    Hey, 14 I never used TDMS files. but maybe this will help. [zip file]

    and if it isn't, I found this (which you can probably read into its equivalent in English)

    http://digital.NI.com/public.nsf/allkb/099731B9B31936B08625745A0076A610

    [don't forget to Congrats]

  • Content in the interface user of ADF

    Hello

    I use the WebCenter 11.1.1.9 content and use the user ADF interface, however

    the content component to create links between content items.

    Anyone know if it is possible to use the content related interface user ADF component?

    TKS.

    To my knowledge, it is not possible - in fact, not even in the current version of the 12 c.

    However, you will need to move to 12 c in the future to get this.

    See http://docs.oracle.com/middleware/1221/wcc/WCCAA/GUID-6CF263BB-58E9-4A12-A309-AE28C70BC578.htm#WCCAA2260 for more details.

Maybe you are looking for

  • How to create several IF = display then

    Hello I have a document of numbers with 2 sheets, and I use it to calculate the postage costs. I have a sheet that has costs for each weight (100 g, 200 g... 800 g), and I'm trying to enter prices in weight on the second worksheet. Basically I want t

  • Problem with LabPython - implement the Python Server

    I booted the server as follows: It was made as a separate VI, and I ran it before the opening of any other VI. Initializes the server, but I can't get the variables of thethe code is calculated. Here is a very simple program, with itserror code. I wa

  • playerhow of the vertical film media

    I want to watch my movie camera vertical - now his side

  • Photosmart e-all-in-one B110a: HP Solution Center does not open

    This problem began in late December 2015.  HP Solution Center worked fine until then. Now the printer works well, but the HP Solution Center does not open, so can not scan to computer or check ink levels.  Tried to uninstall the KB3132372 update [as

  • Download the image to the server using the message parameter.

    Hello experts, I want to download an image on the server by using the post method with parameter alongsome such as file name, status, tag, deviceid, name of the device. Server taking some as windows credentials. I connect a .html page which, in my ur