AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 25, 2013 9:33 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using app.executeCommand() for New Solid Dialog Box
PostPosted: Sun Apr 24, 2011 11:07 am 
Offline

Joined: Sat Jan 23, 2010 9:09 am
Posts: 1
Hi,

I'm writing a little UI script for AE CS5 and I want to invoke the New Solid dialog box with the app.executeCommand() function.

Currently I'm finding the command ID using the line of code:
Code:
app.executeCommand(app.findMenuCommandId("Solid..."));


However the dialog box I'm presented with doesn't offer the Make Comp Size button (it's greyed out), and the resulting solid is not inserted into the open comp. On investigation I realised this was because there are two menu "Solid..." menu options and it's evaluating the wrong one first (File -> Import -> Solid...)

Does anyone know the correct command ID for the Layer -> New -> Solid...?

I'd prefer not to have to build the dialog box myself if I can help it!

Thanks,

Christian


Top
 Profile  
 
 Post subject: Re: Using app.executeCommand() for New Solid Dialog Box
PostPosted: Wed May 18, 2011 3:40 pm 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
app.executeCommand() is an unsupported feature and Adobe discourages its use for reasons like you found plus it might not work consistently from version to version. You can create a new solid using the addSolid() method on pg94 of the CS3 scripting guide.

-Lloyd

_________________
http://aescripts.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group