Skip to main content
Adirai Maji
Inspiring
February 10, 2020
Answered

In scripting is there any reverse functioning keyword for app.findMenuCommandId("MenuName"); ?

  • February 10, 2020
  • 1 reply
  • 1126 views

We know that we can get the Command ID for every menu in after effects using findMenuCommandId in scripting. But I want to know is there any option available that shows the Menu Name for respective Command ID???

This topic has been closed for replies.
Correct answer Tomas Sinkunas

Nope, sorry, such thing doesn't exist.

I remember having similar disscusion with other devs regarding this. The sugested outcome wass to build an object with respectfull IDs and their names, but have no idea how it ended up.

FYI, have you looked at @david_torno's PDF files? https://www.provideocoalition.com/after-effects-menu-command-ids/

1 reply

Tomas Sinkunas
Tomas SinkunasCorrect answer
Legend
February 11, 2020

Nope, sorry, such thing doesn't exist.

I remember having similar disscusion with other devs regarding this. The sugested outcome wass to build an object with respectfull IDs and their names, but have no idea how it ended up.

FYI, have you looked at @david_torno's PDF files? https://www.provideocoalition.com/after-effects-menu-command-ids/

Adirai Maji
Inspiring
February 13, 2020

Thank you for letting me know the fact. & Yes I've seen his PDF file. But I need to know how to create a such list.. Now I know. I need more patience to create such list.

Justin Taylor-Hyper Brew
Community Expert
Community Expert
February 13, 2020

You can generate a list of the cmdIDs from the dictionary file. 

If you're interested, the function to generate this is in the CEP Query cmdIDs function https://bitbucket.org/justin2taylor/cep-query/src/master/cep-query.js

