Switch box does not recognize strings

I'm not going to encompass all of my code because it's something I've been working on people, but essentially, I have a dropdown list where the user can select the position of the text that is created later in the code. Basically, I'm having a problem with the switch statement. I made sure that the dropdowntwo of the var was equal to some string dropdown they select using the alert in the positioning of the function. (ie. If they choose "Lower left" in the drop-down list the variable dropdowntwo = "Bottom Left") For some reason any the switch statement always goes to the default value. Any help is appreciated! Thank you!

var thisComp = app.project.item(1);
var midLayer = thisComp.layers[2];

// code later on
var mainWindow = new Window("palette", "INSERT PROGRAM NAME", undefined);
mainWindow.orientation = "row";

var groupOne = mainWindow.add("group", undefined, "GroupOne");
groupOne.orientation = "column";

var dropdowntwo = panelOne.add("dropdownlist", undefined, ["Bottom Left", "Lower Left", "Bottom Right", "Lower Right"]);
dropdowntwo.selection = 1;


function positioning(text, comp) {
    var dropSelection = dropdowntwo.selection;
    alert(dropSelection);
switch(dropSelection){
    
    case "Bottom Left":
        bottomLeftText(text, comp);
        break;
    case "Lower Left":
        lowerLeftText(text, comp);
        break;
    case "Bottom Right":
        bottomRightText(text, comp);
        break;
    case "Lower Right":
        lowerRightText(text, comp);
        break;
     default:
         lowerRightText(text, comp);
        break;
    
}
}
   

I have not tested this, but try to change this:

var dropSelection = dropdowntwo.selection;

to do this:

var dropSelection = dropdowntwo.selection.text;

Dan

Tags: After Effects

