App.executeCommand(app.findMenuCommandId("Solid...")) doesn't work right?

Hey guys,
I'm tring to use app.executeCommand(app.findMenuCommandId("Solid...")) to add a solid layer to active comp. But it only add a solid layer to the project panel, instead of adding the solid layer to both project panel and active comp.
It works fine when I use this method to add camera, null or shape layer to active comp.
What should I do?
PS, I don't want to use addSolid() method.

app.executeCommand(app.findMenuCommandId("Solid..."))
Works fine for me in CS5.5 on OS X 10.8.2, but I agree with fusepilot, in that you should use the addSolid() method. It's a native option and was engineered specifically to do that task. The whole app.executeCommand(app.findMenuCommandId()) option is an unstable method and was probably meant for Adobe developers to test code quickly or something.
If your reasons for not wanting to use addSolid() are because you want to have the solid options window popup for easy customization of the new solid created, then you can build a GUI to emulate the same task and pipe the results into the addSolid() arguments. Yes, it is a lot more coding, but in the end worth it.
If you are unsure how to code an ExtendScript based GUI, my recent tutorials may help you in that.
Create a floating GUI window:
http://provideocoalition.com/pvcexclusive/video/after-effects-extendscript-training-ep-11
Create a dockable/floating combo GUI window:
http://provideocoalition.com/pvcexclusive/video/after-effects-extendscript-training-ep-12

Similar Messages

  • Power Nap doesn't work right in my MBA mid 2011. Anyone knows why?

    I just boght a MBA middle 2011 and power nap doesn't work right on it, specially in Mail app, where it downloads only a few mails and the rest of them are downloaded as usual, when recativate my laptop. Does anyone knows why?... i also tried to download the SMC update, but when i try to install it i get the message that my system is not compatible with the update.
    Please somebody help me!!
    Thanks in adevence!

    http://support.apple.com/kb/HT5394

  • Palatino superscript doesn't work right

    Palatino is my favorite font. But since installing Mavericks, superscripting doesn't work right in Microsoft Word. When Palatino type that is 14 points or smaller is superscripted, instead of being reduced a couple of points it is made extremely tiny. Also, instead of being raised to the top of the line, it appears in the middle (vertically) of the line. Since I use endnotes a lot, this effectively destroys the Palatino font for me.
    According to Get Info, this particular font is Copyright © 1991-99, 2006 Apple Computer, Inc. Copyright © 1991-92 Type Solutions, Inc., so I've had it for a long time. Is there an updated version that will fix this problem? I don't have this problem in other programs, including PowerPoint. I use Office 2011.
    Here is an enlarged image of the superscript (st):
    <img src="http://ti.org/images/Superscript.png">

    I think folks are looking for a solution.
    And I have given one. The Palatino font supplied with Mavericks is no good. The only fix is to replace it with an older version. If you don't have one, you can't fix it.
    Do you agree that Restore Standard Fonts...works ... Yes? No?
    No. That option only attempts to remove fonts from the System and root Library folders that are included with OS X. It doesn't give you an option to restore OS X supplied fonts that are missing.
    I have to presume you installed Mavericks over Mountain Lion. In Mavericks, Palatino is installed to the /System/Library/Fonts/ folder. In ML, that same (correctly working) font is installed to the /Library/Fonts/ folder.
    Presuming this scenario is correct, the working version of Palatino in the /Library/Fonts/ folder was already active. When resolving conflicts in Font Book, the active font is always the one left active. Which would mean it removed the broken, Mavericks installed version.
    As noted above, I fully tested and have proven the Mavericks version of Palatino is bad. I have multiple versions of this font. They are from:
    OS 9
    MS Office 2011
    Lion
    Mountain Lion
    Mavericks
    Adobe Type 1 PostScript
    Adobe OpenType PostScript
    I used Suitcase Fusion to activate one version at a time. Testing in Word, InDesign and other apps, they all behaved as expected until using the Mavericks supplied version.

  • I have a MacBook Pro Retina (2,3 GHz Intel Core i7 - 8 GB 1600 MHz DDR3 - Intel HD Graphics 4000 1024 MB). I use KompoZer for my website, but after installing OS X Yosemite it doesn't work right (I cannot see images in the website).

    I have a MacBook Pro Retina (2,3 GHz Intel Core i7 - 8 GB 1600 MHz DDR3 - Intel HD Graphics 4000 1024 MB). I use KompoZer for my website, but after installing OS X Yosemite it doesn't work right (I cannot see images in the website).

    It's beta open source software so I'm not surprised. It does't look to be too active a project, so I don't know if it will help or not but you might be maybe better off posting a bug report on their Sourceforge page here: http://sourceforge.net/projects/kompozer/

  • DVD menu doesn't work right in DVD players

    I've created a DVD in Encore for Mac.  It plays fine on my Mac and on Windows.  However, once it is inserted into a stand alone DVD player, the menu doesn't work right.  I have four text menus.  In the DVD player, none of those are navigable.  Arrowing up or down doesn't work.  You have to click a number on the remote keypad and then play. This also causes "Channel 1" or "Channel 2" and so on to display.  Any ideas how I can get the arrow keys to work?  I don't have a stand alone dvd player to test against.
    Also, in Windows, I have someone that wants to duplicate the dvd.  They're using Movie Maker.  It gives an error that the codec is not installed but doesn't say which codec.  Any ideas on that?

    The only time I recall similar problems was the issue Jeff was asking about above (Mac, Encore CS3, certain OS).  If you don't solve this otherwise, I'd experiment with that.
    You appear to have confirmed that there is button navigation.  (In button routing, each button points to another.)  Where does it break down?
    On the Mac/PC, are you using the mouse?  In the computer DVD software player, there should be a "remote" that you can use to see if the button navigation is working.  Does the computer "remote" option work?  If so, it makes it not working in a standalone player even odder.
    If not, then look at whether the project works before you burn to disk.  Does the "remote" work in the Encore preview?  Or build to a folder, then play the DVD from the folder.  (I don't know how on Mac; on PC, I find the first .ifo in the VIDEO_TS folder, and play that.)

  • When trying to read emails on hotmail on firefox, the "back" button on my mouse doesn't work right. It works fine if I use internet explorer. This started about three days ago.

    Also doesn't work right when I try to click on the inbox. I sometimes just get a blank screen. Seems to work fine on every other site except Hotmail.

    Nothing changed after clearing cashe and cookies and restarting in safe mode.

  • Media player doesn't work right , code# cood1197

    Why won't any of my music play on windows media player and rip any music to my ipod  recovered august since then player  doesn't work right now. product bv545aa#aba  serial# 4ce1031lws ,model # p6754y & getting code # cood1197 & are there any free updates for player ?  thank you.

    I haven't had a problem with either.  I have switched to using MixZing as my player because it also allows me to work with the contents of my SD card and has a nice equalizer function that really works well with a quality pair of headphones or when plugged into my home stereo.  It's available on the Marketplace.
    I do know that with Youtube, I get much less buffering if I pull videos through the WiFi function when attached to my home network.

  • I upgraded to IOS 5.1 and the phone doesn't work right

    I upgraded my phone to IOS 5.1 and the phone functionality doesn't work right.  If I make a call, once connected I go back to the main menu and can't get to the phone controls (including the ones to hang up).  If I receive a call, the wheel comes up, the phone does not ring and I can't answer it.  I tried restoring the phone, but that did not work.  Does anyone have any ideas?

    Press the camera icon and slide it up.

  • App created with Flash CS6 doesn't work on iOS6

    Hi, I developed an iOS app with Flash CS6 and it works perfectly on iOS 5.1, but today I've upgraded my iPhone 4 to iOS 6 Beta for developers and my App doesn't work!! Apps developed with CS5.5 work well on iOS 6. How to fix it?! I tried to save in flash cs5.5 format and open it with CS5.5 to export it, but it doesn't export anything! Please give me a solution.

    update:
    - i'm still using cs5.5, but now have air3.3 overlayed
    - i changed the render mode in the app.xml file to "direct" instead of "gpu" and republished
    the app seems to display the graphics and dynamic text ok, but the stageVideos are not showing up.
    suggestions greatly appreciated, thanks...

  • FaceTime doesn't work right after updating IOS 8.1.1

    I updated  my iPad with IOS 8.1.1 and now my FaceTime app doesn't work.  Will there be a fix for this soon?

    Hello craigfrommarion,
    The article linked below details a number of troubleshooting steps that can help get FaceTime working correctly on your iPad.
    iOS: Troubleshooting FaceTime
    http://support.apple.com/en-us/TS3367
    Cheers,
    Allen

  • Remote often doesn't work right

    Often, the remote in preview mode just doesn't work...takes me out of Preview mode instead of taking me back to the Menue or Title or whatever I am testing. I thought it was maybe just a glitch in the Preview mode. Now, after burning a disk image and testing it out, I still don't understand it. Overall it seems to work okay, but when I play my movie, I want to stop and go back to the menu, but it says "not permissable". I hit the Title button and it works, then I can go from there back to the Menu. I just don't get it. It seems like the most simple remote in the world and acts like the most complex. Am I missing something?

    It seems silly that I can't make a DVD that works like all the others out there in the world.
    The others "out there in the world" are encoded from film using million dollar state of the art encoders.
    Then they are mastered or replicated using glass master discs that are duplicated. iDVD is a free consumer app.
    There is a world of difference between the processes.
    You might think it's silly, but all things considered, desktop authoring with a free app does approach commercial authoring.

  • My Lexmark X2670 printer doesn't work right since I reinstalled the Firefox 3,6 version. I keep getting the alignment page to print over and over. Is there a problem between the two? Do I need a new printer driver? What?Daisynew66

    I had to change my hrowser to Firefox because Internet Explorer 9 doesn't work with my ancestry.com program. I can't uninstall Internet Explorer 9. I got Firefox 4 and it didn't work either. I started having problems with my printer working at all then. l was told to go to Firefox 3.x. I looked and there is no 3.x it is 3.5 or 3.6. I downloaded 3.6. Now I keep getting a alignment page and end up having to shut off my printer. I'm using way too much ink. I'm almost out with no hope of getting more ink until I get paid. I can't find anyplace that says to update a driver or that I need a plug-in or what might be I've done everything I know to do.wrong. It has new port cables. Do you have any idea what could be wrong? Do I need to uninstall the printer and reinstall it again? daisy

    I just figured out the print quality issue for my wife with her new iMac and new printer.
    She replaced both at once and she couldn't understand why her Artisan 730 was lower quality then her Epson R280 when they had the same specs.
    Turns out the newer printer had the option to connect via wifi which we used during setup.
    The driver options are completely different depending on how you connect.
    Once I connected via USB the correct options were available and the print quality was better.
    Looking at the R2400 it dies not have wifi, but while researching the problem for my wife someone esle was having an issue updating to the latest printer driver.
    If you go into the print utility from the Printer and Scanner system preference and under the general tab you should have driver 5.5.
    One user had to delete the old printer driver before Software Update loaded the newer printer driver.
    https://discussions.apple.com/message/15947486#15947486
    On my MacBook Pro (w Snow Leopard) I always had to reconnect my wifi at home when it woke up. I upgraded my router from an old Netgear to a newer N D-Link and stopped having to do that.
    I would be surprised you would have that problem with an Airport Extreme, you might check to see if there is a firmware update for it.

  • Audio output doesn't work right. How to fix it?

    I plugged my earphones in and noticed that the left side was much louder than the right. I tried different earphones and and it works fine on my iphone so it definately is the plug in of my mac that now doesn't work properly anymore

    What did you do, before this happened? Did you install new software? Update the system?
    Have you tried to restart the iPhoneor to reset the iPhone? See:   reset your device
    http://support.apple.com/kb/TS3281
    If that does not help, restore the device: restoring iOS software

  • Java 1.4.1 doesn't work right with Win98se and IE6SP1

    I have installed the 1.4.1 runtime on two computers. On the WinXP one (with IE 6 SP1) everything works 100%. When applets are loading the Java icon is showing in the placeholder, and in the system tray. I can open the console from IE, and all applets work (also the "hot java" on download page that does not work with the Microsoft buildt in Java :-)
    BUT, on the Win98se machine not everything is working. First there is no Java icon either in the applet windows nor in the system tray on most applets (like my homepage http://home.chello.no/~larse/ or my worsk page http://datafangst.ergogroup.no), I cannot open the Java console from Internet Explorer either. So I suspect it's still using the Microsoft Java. BUT even stranger, the "hot java" animation on the Sun download pages IS showing, and THEN the Java icon shows in the tray. Why is it only using the Sun Java for some applets - not all ?

    I experimented some more today, trying to find out why IE is not using SunJava.
    I search the registry, and found that all references to Java (even the "Sun Java Console" menu) pointed to "c:\windows\system\msjava.dll". But there was a key "Treat as" that pointed on to the SunJava plug-in object (could the problem be that Win98 doesn't understand this and still use the default MS Java).
    Also tried using "Norton Registry Tracker" to track what happened when I turned on/off SunJava for IE in the Control Panel and in IE. No changes anywhere. Isn't that a bit strange too...
    Finally I just took a shot and renamed "c:\windows\system\msjava.dll" just to try to get rid of the MS Java AND THEN suddenly the SunJava works everywhere, and the "Sun Java Console" menu works too...
    And no matter what I configure (turn on/off Sun Java in IE, turn on/off support for IE in the Sun Java control panel...) it always use SunJava.
    Haven't noticed any side-effect so far, so it works for me, but I'm quite sure this is NOT the way it is supposed to work - right ?

  • Adobe Premiere Elements 8.0 doesn't work right!

    The program keeps shutting down and then when I play back a video I'm making it plays it all skippy-like!  What am I doing wrong?  I just got a new computer and it's got a dual-core AMD processor and it still doesn't work.   I NEED HELP DESPERATELY!!!  Please reply quickly!

    I would get your brother to help with that info - you'll owe him, so watch out!!!
    Without that info, it's almost like saying "my car won't start. What's wrong?"
    And then when people begin to ask, "is there gas in the tank? Is the battery charged? Do you have the right key for that car?" and you say, "I don't know," it leaves them in a lurch.
    Don't tell your brother that he's helping you learn about both computers and video-editing, or he'll demand higher payment. Just tell him that some guy on the PrE forum asked for some info to help you. Act like it's homework, or something, or he'll get smug, and you will not be able to live with him, if he knows how much he helped. Brothers are like that.
    Good luck, and just go down the list. If you run into some spots, where you can't get the info easily, someone here will be glad to help. Might take a few posts, but we'll get this done, and your PrE working, as well as it can. Be patient, and we'll help.
    Hunt

Maybe you are looking for

  • T530 will not shut down

    Just received my new T530 Thinkpad with Win8Pro installed.  All was working fine for the first few days and then I am now having issues with it not shutting down all the way.  When shutdown is slected win8 logs out and shuts down.  It looks to shut d

  • Vendor change in PO

    Dear Experts, We have created PO for Vendor X and subsequent goods movements has taken place. As we are using QM, usage decision was also made and stock has been moved to unrestricted use. Being this PO is for material(Customer will provide material

  • Problem setting an Open Password on an Adobe Interactive Form

    Hi, I'm generating a series of Adobe Interactive Forms using data pulled from R3 via BAPIs.  The PDFs are created without an issue but I want to put an Open Password on them (a password the user must enter in order to open the PDF).  From my reading

  • Oracle Passwords CASE Sensitive

    My Oracle 9i DB is not CASE sensitive on my passwords. I can not find any info on what parameter I can change to make it case sensitive. All documents I find on net tell me that Oracle is CASE sensitive by default why are my passwords not? Thanks in

  • OWA packages?? Where can I find them?

    May it's wrong group for this subject, but I need these OWA packages. Any help would be appriciated. Thanks