{
    "1": "Quit",
    "2": "NewProject",
    "3": "OpenProject",
    "4": "Close",
    "5": "Save",
    "6": "SaveAs",
    "7": "Revert",
    "8": "PageSetup",
    "9": "Print",
    "16": "Undo",
    "18": "Cut",
    "19": "Copy",
    "20": "Paste",
    "21": "Clear",
    "23": "SelectAll",
    "53": "CopyExpressionOnly",
    "256": "AboutAfterEffects",
    "2000": "NewComposition",
    "2003": "File",
    "2004": "DeselectAll",
    "2005": "AddFootagetoComp",
    "2007": "CompositionSettings",
    "2008": "RenameLayer",
    "2012": "SetPosterTime",
    "2016": "BringtoFront",
    "2017": "SendtoBack",
    "2018": "BringForward",
    "2019": "SendBackward",
    "2020": "Transform",
    "2021": "LayerSettings",
    "2024": "TimeStretch",
    "2025": "PICT",
    "2035": "Redo",
    "2037": "Resolution",
    "2038": "Solid",
    "2040": "Mask",
    "2041": "Quality",
    "2042": "Wireframe",
    "2044": "Draft",
    "2045": "Best",
    "2046": "Quarter",
    "2047": "Half",
    "2048": "Full",
    "2049": "Custom",
    "2051": "FreeTransformPoints",
    "2052": "Inverted",
    "2053": "Switches",
    "2054": "HideOtherVideo",
    "2055": "ShowAllVideo",
    "2056": "Audio",
    "2059": "Video",
    "2062": "Effect",
    "2065": "Position",
    "2066": "Scale",
    "2068": "MaskShape",
    "2069": "MaskFeather",
    "2070": "Opacity",
    "2071": "Precompose",
    "2072": "RemoveAll",
    "2076": "GotoTime",
    "2077": "Main",
    "2078": "File",
    "2079": "Preferences",
    "2080": "Duplicate",
    "2081": "Third",
    "2092": "ZoomIn",
    "2093": "ZoomOut",
    "2101": "1",
    "2102": "InterpretFootage",
    "2103": "Proxy",
    "2104": "File",
    "2105": "Import",
    "2106": "SetProxy",
    "2107": "ConsolidateAllFootage",
    "2109": "RemoveUnusedFootage",
    "2113": "Shy",
    "2114": "Lock",
    "2116": "MotionBlur",
    "2118": "File",
    "2119": "None",
    "2125": "SavePreview",
    "2131": "Preview",
    "2135": "TimeReverseLayer",
    "2139": "NewFolder",
    "2142": "EditOriginal",
    "2149": "RenderSettings",
    "2150": "OutputModule",
    "2153": "EnableTimeRemapping",
    "2154": "AddOutputModule",
    "2155": "Custom",
    "2156": "FittoComp",
    "2157": "AddMarker",
    "2158": "DuplicatePreserveFile",
    "2159": "KeyframeAssistant",
    "2160": "Collapse",
    "2161": "AddtoRenderQueue",
    "2162": "BlendingMode",
    "2163": "EffectControls",
    "2165": "AutoOrient",
    "2166": "SaveaCopy",
    "2167": "Normal",
    "2168": "Dissolve",
    "2169": "DancingDissolve",
    "2170": "Add",
    "2171": "Multiply",
    "2172": "Screen",
    "2173": "Overlay",
    "2174": "SoftLight",
    "2175": "HardLight",
    "2176": "ClassicColorDodge",
    "2177": "ClassicColorBurn",
    "2178": "Darken",
    "2179": "Lighten",
    "2180": "ClassicDifference",
    "2181": "Exclusion",
    "2182": "Hue",
    "2183": "Saturation",
    "2184": "Color",
    "2185": "Luminosity",
    "2186": "StencilAlpha",
    "2187": "StencilLuma",
    "2188": "SilhouetteAlpha",
    "2189": "SilhouetteLuma",
    "2190": "PreserveTransparency",
    "2191": "NoTrackMatte",
    "2192": "AlphaMatte",
    "2193": "AlphaInvertedMatte",
    "2194": "LumaMatte",
    "2195": "LumaInvertedMatte",
    "2197": "LuminescentPremul",
    "2198": "AlphaAdd",
    "2199": "Difference",
    "2200": "ColorDodge",
    "2201": "ColorBurn",
    "2202": "LinearDodge",
    "2203": "LinearBurn",
    "2204": "LinearLight",
    "2205": "VividLight",
    "2206": "PinLight",
    "2207": "HardMix",
    "2208": "LighterColor",
    "2209": "DarkerColor",
    "2210": "Subtract",
    "2211": "Divide",
    "2226": "ToggleHoldKeyframe",
    "2227": "KeyframeInterpolation",
    "2228": "KeyframeVelocity",
    "2233": "SaveFrameAs",
    "2236": "MultipleFiles",
    "2237": "ReplaceFootage",
    "2240": "EditValue",
    "2241": "KeyframeValue",
    "2244": "UnlockAllLayers",
    "2254": "RememberInterpretation",
    "2255": "ApplyInterpretation",
    "2257": "ReloadFootage",
    "2258": "CompFlowchartView",
    "2263": "AdjustmentLayer",
    "2264": "New",
    "2265": "Templates",
    "2269": "TrackMatte",
    "2274": "ShowGuides",
    "2275": "LockGuides",
    "2276": "ClearGuides",
    "2277": "ShowGrid",
    "2278": "SnaptoGrid",
    "2279": "AdjustmentLayer",
    "2280": "ShowRulers",
    "2283": "ImportRecentFootage",
    "2284": "OpenRecentProjects",
    "2286": "SnaptoGuides",
    "2289": "FrameBlending",
    "2290": "Off",
    "2291": "FrameMix",
    "2292": "PixelMotion",
    "2310": "RecentFootageList",
    "2330": "RecentProjectList",
    "2350": "None",
    "2358": "Label",
    "2359": "General",
    "2360": "TrimComptoWorkArea",
    "2361": "Display",
    "2362": "Import",
    "2363": "Output",
    "2364": "GridsGuides",
    "2365": "Labels",
    "2367": "NewMask",
    "2368": "RemoveMask",
    "2369": "RemoveAllMasks",
    "2370": "Purge",
    "2371": "Undo",
    "2372": "ImageCaches",
    "2373": "All",
    "2374": "Closed",
    "2387": "RevealPropertiesWithKeyframes",
    "2434": "Audio",
    "2435": "ShowLayerControls",
    "2436": "SelectLabelGroup",
    "2439": "DiskCaching",
    "2440": "Mode",
    "2441": "None",
    "2442": "Add",
    "2443": "Subtract",
    "2444": "Intersect",
    "2445": "Lighten",
    "2446": "Darken",
    "2447": "Difference",
    "2448": "ResetMask",
    "2450": "ApplyAnimationPreset",
    "2451": "RecentAnimationPresets",
    "2452": "LastEffect",
    "2453": "MaskOpacity",
    "2454": "Locked",
    "2455": "LockOtherMasks",
    "2456": "UnlockAllMasks",
    "2457": "WatchFolder",
    "2460": "RecentFavoritesList",
    "2481": "Snapshot",
    "2482": "CollectFiles",
    "2494": "Export",
    "2517": "RevealLayerSourceinProject",
    "2518": "AddKeyframe",
    "2519": "PreviousKeyframe",
    "2520": "NextKeyframe",
    "2521": "Reset",
    "2522": "RevealLayerinProjectFlowchartView",
    "2523": "OpenLayerSourceWindow",
    "2524": "HideLockedMasks",
    "2536": "RevealinTimeline",
    "2537": "DeleteThisMarker",
    "2538": "DeleteAllMarkers",
    "2539": "UpdateMarkersFromSource",
    "2541": "3DLayer",
    "2552": "AdobeDynamicLink",
    "2553": "NewPremiereProSequence",
    "2554": "ImportPremiereProSequence",
    "2557": "Shutter180Phase0",
    "2558": "Shutter360Phase0",
    "2559": "Shutter90Phase0",
    "2560": "Shutter180Phase180",
    "2561": "Shutter720Phase360",
    "2563": "Light",
    "2564": "Camera",
    "2565": "LockMarkers",
    "2566": "Solo",
    "2567": "Settings",
    "2568": "Track2DMotion",
    "2605": "Reset",
    "2606": "New",
    "2607": "Find",
    "2611": "ProjectSettings",
    "2613": "LiftWorkArea",
    "2614": "ExtractWorkArea",
    "2623": "Orientation",
    "2624": "Assign3DViewShortcut",
    "2625": "Switch3DView",
    "2626": "A",
    "2627": "B",
    "2628": "C",
    "2641": "EditValue",
    "2642": "Reset3DView",
    "2643": "TrackthisProperty",
    "2701": "SetKeyframe",
    "2702": "AddExpression",
    "2703": "SwitchtoLast3DView",
    "2704": "VideoPreview",
    "2705": "Previews",
    "2710": "ActiveCamera",
    "2711": "Front",
    "2712": "Left",
    "2713": "Top",
    "2714": "Back",
    "2715": "Right",
    "2716": "Bottom",
    "2717": "CustomView1",
    "2718": "CustomView2",
    "2719": "CustomView3",
    "2731": "RevealExpressionErrors",
    "2732": "FittoCompWidth",
    "2733": "FittoCompHeight",
    "2735": "ReduceProject",
    "2736": "MaskExpansion",
    "2738": "Workspace",
    "2739": "SaveWorkspace",
    "2767": "NullObject",
    "2768": "SetFirstVertex",
    "2769": "Custom",
    "2771": "RevealAllModifiedProperties",
    "2776": "ViewOptions",
    "2777": "CreateProxy",
    "2778": "Still",
    "2779": "Movie",
    "2780": "Prerender",
    "2781": "NextBlendingMode",
    "2782": "PreviousBlendingMode",
    "2792": "Rotation",
    "2797": "MotionBlur",
    "2798": "SameAsLayer",
    "2799": "On",
    "2800": "Off",
    "2824": "OneCompView",
    "2825": "TwoCompViews",
    "2826": "FourCompViews",
    "2834": "LookatSelectedLayers",
    "2835": "LookatAllLayers",
    "2836": "Text",
    "2933": "CreateOutlineMasks",
    "2934": "SelectEqualKeyframes",
    "2995": "History",
    "2997": "CropComptoRegionofInterest",
    "3013": "ShowTextPanels",
    "3016": "Property",
    "3017": "Selector",
    "3018": "DeleteBrush",
    "3019": "AnchorPoint",
    "3020": "Position",
    "3021": "Scale",
    "3022": "Skew",
    "3023": "Rotation",
    "3024": "StrokeWidth",
    "3025": "Tracking",
    "3026": "LineAnchor",
    "3027": "CharacterOffset",
    "3028": "CharacterValue",
    "3029": "RGB",
    "3030": "Hue",
    "3031": "Saturation",
    "3032": "Brightness",
    "3033": "Opacity",
    "3034": "RGB",
    "3035": "Hue",
    "3036": "Saturation",
    "3037": "Brightness",
    "3038": "Opacity",
    "3039": "FillColor",
    "3040": "StrokeColor",
    "3041": "Wiggly",
    "3042": "Opacity",
    "3043": "LineSpacing",
    "3044": "Autotrace",
    "3052": "AllTransformProperties",
    "3053": "RotoBezier",
    "3058": "RemoveAllTextAnimators",
    "3063": "Expression",
    "3064": "ConvertShape",
    "3065": "Horizontal",
    "3066": "Vertical",
    "3070": "WithLayeredComp",
    "3071": "UserInterfaceColors",
    "3072": "SelectPreviousKeyframes",
    "3073": "SelectFollowingKeyframes",
    "3075": "SaveAnimationPreset",
    "3081": "GuideLayer",
    "3088": "IncrementandSave",
    "3122": "AutoSave",
    "3124": "MemoryMultiprocessing",
    "3125": "AudioHardware",
    "3126": "AudioOutputMapping",
    "3129": "NewProject",
    "3130": "Type",
    "3131": "ScriptsExpressions",
    "3147": "AdobePhotoshopFile",
    "3148": "AdobePhotoshopFile",
    "3153": "RoveAcrossTime",
    "3154": "CloseProject",
    "3155": "Time",
    "3565": "NewWorkspace",
    "3566": "ResetWorkspace",
    "3689": "Browse",
    "3690": "RevealinBridge",
    "3691": "BrowsePresets",
    "3695": "FreezeFrame",
    "3696": "RevealCompInPW",
    "3697": "EditinAdobeAudition",
    "3698": "Blur",
    "3700": "NewViewer",
    "3703": "SimulateOutput",
    "3704": "UseDisplayColorManagement",
    "3705": "NoOutputSimulation",
    "3706": "Kodak5218toKodak2383",
    "3707": "AssignWorkspaceShortcut",
    "3708": "A",
    "3709": "B",
    "3710": "C",
    "3734": "OpenEffectControls",
    "3736": "ShapeLayer",
    "3737": "EnablePercharacter3D",
    "3739": "LayerStyles",
    "3745": "MaskandShapePath",
    "3754": "HDTVRec709",
    "3755": "SDTVNTSC",
    "3756": "SDTVPAL",
    "3757": "MacintoshRGB",
    "3758": "WindowsRGB",
    "3759": "MyCustomRGB",
    "3760": "Custom",
    "3764": "SeparateDimensions",
    "3766": "FlipHorizontal",
    "3767": "FlipVertical",
    "3781": "CreateOutlineShape",
    "3784": "OpenLayerWindow",
    "3785": "SaveAsXML",
    "3791": "UpgradeProjectPARsToCS4",
    "3792": "OpenMiniFlowPopup",
    "3798": "Arrange",
    "3799": "ConvertToEditable",
    "3800": "AddToAMERenderQueue",
    "3814": "UCFtoKodak2383",
    "3819": "CenterInView",
    "3840": "SaveAs",
    "3841": "SaveAsCSPrevious1",
    "3842": "Camera",
    "3972": "EnvironLayer",
    "3973": "CreateFootageOutlines",
    "3983": "Track3DCameraMotion",
    "3984": "AddtoRenderQueue",
    "3986": "WarpStabilizer",
    "3987": "FeatherFalloff",
    "3988": "Smooth",
    "3989": "Linear",
    "3991": "FeatherHold",
    "3992": "FeatherEditTension",
    "3993": "FeatherEditExtent",
    "3999": "GoToKeyframeTime",
    "4008": "Cinema4DFile",
    "4011": "RevealPropertiesWithAnimation",
    "4015": "EnableAutoStopwatch",
    "4016": "Extensions",
    "4017": "AddFontsFromAdobe",
    "4018": "FindExtensions",
    "4021": "Brainstorm",
    "4022": "ImportCCLibraries",
    "4023": "EditWorkspace",
    "4027": "FreezeOnLastFrame",
    "4036": "CreateDataFootageLayerKeyframes",
    "4042": "AddPropToCapsules",
    "4043": "Reveal",
    "4044": "Create",
    "4045": "TrackAndStabilize",
    "4046": "Open",
    "4048": "SaveAsCC14",
    "4049": "CAFillLayer",
    "4150": "TaffyTimeHeir",
    "4151": "CreateIntro",
    "4152": "CreateOutro",
    "4153": "CreateProtectedRegion",
    "4154": "EnableProtectedRegion",
    "4158": "ImportGuides",
    "4159": "ExportGuides",
    "10200": "AllMemoryDiskCache",
    "10205": "AddToAMERenderQueue",
    "10207": "Bilinear",
    "10208": "Bicubic",
    "10305": "UserProfile",
    "10307": "UserProfile",
    "10310": "Copy",
    "10311": "TrackMask",
    "10312": "CenterAnchor",
    "10313": "Copy",
    "10314": "PlayPreview",
    "10420": "LicenseFootage",
    "10426": "KSV",
    "10450": "EnableExpressions",
    "10451": "DisableExpressions",
    "10502": "GenerateLayerMarkersFromAudioBeats",
    "10503": "GenerateLayerMarkersFromAudioEvents",
    "10504": "SyncPropertyToAudioBeats",
    "": "MacAppMenu"
}