Similar Questions

  • Import dialog box does not recognize that some photos were imported.

    If I import photos on a map, then eject it and put it later to import the rest, Lightroom does not recognize that some of these photos have been imported - it displays all of the available import photos, although I hear selected Photos.  When I import, I choose to make a second copy, rename the files, and copy as DNG, as well as the file is stored with a different name and an extension of that which exists on the map (as a second copy with original naming is kept), but previously did not prevent Lightroom to recognize that a picture had already been imported.  I think the problem started a month ago, but I can't identify any event related to this work more (post hoc ergo da hoc).  Advice and suggestions are greatly appreciated.

    JK

    My fault!  LR doesn't have any problem recognizing duplicates, even if you rename the photos.  I had unchecked somehow don't Import suspected duplicates.  Without this checked, the news pictures option is kind of meaningless.

  • Why my switch SLM2008 does not recognize my Cisco-AP1262-n-a-k9 devices?

    Hello

    Both the switch SLM2008 and AP1262n-a-k9 are currently to the factory default.

    I can web in the switch of my laptop, but when I connect to one of the 4 AP I'm trying to set up, the switch is not see it.

    Any help would be greatly appeciated.

    Thank you

    Armand

    Hi Armand,

    AP is the level of the company and the switch is actually small businesses.  Normally, you do not mix two levels.  But...

    To clarify what I referred to above, this switch is 10/100/1000 Mbit / s, full duplex, auto-negotiation.  The port settings can be changed manually.  Therefore, I suggest to connect to the switch and AP and check the ports on both of them are adapting in configuration.  If you have 1000 Mbps on the switch then make sure it matches the access point, if autonegotiation enable on one, then make sure that it is enabled on the other as well.  Also, you can try disabling auto-negotiation on the two of them to see if that helps.  Ensure that if a full duplex, then the other is also.   Basically, if the settings do not match, then they will negotiate a link between them and that seems to be what is happening.

    Hopefully it is a little clearer.

    Sincerely,

    ALENA Patterson

    Cisco Small Business Engineer

    CCNA

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • Since the new update Illustrator does not recognize the graphics card to my SURFACE PRO 2 and the digitizer stylus does not work properly.

    Since the new update Illustrator does not recognize the graphics card to my SURFACE PRO 2 and the digitizer stylus does not work properly.

    Any ideas out there?
    I know the pro 2 surface is not the real model, but at least it should work fine.

    arwinq,

    You can see the system requirements, including the maps here.

    https://helpx.Adobe.com/Illustrator/system-requirements.html

    but I fear that you may be taken in this GPU issue described by butz in post #13 here:

    https://forums.Adobe.com/message/7773402#7773402

    You can try to switch between GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.

  • Why my Bank does not recognize my computer whenever I connect, and this only happens when I connect with Firefox not other browsers

    I connect to Bank and firefox remembers my account #, but when the next screen appears the Bank does not recognize my computer. Each time to answer the correct security question, I check the box to remember as a personal computer, but he never does. This only happens when I use Firefox, not other browsers. Other browsers don't forget Acct and that it is a personal computer.

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    We hope to hear from you soon.

    I wouldn't store any bank information on your computer for various security issues.

  • I recently had a new hard drive installed in my 2008 iMac. I'm trying to re - install office and the computer does not recognize my password. I tried all the passwords I can think of and nothing works and it wont let me continue

    I recently had a new hard drive installed in my 2008 iMac desktop computer, because right now I can't afford a new computer.   I am now under OS X El Capitan 10.11.4 and my password no longer works so that I can reinstall office microsoft for Mac.  I'm trying to change my password, but you must enter the old password and it does not recognize the password.  I tried every password I use and nothing works.  How can I change or get a new password?

    Reset the password.

    OS X 10.7 Lion, Mountain Lion, Yosemite 10.9 10.8, Yosemite 10.10 and 10.11 El Capitan

    Shut down the computer.

    Start the computer, and then press on and hold the command key and the R key to boot from the recovery partition.

    When you see the Apple logo, release the keys.

    Wait until the OS X Utilities window appears.

    Move the mouse pointer to the bar menu at the top of the screen, click on "Utilities" and select "Terminal".

    in the menu dropdown.

    Terminal window is displayed.

    TypeRegeditdans resetpassword and press enter on the keyboard.

    Reset Password Utility window will open.

    Leaving the Terminal.

    Select Macintosh HD, if not already.

    Select the user account in the menu popup box under "Select user account.

    Enter a new password.

    Re-enter the new password for the user.

    Enter a hint.

    Click on the Save"" button.

    Click  in the menu bar, and then select restart.

    Open a session.

    When Keychain dialog box appears, select "create new keychain".

  • Just got a 5 s. implemented the alphanumeric code but phone does not recognize and I'm locked out.

    JJust got a 5. Set up an alphanumeric password, but now it does not recognize the phone and I'm locked up. Tried to turn the switch off, wait and turn it back on but still locked. How can I fix?

    The only way to fix it is to follow the instructions in this article to support that best apply to your situation:

    iOS: device disabled

    Good luck

    GB

  • URL address box does not display the current page.

    With the 4.0.1 update, the URL address box does not display the current page.

    All that shows is the text: «Go to web site»

    To now see the url of the current page, you need to make a right click the empty space is the address box and press the button "esc".

    Is there a way to display the url of the current page?

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Portege 7220 does not recognize the Extension of memory (Kingston)

    Hello

    Recently, I wanted to update my old notebook, Portege 7220 with a 256 MB Stick of Kingston Ram. According to their website, it should work, but the machine does not recognize the memory at all. (just using internal 64 MB).

    I can't upgrade the Bios either, because when I press F12 when the computer starts, it cannot read the floppy drive in the docking station. Do I need a USB floppy drive for that? I tried with a usb key, but it does not work. is there a possibility to redo an update of windows? (Comp running Windows 2000)

    Thanks for your help, much apprechiated.

    Rawnonymous

    > I can't upgrade the Bios either, because when I press F12 when the computer starts, it cannot read the floppy drive in the docking station. Do I need a USB floppy drive for that? I tried with a USB but that doesn't work. Isn't there a possibility to do a windows update? (Comp running Windows 2000)

    Only the TRAD of the BIOS version exists for this Portege.
    This means that you will not be able to update the Windows operating system running, but you will need an external floppy drive to perform these updates.

    Regarding your problem of memory;
    Check this box:
    http://www.orcalogic.co.UK/ASP/ProdType.asp?ProdType=5388&ft=m&St=3

    You can find the compatible memory module. It s a PC100 144 pin SODIMM.

    Maybe you used the not-entirely-compatible module or the module is defective

  • Computer does not recognize that this printer is connected

    Hi - We have a new laptop and it does not recognize the old printer.  So, I'm trying to download the driver for it.  However, when I try to download it, it says "Waiting for the user to connect the printer", but the printer is already connected via a USB cable.

    I tried an another USB cable to ensure that it was not that.  I also made sure the printer is on and print a sample page.  What should I do now?

    Hello!

    I'm a little confused abouut your problem. you try to RUN the software and complete functionality to your direct printer from the Hp Web site? If so, Hp does not recommend this process.

    Better to save full feature software and driver first before installing because by clicking RUN directly connected to the internet, you will have a problem to install - some will get instaalation error-corrupted files.

    Pls. click the download button and save it to your desktop.

    Also, before you install it, also try a different USB port on the computer, disable any third-party software on your computer like antivirus, firewalls and spyware because it could block some of the drivers for your printer specifically for scanning. Re-enale the protection again after installation.

    If still not detected, you can try inserting a USB stick to the USB port on your computer. If it works, doesn't mean no problem with the USB PORT.

    TRY THIS ONE, if you are using windows, go to device manager look for the USB if you have a yellow caution icon trhat brand-right click and select put updated driver or select Properties, and then click Properties window simply select Update driver - let windows search the driver online.

    Then try to reinstall, if not solved try this one:

    1. Click Start and then click run . The run dialog box opens.

  • Satellite L500-13z - Windows 7 does not recognize wireless network adapter

    Hello

    The Windows 7 RC Device Manager does not recognize my wireless network adapter (for example: Atheros, Intel or Realtek). I tried to install all the Toshiba support drivers, but none of them work:

    After installation, they ask me to connect the unit to my computer (of course it is still on the motherboard!).

    =>, Is there a way to know what is my Wifi adapter?

    that one failed: http://aps2.toshiba-tro.de/kb0/HTD7201PO000SR01.htm (this is the only Word to say "network adapter" with a yellow exclamation point).

    -Online someone knows when will be released Windows 7 drivers on the website?

    Hello

    Before you begin to install all drivers WLAN you can find on the Toshiba site you must make sure that wireless network card, you have exactly. You can check in the Device Manager-online properties-online Details of the local network adapter device.
    Need you an information like PCI\VEN_XXXX & DEV_XXXX

    If you have based this information you are looking for with these terms on this site in order to determine the exact WLAN card:
    http://www.PCIDatabase.com/

    After that, you can download the driver appropriate for your laptop. Before installing, you must uninstall all other versions and restart the laptop.
    Also, make sure that the WIFI is enabled with the hardware switch and FN + F8.

    Welcome them

  • Satellite M45-S265 does not recognize WLAN adapter

    I just restore my computer and it does not recognize the WiFi device,
    I tried with the support from Toshiba but I couldn't find an answer, the switch is on but I do not have the Green ligth and in the network of connections is not appear.

    Could you tell me how I can implement this feature? or check the hardware?

    Is a Toshiba Satellite M45-S265

    Thank you

    You see the device wireless in Device Manager?

    Its drivers are installed correctly?

    If the driver is installed, try to disable or reconfigure your firewall

  • Satellite A100 PSAA5A Windows does not recognize ethernet controller

    Hello

    I'm having a problem with a PSAA5A-01H00T A100 running Win XP sp2.
    Windows does not recognize an ethernet controller, so the wireless NETWORK card does not work, even if the wired connection is.
    I tried to install the latest WLAN drivers on the support site (two of them), does not. Windows insists that the correct drivers are not installed.

    I suspect a hardware problem and I have the user on an external wireless NETWORK card, but I would appreciate any idea that you guys can provide.

    Thank you.

    Hi mate

    What Ethernet controller is not recognized? WLan or LAN?
    You have a few unknown devices in Device Manager?
    If so, then a critical driver is missing, and so the controller is not recognized correctly.

    You n t know what LAN or Wlan chip you have and what driver is needed?
    Check this box:

    How to identify an unknown device (e.g. LAN wireless module)?
    http://forums.computers.Toshiba-Europe.com/forums/Ann.jspa?annID=78

  • Equium A100 - Mat * does not recognize a DVD UJ - 841S DVD-R

    Can someone tell me what DVD I can burn on the above. What is DVD-RAM? I bought some DVD-R discs, but it does not recognize. Do I need other burning software too?

    Steve

    Hello

    I think you forgot to change the setting of scripture to your drive. To do this right click on your drive and select Properties. On the recording tab, check the box "Enable CD recording on this drive". With this setting, you should be able to recognize CD - R and DVD-R.

    Good bye

Maybe you are looking for

  • Can not copy / paste from/in firefox under Windows 8 x 64

    These problems started when I installed windows 8 x 64 on my pc at home, with windows 7 x 64 there was no problems at all. The problem is that I can't copy/cut anything from Firefox and paste it into e.g. microsoft office word or notepad ++ or anythi

  • Create a profile Apple TV an existing unit Configurator

    Is there a way to connect my 3rd generation Apple TV Apple configurator and copy it and then connect my new 4th gen and copy things more?

  • Lose the first character in the e-mail address

    When I go to enter an e-mail address, I start typing the address in the required field.  When I type '@', the first character of my e-mail address disappears from the input field.  For example, I type 'jstewart' and when I type the symbol @, the lett

  • Help with static IP address for the WRT54GL by EZXS55W

    Hi all! I'm having some trouble network at the office and cannot keep close internet for all the world just try a new mode of connection of the cables. We recently received a notice on five new static ip addresses for the office, we did turn on DHCP

  • ink level report

    I have a HP4630 which has worked flawlessly.  I'm curious to know what the numbers in depict her report of ink level... currently it shows "62" under the color cartridge and black cartridge.  What is the number of pages left? Thank you.