Skip to content

Instantly share code, notes, and snippets.

@zlovatt
Last active January 8, 2023 00:04
Show Gist options
  • Save zlovatt/58c7a50805d509bf9e07b021234ae70a to your computer and use it in GitHub Desktop.
Save zlovatt/58c7a50805d509bf9e07b021234ae70a to your computer and use it in GitHub Desktop.
Extendscript: AE enum values (17.7)
(function () {
var allEnums = {
AlphaMode: {},
AutoOrientType: {},
BlendingMode: {},
ChannelType: {},
CloseOptions: {},
FastPreviewType: {},
FeetFramesFilmType: {},
FieldSeparationType: {},
FillLightingCorrectionType: {},
FillMethodType: {},
FillOutputDepthType: {},
FillRangeType: {},
FootageTimecodeDisplayStartType: {},
FrameBlendingType: {},
FramesCountType: {},
GetSettingsFormat: {},
GpuAccelType: {},
ImportAsType: {},
KeyframeInterpolationType: {},
Language: {},
LayerQuality: {},
LayerSamplingQuality: {},
LightType: {},
LogType: {},
LoopMode: {},
MaskFeatherFalloff: {},
MaskMode: {},
MaskMotionBlur: {},
ParagraphJustification: {},
PlayMode: {},
PostRenderAction: {},
PREFType: {},
ProjectThread: {},
PropertyType: {},
PropertyValueType: {},
PulldownMethod: {},
PulldownPhase: {},
PurgeTarget: {},
ResolveType: {},
RQItemStatus: {},
TimeDisplayType: {},
ToolType: {},
TrackMatteType: {},
ViewerType: {}
};
for (var enumSet in allEnums) {
if (!allEnums.hasOwnProperty(enumSet)) {
continue;
}
var thisEnumVals = $.global[enumSet];
var enumSetVals = allEnums[enumSet];
for (var enumSetKey in thisEnumVals) {
if (!thisEnumVals.hasOwnProperty(enumSetKey)) {
continue;
}
enumSetVals[enumSetKey] = thisEnumVals[enumSetKey];
}
}
$.writeln(JSON.stringify(allEnums, undefined, 2));
})();
{
"AlphaMode": {
"IGNORE": 5413,
"PREMULTIPLIED": 5414,
"STRAIGHT": 5412
},
"AutoOrientType": {
"ALONG_PATH": 4213,
"CAMERA_OR_POINT_OF_INTEREST": 4214,
"CHARACTERS_TOWARD_CAMERA": 4215,
"NO_AUTO_ORIENT": 4212
},
"BlendingMode": {
"ADD": 5220,
"ALPHA_ADD": 5244,
"CLASSIC_COLOR_BURN": 5219,
"CLASSIC_COLOR_DODGE": 5225,
"CLASSIC_DIFFERENCE": 5234,
"COLOR": 5238,
"COLOR_BURN": 5218,
"COLOR_DODGE": 5224,
"DANCING_DISSOLVE": 5214,
"DARKEN": 5215,
"DARKER_COLOR": 5247,
"DIFFERENCE": 5233,
"DISSOLVE": 5213,
"DIVIDE": 5249,
"EXCLUSION": 5235,
"HARD_LIGHT": 5228,
"HARD_MIX": 5232,
"HUE": 5236,
"LIGHTEN": 5221,
"LIGHTER_COLOR": 5246,
"LINEAR_BURN": 5217,
"LINEAR_DODGE": 5223,
"LINEAR_LIGHT": 5229,
"LUMINESCENT_PREMUL": 5245,
"LUMINOSITY": 5239,
"MULTIPLY": 5216,
"NORMAL": 5212,
"OVERLAY": 5226,
"PIN_LIGHT": 5231,
"SATURATION": 5237,
"SCREEN": 5222,
"SILHOUETE_ALPHA": 5242,
"SILHOUETTE_LUMA": 5243,
"SOFT_LIGHT": 5227,
"STENCIL_ALPHA": 5240,
"STENCIL_LUMA": 5241,
"SUBTRACT": 5248,
"VIVID_LIGHT": 5230
},
"ChannelType": {
"CHANNEL_ALPHA": 7816,
"CHANNEL_ALPHA_BOUNDARY": 7822,
"CHANNEL_ALPHA_OVERLAY": 7821,
"CHANNEL_BLUE": 7815,
"CHANNEL_BLUE_COLORIZE": 7819,
"CHANNEL_GREEN": 7814,
"CHANNEL_GREEN_COLORIZE": 7818,
"CHANNEL_RED": 7813,
"CHANNEL_RED_COLORIZE": 7817,
"CHANNEL_RGB": 7812,
"CHANNEL_RGB_STRAIGHT": 7820
},
"CloseOptions": {
"DO_NOT_SAVE_CHANGES": 1212,
"PROMPT_TO_SAVE_CHANGES": 1213,
"SAVE_CHANGES": 1214
},
"FastPreviewType": {
"FP_ADAPTIVE_RESOLUTION": 8013,
"FP_DRAFT": 8014,
"FP_FAST_DRAFT": 8015,
"FP_OFF": 8012,
"FP_WIREFRAME": 8016
},
"FeetFramesFilmType": {
"MM16": 2412,
"MM35": 2413
},
"FieldSeparationType": {
"LOWER_FIELD_FIRST": 5614,
"OFF": 5613,
"UPPER_FIELD_FIRST": 5612
},
"FillLightingCorrectionType": {
"LightingCorrection_MODERATE": 9814,
"LightingCorrection_NONE": 9812,
"LightingCorrection_STRONG": 9815,
"LightingCorrection_SUBTLE": 9813
},
"FillMethodType": {
"Method_EDGEBLEND": 9414,
"Method_OBJECT": 9412,
"Method_SURFACE": 9413
},
"FillOutputDepthType": {
"OutputDepth_EIGHT": 9613,
"OutputDepth_FLOAT": 9615,
"OutputDepth_PROJECT": 9612,
"OutputDepth_SIXTEEN": 9614
},
"FillRangeType": {
"Range_ENTIRE": 9212,
"Range_WORKAREA": 9213
},
"FootageTimecodeDisplayStartType": {
"FTCS_START_0": 2213,
"FTCS_USE_SOURCE_MEDIA": 2212
},
"FrameBlendingType": {
"FRAME_MIX": 4013,
"NO_FRAME_BLEND": 4012,
"PIXEL_MOTION": 4014
},
"FramesCountType": {
"FC_START_0": 2612,
"FC_START_1": 2613,
"FC_TIMECODE_CONVERSION": 2614
},
"GetSettingsFormat": {
"NUMBER": 3413,
"NUMBER_SETTABLE": 3414,
"SPEC": 3412,
"STRING": 3415,
"STRING_SETTABLE": 3416
},
"GpuAccelType": {
"CUDA": 1813,
"METAL": 1814,
"OPENCL": 1812,
"SOFTWARE": 1816,
"VULKAN": 1815
},
"ImportAsType": {
"COMP": 3814,
"COMP_CROPPED_LAYERS": 3812,
"FOOTAGE": 3813,
"PROJECT": 3815
},
"KeyframeInterpolationType": {
"BEZIER": 6613,
"HOLD": 6614,
"LINEAR": 6612
},
"Language": {
"CHINESE": 1619,
"ENGLISH": 1612,
"FRENCH": 1615,
"GERMAN": 1614,
"ITALIAN": 1616,
"JAPANESE": 1613,
"KOREAN": 1618,
"PORTUGUESE": 1621,
"RUSSIAN": 1620,
"SPANISH": 1617
},
"LayerQuality": {
"BEST": 4614,
"DRAFT": 4613,
"WIREFRAME": 4612
},
"LayerSamplingQuality": {
"BICUBIC": 4813,
"BILINEAR": 4812
},
"LightType": {
"AMBIENT": 4415,
"PARALLEL": 4412,
"POINT": 4414,
"SPOT": 4413
},
"LogType": {
"ERRORS_AND_PER_FRAME_INFO": 3214,
"ERRORS_AND_SETTINGS": 3213,
"ERRORS_ONLY": 3212
},
"LoopMode": {
"LOOP": 8412,
"PING_PONG": 8414,
"PLAY_ONCE": 8413
},
"MaskFeatherFalloff": {
"FFO_LINEAR": 7213,
"FFO_SMOOTH": 7212
},
"MaskMode": {
"ADD": 6813,
"DARKEN": 6817,
"DIFFERENCE": 6818,
"INTERSECT": 6815,
"LIGHTEN": 6816,
"NONE": 6812,
"SUBTRACT": 6814
},
"MaskMotionBlur": {
"OFF": 7014,
"ON": 7013,
"SAME_AS_LAYER": 7012
},
"ParagraphJustification": {
"CENTER_JUSTIFY": 7415,
"FULL_JUSTIFY_LASTLINE_CENTER": 7418,
"FULL_JUSTIFY_LASTLINE_FULL": 7419,
"FULL_JUSTIFY_LASTLINE_LEFT": 7416,
"FULL_JUSTIFY_LASTLINE_RIGHT": 7417,
"LEFT_JUSTIFY": 7413,
"MULTIPLE_JUSTIFICATIONS": 7412,
"RIGHT_JUSTIFY": 7414
},
"PlayMode": {
"RAM_PREVIEW": 8213,
"SPACEBAR": 8212
},
"PostRenderAction": {
"IMPORT": 3613,
"IMPORT_AND_REPLACE_USAGE": 3614,
"NONE": 3612,
"SET_PROXY": 3615
},
"PREFType": {
"PREF_Type_MACHINE_INDEPENDENT": 8813,
"PREF_Type_MACHINE_INDEPENDENT_COMPOSITION": 8816,
"PREF_Type_MACHINE_INDEPENDENT_OUTPUT": 8815,
"PREF_Type_MACHINE_INDEPENDENT_RENDER": 8814,
"PREF_Type_MACHINE_SPECIFIC": 8812,
"PREF_Type_MACHINE_SPECIFIC_PAINT": 8818,
"PREF_Type_MACHINE_SPECIFIC_TEXT": 8817
},
"ProjectThread": {
"MainThread": 2812,
"RQThread": 2813,
"WorkQueueThread": 2814
},
"PropertyType": {
"INDEXED_GROUP": 6214,
"NAMED_GROUP": 6213,
"PROPERTY": 6212
},
"PropertyValueType": {
"COLOR": 6418,
"CUSTOM_VALUE": 6419,
"LAYER_INDEX": 6421,
"MARKER": 6420,
"MASK_INDEX": 6422,
"NO_VALUE": 6412,
"OneD": 6417,
"SHAPE": 6423,
"TEXT_DOCUMENT": 6424,
"ThreeD": 6414,
"ThreeD_SPATIAL": 6413,
"TwoD": 6416,
"TwoD_SPATIAL": 6415
},
"PulldownMethod": {
"ADVANCE_24P": 6013,
"PULLDOWN_3_2": 6012
},
"PulldownPhase": {
"OFF": 5813,
"SSWWW": 5814,
"SWWWS": 5815,
"SWWWW_24P_ADVANCE": 5821,
"WSSWW": 5812,
"WSWWW_24P_ADVANCE": 5820,
"WWSSW": 5817,
"WWSWW_24P_ADVANCE": 5819,
"WWWSS": 5816,
"WWWSW_24P_ADVANCE": 5818,
"WWWWS_24P_ADVANCE": 5822
},
"PurgeTarget": {
"ALL_CACHES": 1412,
"IMAGE_CACHES": 1415,
"SNAPSHOT_CACHES": 1414,
"UNDO_CACHES": 1413
},
"ResolveType": {
"ACCEPT_THEIRS": 8612,
"ACCEPT_THEIRS_AND_COPY": 8613,
"ACCEPT_YOURS": 8614
},
"RQItemStatus": {
"DONE": 3019,
"ERR_STOPPED": 3018,
"NEEDS_OUTPUT": 3013,
"QUEUED": 3015,
"RENDERING": 3016,
"UNQUEUED": 3014,
"USER_STOPPED": 3017,
"WILL_CONTINUE": 3012
},
"TimeDisplayType": {
"FRAMES": 2013,
"TIMECODE": 2012
},
"ToolType": {
"Tool_Arrow": 9012,
"Tool_CameraDollyCamera": 9017,
"Tool_CameraDollyToCursor": 9048,
"Tool_CameraDollyTowardsCursor": 9047,
"Tool_CameraMaya": 9014,
"Tool_CameraOrbit": 9015,
"Tool_CameraOrbitCamera": 9015,
"Tool_CameraOrbitCursor": 9044,
"Tool_CameraOrbitScene": 9045,
"Tool_CameraPanCamera": 9016,
"Tool_CameraPanCursor": 9046,
"Tool_CameraTrackXY": 9016,
"Tool_CameraTrackZ": 9017,
"Tool_CloneStamp": 9019,
"Tool_Eraser": 9020,
"Tool_Feather": 9032,
"Tool_Hairbrush": 9042,
"Tool_Hand": 9021,
"Tool_Magnify": 9022,
"Tool_Oval": 9026,
"Tool_Paintbrush": 9018,
"Tool_PanBehind": 9023,
"Tool_Pen": 9031,
"Tool_PenConvert": 9035,
"Tool_PenMinus": 9034,
"Tool_PenPlus": 9033,
"Tool_Pin": 9036,
"Tool_PinAdvanced": 9043,
"Tool_PinBend": 9038,
"Tool_PinDepth": 9040,
"Tool_PinStarch": 9037,
"Tool_Polygon": 9027,
"Tool_Quickselect": 9041,
"Tool_Rect": 9024,
"Tool_Rotate": 9013,
"Tool_RoundedRect": 9025,
"Tool_Star": 9028,
"Tool_TextH": 9029,
"Tool_TextV": 9030
},
"TrackMatteType": {
"ALPHA": 5013,
"ALPHA_INVERTED": 5014,
"LUMA": 5015,
"LUMA_INVERTED": 5016,
"NO_TRACK_MATTE": 5012
},
"ViewerType": {
"VIEWER_COMPOSITION": 7612,
"VIEWER_FOOTAGE": 7614,
"VIEWER_LAYER": 7613
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment