Obstacle of the expression: run the expression, if two variables are met

Hello

I have an animation with a large NUMBER of text objects. And there are 3 translations for each text object.

Now, I put all of this, so that I have through a controller box/rocking in the Comp hand can control the language of animation throughout the project. So instead of click 1 billion power layers, whenever I have to make a language, it's a one-click solution. And it works like a charm. In this way I accidentally do exclude a layer not when rendered.

It goes like this. The opacity of a specific layer is driven by an expression. It's either

(comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ("danish show") ("checkbox") == 1? value: 0)

Gold

(comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ('show norwegian') ("checkbox") == 1? value: 0)

or

(comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ("show finish") ("checkbox") == 1? value: 0)

Sometimes I text objects that are identical, Norwegian and Danish are very similar.

To avoid duplication of the text layers (in order to organize and keep my sanity), how could I implement the expression of the opacity to meet these requirements:

If the box EITHER Danish OR Norwegian is activated, display the layer. If none of them are controlled, do not show.

Is there a clever way to combine the two expressions for layers of text in question?

This should work:

controlLayer = comp("MAIN COMP").layer("// TOGGLE LANGUAGE");
(controlLayer.effect("Show Danish")("Checkbox") == 1 || controlLayer.effect("Show Norwegian")("Checkbox") == 1) ? value : 0;

(the | is logical OR).

Xavier.

Tags: After Effects

Similar Questions

  • Hide the button until all Conditions are met?

    Please help!  I am creating a forklift safety training module. There are 12 buttons on the first slide (see screenshot 1); However, only 11 are visible at the beginning of the slide.  The 12th button is a "continue" button that appears only after all the content slides (slides 2-12) were considered by the learner.  I used a conditional action to hide the button (something I learned from @Lilybiri) until all the conditions are met.


    The problem:

    The "Continue" button does not always appear once the content slides have been read.  I found I can do appear to ebb in each slide content, show the slides a few seconds more before returning to the main slide- which seems certain conditions which tells Captivate to display the button "continue".  Of course, I don't want the learners to face to the challenge of trying to understand why they cannot continue. I just want to visit the pages relating to each key to all conditions met.


    Screenshot 1: the initial screen (actions related to the change of color of button below)

    forklift_screenshot1.jpg


    Screenshot 2: chronology of the page main interaction

    forklift_screenshot2.png


    Screenshot 3: conditional Action to display the button CONTINUE (created as a decision 2nd out of action of 'Transport').

    My expectation was that OnEnter, slide would be recognized as read and count for the condition that all 11 pages of content would be considered before that appear the continue"" button.  I set the time to s 3.0 (see screenshot above) on all content slides.  No transition, no effect.

    forklift_screenshot3.png


    Screenshot 4: each slide content is returned to the slide main interactivity by an OnSuccess: jump to the command of the slide.  Nothing special here.  I tried to reduce all the content slides to 1.5 s nothing works.

    forklift_screenshot4.png


    Screenshot 5: an example of the page interaction BEFORE all the content slides were read and before 'CONTINUE' button appears (ignore the footer buttons; it was just me to experiment with styles of button).

    forklift_screenshot5.png


    That's a lot, I know.  I wanted to cover the entire base.  I would appreciate your thoughts and your expertise.  Thank you in advance!


    Michael

    How about what is probably very close to what you have already made... (After double checking all of your shares advanced for bugs)

    Each main menu button sets the variable 'consulted' 1, hides the active button, show visited button, then jump to the content. Alternatively, you can put the action on the close button for each slide as you did.

    Then in your main menu, you will have the conditional action on enter that verifies that each variable 'seen' is 1. If it is true, then it will show your button continue.

    I use this method with almost all of the modules that are non-linear. I use it to display a button quiz start, tab summary etc...

    To check your programming that I'm down in a text caption that has all the variables, you will have to look and make sure that they change to 1 as it should. As soon as something does not change probably you have found your problem. Also make sure that none of your actions changed to continue if you have accidentally deleted an object or something similar.

    Also BTW: If you want to increment a variable, you use the action "expression" rather than "assignment." If you keep just assign 1 to a variable, all that you will ever get is 1. example: If the variable = 7 and you assign 1 then now variable = 1.  If you use the variable expression variable = + 1 then you will be able to increment. Also be careful if a user visits an article more than once because it increments the new variable unless you have a control to see if the content has been seen before, and then past increment. Otherwise they could visit the same section 11 times and then have the button continue become visible.

  • How to find the data in two tables are the same?

    Hi people,

    Suppose we have table emp01, have 10 records and create another emp02 as table

    create the table emp02 in select * from emp01;

    now both the table has the same data.

    How to find a 'data' in the two tables are the same?

    Hello

    SELECT *
    FROM emp01
    MINUS
    SELECT *
    FROM emp02
    UNION
    SELECT *
    FROM emp02
    MINUS
    SELECT *
    FROM emp01
    

    You can also compare resultset hash to select * in emp01 and select * from emp02 by using dbms_sqlhash.

    Best regards
    Nikolai

  • with regard to the exchange of two variables

    I have two variables of type varchar2. I need to exchange them using a procedure which takes two variables as arguments and returns them exchanged.
    can someone give me the procedure complete pl - sql for the same thing.
    I'm new to pl sql.

    Thank you.

    Published by: user12773921 on March 9, 2010 08:48

    Published by: user12773921 on March 9, 2010 08:50

    Hello

    You can use variables in the end.

    create or replace the swap procedure (IN OUT VARCHAR2 var1, var2 IN OUT varchar2) as
    Temp varchar2 (100);

    Start
    Temp: = var1;
    var1: = var2;
    var2: = temp;
    end;
    To check the output, I stated an anonymous pl/sql block

    declare
    VARCHAR2 (100) var1;
    VARCHAR2 (100) var2;

    Start
    var1: = 'A ';
    var2: = 'B ';.
    dbms_output.put_line (' before swap var1:' | var1);
    dbms_output.put_line (' before swap var2:' | var2);
    dbms_output.put_line ('swapping');
    swap (var1, var2);
    dbms_output.put_line (' after swap var1:' | var1);
    dbms_output.put_line (' after swap var2:' | var2);
    end;

    Published by: user8962436 on March 9, 2010 11:08

  • With the help of value in an input text for the calculation in a Variable area

    I have a project where I ask the user to fill out their name in a box entry and two-digit age in another area of text entry.  Later in the project, I want to ask them to think when they were 6 years and how they would describe themselves right there.  (the project is about self-awareness).  To make it as pleasant as possible, I thought it would be nice to say. "(Name variable), think to (years since 6) years, when you were about 6 years old'."  I'm unable to get the variable 'Since 6 years' work and I would like to know if it's possible.

    • I set up the variable text box as "v_age".
    • I've implemented a variable like "v_age6" with the value "6".
    • I implemented the variable result as "v_result_age6".
    • I have set up a standard action with a mathematical expression which reads "v_result_age6 = v_age - v_age6.

    The variable output does not appear on the scene in overview of project mode, and I think it's because there is only a single variable with a value assigned in the equation.  The variable "v_age" doesn't have an assigned value because it is a text entry area.

    Is it possible to use a value typed in a user as a variable to do math with?

    Thank you.

    Welcome to the forum,

    Each TEB has an associated variable, its generic name is the same as the BER. But you better match your variable with the most significant name to the ETB. Take a look at this old real blog post, always to news (though perhaps the screenshots are little bit outdated):

    http://blog.lilybiri.com/timesaving-Tip-Create-associated-variable-for

    BTW: you have no need to create an additional variable to number 6. This action would have done as well:

    Expression v_resultage6 = v_age - 6

    How you trigger the action, by what event?

    http://blog.lilybiri.com/events-and-advanced-actions

    Lilybiri

  • How to make the sliders on two plots are linked

    I have two graphics of waveform on the face before (Ch3 and Ch4).  Each of them have the same X axis scale and for each have 2 cursors (0 and 1 slider slider). I want to make cursors follow one another.  For example, I select cursor Ch3 0 and move it to a certain position of X.  I then want to Ch4 cursor 0 to the same X position on the waveform of Ch4.  If I then move the cursor to 1 Ch4 cursor at a certain position of X, I want 1 Ch3 cursor to move to the same X position on the wave form Ch3.

    I tried using the event Structures and it works very well if I want to just Ch4 sliders to follow the Ch3 sliders.  But if I want to be able to adjust and have follow-up else I can't make it work.  If I could get two event structures in the same loop, it could work but A) I read is not a good idea and B) I have been unable to operate anyway.  I'm sure it's possible... could someone give me some suggestions?  Thank you.

    What do you mean by

    lme999 wrote:

    If I could get two event structures in the same while loop...

    ?

    You can manage events in the structure of the event (just set up 2 events).

    (It is true that it is not a good idea to have 2 event structures in a while loop. It's the nature of the stream... the while loop runs only when the two structures event run exactly once. Anyway, usually 1 event structure is sufficient.)

  • Refresh the binding once certain conditions are met

    Hi people,

    I have a cfselect that is linked to an entry. Type a few characters in the triggers entry select it update its contents (which she gets a JSON string).

    Works very well. But I want more! I want that the event occurs only after 3 or more characters are entered in the entry. I could use {filter@none} in the impasse, but then I must refresh somehow bind it programmatically.

    I did some fairly exhaustive Googling, without any satisfactory results. Maybe it's a stupid question or a very weird...

    Any ideas?

    < input type = "text" name = 'filter' id = "filter" >

    < name cfselect = "seladdress" id = "seladdress".
    bind = "URL:index.cfm? Event = addresses. "{List & surname={filter@keyup}".
    display = 'NAME '.
    value = "ID".
    bindOnLoad = "false".
    >

    Yes, it's me you answer me.

    You can do this through this:
    http://cfsilence.com/blog/client/index.cfm/2007/10/22/refreshing-A-bound-CFSelect

    Then you use cfajaxproxy, which connects directly to your CFC. Since I want all requests, even AJAX, through my framework (model glue) I will not use this way.

    See another solution to:
    http://www.trilobiet.nl/blog/index.cfm/Coldfusioncustomtags

  • Palindromic numbers consisting of the product of two 3-digit numbers

    Hello world. I am tring to find the maximum number of panlindromic with the product of two 3-digit numbers. A number of panlindromic is defined as one whose numbers are the same as its inverse. For example, 99799 is the same as its "99799" reverse

    I enclose my vi as follows. My idea is that I have find the largest number of panlindromic between 100 * 100 and 999 * 999 and then check if this number can be written as the product of two numbers 3-digit. Only when two conditions are met, the program returns the number. If one found does not work, then move us to the second largest number and check if it can be written as the product of two products 3-digit and so on...

    Therefore, I use a while loop a loop for the part to find the largest number of panlindromic and a forum to check the product.

    Somehow, my code does not work, so I think that if someone can give me a help.

    Question of fact of speed?

    Simply create a ramp of 100... 999 branch he and autoindex on two stacked FOR loops (automatic index once inside and once on the otuer loop). Multiply on the inner loop and test if it is a palindrome and conditionally autoindex on loop internal if it is. Concatenate the tunnel of the outer loop.

    Table 1 d conditions will have 2470 items (each element in double, half that). Find the table max to get 906609.

    Takes a fraction of a second. If issues of speed, there are many possible improvements (for example, we multiply twice most!, we only need to keep the current max in a shift register (not to accumulate all the items), etc.).

  • Can I have the user enter a variable that will be used to Signal Express?

    We seek to use the Signal Express to collect data of analog sensors and load cells. We would like the user to be able to enter a variable that the program Express of Signal can act on. Is it possible within Signal Express?

    Hello

    When you select 'Change destination', it will fill with all stage settings that are supported for the given control used.  Not all the steps or step settings are able to be adjusted when the operator mode.  That is why you were only able to bind controls to step DAQmx Acquire and filter (they are only available to bind in your configuration steps settings).  The forumla node is not able to reference an entry of order of the operator interface. You must manually configure the formula tab of configuration step for that particular step.

    I would recommend if you want that more customized the user interface and approach programming using an application development environment.  Signal Express is ideal for acquisition of signals and perform analysis and basic treatment, but if you want more functionality LabVIEW would be a better option.

  • Regular expression help please. (extraction of a subset of the string between two markers)

    I haven't used regular expressions before, and I can't find a regular expression to extract a subset of the string between two markers.

    The chain;

    Stuff of header I want
    Stuff of header I want
    Stuff of header I want

    Stuff of header I want
    Stuff of header I want
    Stuff of header I want

    6 ERRORS
                         
    Info I want to line 1
    Info I want line 2
    Info I want line 3
    Info I want to line 4
    Info I want to line 5
    Info I want line 6
    END_ERRORS

    From the string above (it is read from a text file), I try to extract the subset of string between ERRORS 6 and END_ERRORS. The number of errors (6 in this case) can be any number from 1 to 32, and the number of lines I want to extract will correspond with this number. I can provide this number of a caller VI if necessary.

    My current solution, which works, but is not very elegant;

    (1) using Match Regular Expression for the return of the string after you have synchronized the 6 ERRORS

    (2) uses the Regular Expression matches to return all characters before game END_ERRORS of the string returned by (1)

    Is there a way this can be accomplished using 1 Regular Expression Match? If so someone could suggest how, as well as an explanation of the work of the given regular expression.

    Thank you very much

    Alan

    I used a character class to catch any word or whitespace characters.  This put inside parentheses a substring matching the criteria that you can get by developing the node for regular expression matching.  The \d matches the numbers and the two * s repetition of the previous term.  So, \d* will find the '6', as well as "123456".

  • A user to our small business reports that she one day noticed that the contents of its files to Outlook Express disappeared. Records are intact, but the messages have disappeared.

    Outlook express content of some files went

    A user to our small business reports that she one day noticed that the contents of its files to Outlook Express disappeared.  Records are intact, but the messages have disappeared.  Strangely, what happened to half of its files; the content in the other half is still there.

    She uses Outlook Express 6.
    Suggestions?
    Pamela

    In addition to comments of Bruce, likely OE compacted messages and in doing so, he probably wiped out the where they are absent.  Check your Inbox and message store bak files which are backups dbx files prior to compaction (see www.oehelp.com/OETips.aspx#2).  If you cannot find the bak files, then you will probably use the extract of the service drive of my DBXpress program (see www.oehelp.com/DBXpress/).

    Steve

  • Windows says FireFox must be updated but cannot be because the two instances are running, which is not true. It happens everytime I open FireFox

    Windows says FireFox must be updated but cannot be because the two instances are running, which is not true. It happens everytime I open FireFox

    This has happened

    Each time Firefox opened

    == June 28 2010

    Firefox 3.6.6 came out on 26/06/2010 to solve problems that some were plagued with the new crash protection feature introduced in Firefox 3.6.4. NOTE: Version 3.6.5 has been used for another product, so there is a "jump" in the version numbers.

    You need to update to the latest version, Firefox 3.6.6.

  • VI refuses to run when the published network shared variable is not available

    I have a VI of logging data on my PC that gathers data from several sources, including several shared variable published network hosted on an RT target.

    The problem I have is that the data logger VI refuses to start if the target RT is disabled and the VI is abandoned if the network connection is interrupted.

    Is there an easy way to detect when running, be published these variable network are available and use a placeholder value, if they are not rather than the current behavior of refusing to work?

    I saw many people using data sockets, but I try to avoid the overhead of setting up and testing a loop of treatment relatively complex network on both ends when the network has published shared variables are so simple to use and works perfectly as this abnormal behavior.

    You can replace them with programmatic access (shared variable aperture and friends) and the dummy data placeholders if the variable is not accessible.

  • Running game - this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program

    I'm having the same problem that is described in this topic: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/f15edea1-f88f-492e-bb42-4db2b06fdf05

    My error message is: "this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program and then contact the software publisher. »

    I tried to run the program in question (Castle of the winds) in each mode of compatibility that is on the list and it is giving me this error message every time. Other people have managed to get the program to work, so I don't know, it does not work on Windows 7, but I can't make it work for me.

    Help?

    Hi autohaptic,

    (a) on the computer what Edition\Version of Windows 7 operating system do you use? What type of system? 32-bit or 64-bit

    If you are running Windows 7 64-bit operating system, you can install the 64-bit computer game program.

    (b) on the computer which the castle of the winds game version are you running?

    I want to clarify, if you try to install the program or trying to run.

    Step 1: Put the computer in a clean boot, and then try to run the game

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    You can consider the right version of the game for your computer relocation program.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Obstacles block the character mc BUT mc gets stuck.

    My mc character walks and when she hits a hole, she stops walking IE: she can not just walk in the holes or trees. BUT as the character is already in the hole it takes 5 or more clicks for him out of the hole again. That is to say: the hitTest shooting guard as the two affected areas are still in contact, but obviously I want my character to stop, but to be able to walk again 'cleanly' after a click or two at the most.

    I've seen games on the internet where it is normal.

    If it takes an amount of clicks to get the free character and move once again, you could probably have a loop take care of this for you, just repeat the same code that one click would have processed until the hit test is no longer produced.

Maybe you are looking for