dA-tools.com

HOME > AfterFx > Script Labs > Sample Script > obj_summary

Object Summary

  • AfterFx scripting guideからの抜粋で、ver.6.5からCS3までを統合しました。内容は精査していませんのであしからず。
  • scripting guideはオブジェクト別なのでアルファベット順にしました。has##とかset##ってあったはずだけど…ってな時に。
  • [ver]欄はそのバージョンからサポート、空欄はver.6.5です。
Object
Ver
Attribute / Method
return

A:active add apply

Application 7 activate() no return
AVLayer
active boolean
Layer
active boolean
MaskPropertyGroup
active boolean
Property
active boolean
PropertyGroup
active boolean
AVLayer
activeAtTime(float atTime) boolean
Layer
activeAtTime(float atTime) boolean
CompItem
activeCamera Layer
Project
activeItem Item
OMCollection
add() OutputModule
LayerCollection
add(AVItem theItem,[float duration]) AVLayer
RQItemCollection
add(CompItem compToAdd) RenderQueueItem
LayerCollection
addCamera(string name,ArrayOfFloat centerPoint) Layer
ItemCollection
addComp(string name,integer width,integer height,float pixelAspectRatio,float duration,float frameRate) CompItem
ItemCollection 7 addFolder(string name) FolderItem
Property
addKey(float atTime) integer
LayerCollection
addLight(string name,ArrayOfFloat centerPoint) Layer
LayerCollection
addNull([float duration]) AVLayer
AVLayer
addProperty(string propertyName) PropertyBase
Layer
addProperty(string propertyName) PropertyBase
MaskPropertyGroup
addProperty(string propertyName) PropertyBase
PropertyGroup
addProperty(string propertyName) PropertyBase
LayerCollection
addShape() Layer
LayerCollection
addSolid(ArrayOfFloat color,string name,integer width,integer height,float pixelAspectRatio,[float duration]) AVLayer
LayerCollection
addText([TextDocument textDoc]) AVLayer
LayerCollection
addText(string text ) AVLayer
AVLayer
adjustmentLayer boolean
Layer
adjustmentLayer boolean
FileSource
alphaMode AlphaMode
PlaceholderSource
alphaMode AlphaMode
SolidSource
alphaMode AlphaMode
AVLayer 7 applyPreset(string presetName) no return
Layer 7 applyPreset(string presetName) no return
CompItem cs3 applyPreset(string presetName) no return
OutputModule
applyTemplate(string templateName) no return
RenderQueueItem
applyTemplate(string templateName) no return
AVLayer
audioActive boolean
AVLayer
audioActiveAtTime(float atTime) boolean
AVLayer
audioEnabled boolean
Project cs3 autoFixExpressions(oldText,newText) no return
AVLayer cs3 autoOrient AutoOrientType
Layer cs3 autoOrient AutoOrientType

B:begin

Application
beginSuppressDialogs() no return
Application
beginUndoGroup(string undoName) no return
CompItem
bgColor Array of float
Project bitsPerChannel integer
AVLayer
blendingMode BlendingMode
Application
buildName string
Application
buildNumber integer
LayerCollection
byName(string name) Layer

C:can 

AVLayer cs3

calculateTransformFromPoints
(Array[top,left],Array[top,right],Array[bottom,right])

returns Object with
transform properties set
System 7 callSystem(string cmdLineToExectute) outputOfCommandAsString
AVLayer
canAddProperty(string propertyName) boolean
Layer
canAddProperty(string propertyName) boolean
MaskPropertyGroup
canAddProperty(string propertyName) boolean
PropertyGroup
canAddProperty(string propertyName) boolean
Application 7 cancelTask(integer taskID) no return
ImportOptions
canImportAs(ImportAsType asType) boolean
AVLayer
canSetCollapseTransformation boolean
AVLayer
canSetEnabled boolean
Layer
canSetEnabled boolean
MaskPropertyGroup
canSetEnabled boolean
Property
canSetEnabled boolean
PropertyGroup
canSetEnabled boolean
Property 7 canSetExpression boolean
AVLayer
canSetTimeRemapEnabled boolean
Property
canVaryOverTime boolean
MarkerValue
chapter string
Project
close(CloseOptions closeOptions) boolean
Shape
closed boolean
AVLayer
collapseTransformation boolean
MaskPropertyGroup
color Array of float
SolidSource
color Array of float
AVLayer 7 comment string
Layer 7 comment string
CompItem 7 comment string
FolderItem 7 comment string
FootageItem 7 comment string
MarkerValue 7 comment string
RenderQueueItem
comp CompItem
FileSource
conformFrameRate float
PlaceholderSource
conformFrameRate float
SolidSource
conformFrameRate float
Project
consolidateFootage() integer
AVLayer 7 containingComp CompItem
Layer 7 containingComp CompItem
AVLayer
copyToComp(CompItem intoComp) no return
Layer
copyToComp(CompItem intoComp) no return
MarkerValue cs3 cuePointName string

D:display dupulicate

FileSource
displayFrameRate float
PlaceholderSource
displayFrameRate float
SolidSource
displayFrameRate float
Project 7 displayStartFrame integer
CompItem
displayStartTime float
CompItem
draft3d boolean
AVLayer 7 duplicate() AVLayer
Layer
duplicate() CameraLayer
CompItem
duplicate() CompItem
MaskPropertyGroup
duplicate() MaskPropertyGroup
Property
duplicate() Property
PropertyGroup
duplicate() PropertyGroup
RenderQueueItem 7 duplicate() RenderQueueItem
CompItem
duration float
FootageItem
duration float

E:enabled expression

AVLayer
effectsActive boolean
RenderQueueItem
elapsedSeconds float
AVLayer
elided boolean
Layer
elided boolean
MaskPropertyGroup
elided boolean
Property
elided boolean
PropertyGroup
elided boolean
AVLayer
enabled boolean
Layer
enabled boolean
MaskPropertyGroup
enabled boolean
Property
enabled boolean
PropertyGroup
enabled boolean
Application
endSuppressDialogs(boolean showAlert) no return
Application
endUndoGroup() no return
Application
endWatchFolder() no return
MarkerValue cs3 eventCuePoint boolean
Application
exitAfterLaunchAndEval boolean
Application
exitCode integer
Property
expression string
Property
expressionEnabled boolean
Property
expressionError string

F:file frame

FileSource
fieldSeparationType FieldSeparationType
PlaceholderSource
fieldSeparationType FieldSeparationType
SolidSource
fieldSeparationType FieldSeparationType
FileSource
file File
FootageItem
file File
ImportOptions
file File
OutputModule
file File
Project
file File
Application cs3 findMenuCommandId() integer
CompItem
footageMissing boolean
FootageItem
footageMissing boolean
ImportOptions
forceAlphabetical boolean
AVLayer
frameBlending boolean
CompItem
frameBlending boolean
AVLayer cs3 frameBlendingType FrameBlendingType
CompItem
frameDuration float
FootageItem
frameDuration float
CompItem
frameRate float
FootageItem
frameRate float
MarkerValue
frameTarget string

G:get guess

MarkerValue cs3 getParameters() Object with properties set
Settings
getSetting(string sectionName,string sectionKey) string
FileSource
guessAlphaMode() no return
PlaceholderSource
guessAlphaMode() no return
SolidSource
guessAlphaMode() no return
FileSource
guessPulldown(PulldownMethod pulldownMethod) no return
PlaceholderSource
guessPulldown(PulldownMethod pulldownMethod) no return
SolidSource
guessPulldown(PulldownMethod pulldownMethod) no return
AVLayer
guideLayer boolean

H:has 

FileSource
hasAlpha boolean
PlaceholderSource
hasAlpha boolean
SolidSource
hasAlpha boolean
AVLayer
hasAudio boolean
CompItem
hasAudio boolean
FootageItem
hasAudio boolean
Property
hasMax boolean
Property
hasMin boolean
AVLayer
hasTrackMatte boolean
AVLayer
hasVideo boolean
Layer
hasVideo boolean
CompItem
hasVideo boolean
FootageItem
hasVideo boolean
Settings
haveSetting(string sectionName,string sectionKey) boolean
AVLayer
height float
CompItem
height integer
FootageItem
height integer
CompItem
hideShyLayers boolean
FileSource
highQualityFieldSeparation boolean
PlaceholderSource
highQualityFieldSeparation boolean
SolidSource
highQualityFieldSeparation boolean

I:in is item

CompItem
id integer
FolderItem
id integer
FootageItem
id integer
ImportOptions
importAs ImportAsType
Project
importFile(ImportOptions importOptions) Item
Project
importFileWithDialog() ArrayOfItem
Project
importPlaceholder(string itemName,integer itemWidth,integer itemHeight,float frameRate,float duration) FootageItem
AVLayer
index integer
Layer
index integer
KeyframeEase 7 influence float
AVLayer
inPoint float
Layer
inPoint float
Shape
inTangents Array of float[2]
FileSource
invertAlpha boolean
PlaceholderSource
invertAlpha boolean
SolidSource
invertAlpha boolean
MaskPropertyGroup
inverted boolean
AVLayer
isEffect boolean
Layer
isEffect boolean
MaskPropertyGroup
isEffect boolean
Property
isEffect boolean
PropertyGroup
isEffect boolean
Property
isInterpolationTypeValid(KeyframeInterpolationType type) boolean
AVLayer
isMask boolean
Layer
isMask boolean
MaskPropertyGroup
isMask boolean
Property
isMask boolean
PropertyGroup
isMask boolean
AVLayer
isModified boolean
Layer
isModified boolean
MaskPropertyGroup
isModified boolean
Property
isModified boolean
PropertyGroup
isModified boolean
AVLayer
isNameFromSource boolean
AVLayer 7 isNameSet boolean
Layer 7 isNameSet boolean
Application
isProfessionalVersion boolean
Application
isRenderEngine boolean
Property
isSpatial boolean
FileSource
isStill boolean
PlaceholderSource
isStill boolean
SolidSource
isStill boolean
Property
isTimeVarying boolean
AVLayer isTrackMatte boolean
Application
isUISuppressed boolean
Application
isWatchFolder boolean
FolderItem
item(integer itemIndex) Item
Project
item(integer itemIndex) Item
RenderQueue
item(integer itemIndex) RenderQueueItem
FolderItem
items ItemCollection
Project
items ItemCollection
RenderQueue
items RQItemCollection

K:key

Property
keyInInterpolationType(integer keyIndex) KeyframeInterpolationType
Property
keyInSpatialTangent(integer keyIndex) ArrayOfFloat
Property
keyInTemporalEase(integer keyIndex) ArrayOfKeyframeEase
Property
keyOutInterpolationType(integer keyIndex) KeyframeInterpolationType
Property
keyOutSpatialTangent(integer keyIndex) ArrayOfFloat
Property
keyOutTemporalEase(integer keyIndex) ArrayOfKeyframeEase
Property
keyRoving(integer keyIndex) boolean
Property
keySelected(integer keyIndex) boolean
Property
keySpatialAutoBezier(integer keyIndex) boolean
Property
keySpatialContinuous(integer keyIndex) boolean
Property
keyTemporalAutoBezier(integer keyIndex) boolean
Property
keyTemporalContinuous(integer keyIndex) boolean
Property
keyTime(integer keyIndex) float
Property
keyTime(string markerName) float
Property
keyValue(integer keyIndex) type-stored-in-property
Property
keyValue(string markerName) type-stored-in-property

L:layer locked loop

Application
language Language
CompItem
layer(integer layerIndex) Layer
CompItem
layer(Layer otherLayer,integer relativeIndex) Layer
CompItem
layer(string layerName) Layer
CompItem
layers LayerCollection
Project 7 linearBlending boolean
AVLayer
locked boolean
Layer
locked boolean
MaskPropertyGroup
locked boolean
RenderQueueItem
logType LogType
FileSource
loop integer
PlaceholderSource
loop integer
SolidSource
loop integer

M:move 

System
machineName string
FootageItem
mainSource FootageSource
MaskPropertyGroup
maskMode MaskMode
MaskPropertyGroup
maskMotionBlur MaskMotionBlur
AVLayer
matchName string
Layer
matchName string
MaskPropertyGroup
matchName string
Property
matchName string
PropertyGroup
matchName string
Application cs3 memoryInUse number
FileSource 7 missingFootagePath string
AVLayer
motionBlur boolean
CompItem
motionBlur boolean
AVLayer
moveAfter(Layer otherLayer) no return
Layer
moveAfter(Layer otherLayer) no return
AVLayer
moveBefore(Layer otherLayer) no return
Layer
moveBefore(Layer otherLayer) no return
AVLayer
moveTo(integer index) no return
Layer
moveTo(integer index) no return
MaskPropertyGroup
moveTo(integer index) no return
Property
moveTo(integer index) no return
PropertyGroup
moveTo(integer index) no return
AVLayer
moveToBeginning() no return
Layer
moveToBeginning() no return
AVLayer
moveToEnd() no return
Layer
moveToEnd() no return

N:name new num

AVLayer
name string
Layer
name string
CompItem
name string
FolderItem
name string
FootageItem
name string
MaskPropertyGroup
name string
OutputModule
name string
Property
name string
PropertyGroup
name string
FileSource
nativeFrameRate float
PlaceholderSource
nativeFrameRate float
SolidSource
nativeFrameRate float
Property
nearestKeyIndex(float atTime) integer
ImportOptions
new ImportOptions(File fileToImport) ImportOptions
KeyframeEase
new KeyframeEase(float speed,float influence) KeyframeEase
MarkerValue
new MarkerValue(string comment,[string chapter],[string url],[string frameTarget]) MarkerValue
Shape
new Shape() Shape
TextDocument
new TextDocument(string text) TextDocument
Application
newProject() no return
AVLayer
nullLayer boolean
Layer
nullLayer boolean
FolderItem
numItems integer
Project
numItems integer
RenderQueue
numItems integer
Property
numKeys integer
CompItem
numLayers integer
RenderQueueItem
numOutputModules integer
AVLayer
numProperties integer
Layer
numProperties integer
MaskPropertyGroup
numProperties integer
PropertyGroup
numProperties integer

O:on out

Application cs3 onError(string errorString,string severity) no return
RenderQueueItem
onStatusChanged() no return
Application
open([File file]) Project
Application cs3 openTemplate(File fileToOpenWithTemplateSemantics) no return
System
osName string
System
osVersion string
AVLayer
outPoint float
Layer
outPoint float
RenderQueueItem
outputModule(integer outputModuleIndex) OutputModule
RenderQueueItem
outputModules OMCollection
Shape
outTangents Array of float[2]

P:parent pre property

AVLayer
parent Layer
Layer
parent Layer
CompItem
parentFolder FolderItem
FolderItem
parentFolder FolderItem
FootageItem
parentFolder FolderItem
AVLayer
parentProperty PropertyGroup
Layer
parentProperty PropertyGroup
MaskPropertyGroup
parentProperty PropertyGroup
Property
parentProperty PropertyGroup
PropertyGroup
parentProperty PropertyGroup
Application
parseSwatchFile(File swatchFile) SwatchObject
RenderQueue
pauseRendering(boolean doPause) no return
Application cs3 pauseWatchFolder(boolean doPause) no return
CompItem
pixelAspect float
FootageItem
pixelAspect float
OutputModule
postRenderAction PostRenderAction
LayerCollection
precompose(ArrayOfInteger layerIndices,string name,[boolean moveAllAttributes]) CompItem
FileSource
premulColor Array of float
PlaceholderSource
premulColor Array of float
SolidSource
premulColor Array of float
CompItem
preserveNestedFrameRate boolean
CompItem
preserveNestedResolution boolean
AVLayer
preserveTransparency boolean
Application
project Project
AVLayer
property(integer propertyIndex) PropertyBase
Layer
property(integer propertyIndex) PropertyBase
MaskPropertyGroup
property(integer propertyIndex) PropertyBase
PropertyGroup
property(integer propertyIndex) PropertyBase
AVLayer
property(string propertyName) PropertyBase
Layer
property(string propertyName) PropertyBase
MaskPropertyGroup
property(string propertyName) PropertyBase
PropertyGroup
property(string propertyName) PropertyBase
AVLayer
propertyDepth integer
Layer
propertyDepth integer
MaskPropertyGroup
propertyDepth integer
Property
propertyDepth integer
PropertyGroup
propertyDepth integer
AVLayer
propertyGroup([integer countUp]) PropertyGroup
Layer
propertyGroup([integer countUp]) PropertyGroup
MaskPropertyGroup
propertyGroup([integer countUp]) PropertyGroup
Property
propertyGroup([integer countUp]) PropertyGroup
PropertyGroup
propertyGroup([integer countUp]) PropertyGroup
MaskPropertyGroup
propertyIndex integer
Property 7 propertyIndex integer
PropertyGroup
propertyIndex integer
AVLayer
propertyType PropertyType
Layer
propertyType PropertyType
MaskPropertyGroup
propertyType PropertyType
Property
propertyType PropertyType
PropertyGroup
propertyType PropertyType
Property
propertyValueType PropertyValueType
CompItem
proxySource FootageSource
FootageItem
proxySource FootageSource
Application
purge(PurgeTarget target) no return

QR:remove render replace

AVLayer
quality LayerQuality
Application
quit() no return
Project
reduceProject(ArrayOfItem itemsToPreserve) integer
FileSource
reload() no return
AVLayer
remove() no return
Layer
remove() no return
CompItem
remove() no return
FolderItem
remove() no return
FootageItem
remove() no return
MaskPropertyGroup
remove() no return
OutputModule
remove() no return
Property
remove() no return
PropertyGroup
remove() no return
RenderQueueItem
remove() no return
Property
removeKey(integer keyIndex) no return
FileSource
removePulldown PulldownPhase
PlaceholderSource
removePulldown PulldownPhase
SolidSource
removePulldown PulldownPhase
Project
removeUnusedFootage() integer
RenderQueueItem
render boolean
RenderQueue
render() no return
CompItem 7 renderer string
CompItem 7 renderers Array of string
RenderQueue
rendering boolean
Project
renderQueue RenderQueue
FootageItem
replace(File proxyFile) no return
AVLayer cs3 replaceSource(Item newSource,boolean fixExpressions) no return
FootageItem
replaceWithPlaceholder(string name,integer width,integer height,float frameRate,float duration) no return
FootageItem
replaceWithSequence(File proxyFile,boolean forceAlphabetical) no return
FootageItem
replaceWithSolid(ArrayOfFloat color,string name,integer width,integer height,float pixelAspecRatio) no return
CompItem resolutionFactor Array of integer
Project
rootFolder FolderItem
MaskPropertyGroup
rotoBezier boolean

S:save select set 

Project
save(File toFile) boolean
OutputModule
saveAsTemplate(string templateName) no return
RenderQueueItem
saveAsTemplate(string templateName) no return
Application 7 saveProjectOnCrash boolean
Settings
saveSetting(string sectionName,string sectionKey,string newValue) no return
Project
saveWithDialog() boolean
Application 7 scheduleTask(stringToExecute,float delay,boolean repeat) taskID
AVLayer
selected boolean
Layer
selected boolean
CompItem
selected boolean
FolderItem
selected boolean
FootageItem
selected boolean
MaskPropertyGroup
selected boolean
Property
selected boolean
PropertyGroup
selected boolean
Property
selectedKeys Array of integer
CompItem
selectedLayers Array of Layer
AVLayer
selectedProperties Array of PropertyBase
Layer
selectedProperties Array of PropertyBase
CompItem
selectedProperties Array of PropertyBase
Project
selection Array of Item
ImportOptions
sequence boolean
Property
setInterpolationTypeAtKey(integer keyIndex,KeyframeInterpolationTypeinType,[KeyframeInterpolationType outType]) no return
Application 7 setMemoryUsageLimits(float imageCachePercent,float maximumMemoryPercent) no return
MarkerValue cs3 setParameters(Object keyValuePairs) no return
AVLayer
setParentWithJump(Layer newParent) no return
Layer
setParentWithJump(Layer newParent) no return
CompItem
setProxy(File proxyFile) no return
FootageItem
setProxy(File proxyFile) no return
CompItem
setProxyToNone() no return
FootageItem
setProxyToNone() no return
CompItem
setProxyWithPlaceholder(string name,integer width,integer height,float frameRate,float duration) no return
FootageItem
setProxyWithPlaceholder(string name,integer width,integer height,float frameRate,float duration) no return
CompItem
setProxyWithSequence(File proxyFile,boolean forceAlphabetical) no return
FootageItem
setProxyWithSequence(File proxyFile,boolean forceAlphabetical) no return
CompItem
setProxyWithSolid(ArrayOfFloat color,string name,integer width,integer height,float pixelAspecRatio) no return
FootageItem
setProxyWithSolid(ArrayOfFloat color,string name,integer width,integer height,float pixelAspecRatio) no return
Property
setRovingAtKey(integer keyIndex,boolean isRoving) no return
Application
setSavePreferencesOnQuit(boolean doSave) no return
Property
setSelectedAtKey(integer keyIndex,boolean isSelected) no return
Property
setSpatialAutoBezierAtKey(integer keyIndex,boolean isAutoBezier) no return
Property
setSpatialContinuousAtKey(integer keyIndex,boolean isContinuous) no return
Property
setSpatialTangentsAtKey(integer keyIndex,ArrayOfFloat inTangent,[ArrayOfFloat outTangent]) no return
Property
setTemporalAutoBezierAtKey(integer keyIndex,boolean isAutoBezier) no return
Property
setTemporalContinuousAtKey(integer keyIndex,boolean isContinuous) no return
Property
setTemporalEaseAtKey(integer keyIndex,ArrayOfKeyframeEase inEase,[ArrayOfKeyframeEase outEase]) no return
Application
settings Settings
Property
setValue(type-stored-in-property newValue) no return
Property
setValueAtKey(integer keyIndex,type-stored-in-property newValue) no return
Property
setValueAtTime(float atTime,type-stored-in-property newValue) no return
Property
setValuesAtTimes(ArrayOfFloat atTimes,ArrayOf-type-stored-in-property newValues) no return
Project
showWindow(boolean doShow) no return
RenderQueue
showWindow(boolean doShow) no return
CompItem
shutterAngle integer
CompItem
shutterPhase integer
AVLayer
shy boolean
Layer
shy boolean
RenderQueueItem
skipFrames integer
AVLayer
solo boolean
Layer
solo boolean
AVLayer
source AVItem
AVLayer cs3 sourceRectAtTime(float atTime,boolean includeExtents) returns Object with float properties top;left;width;height
KeyframeEase
speed float
AVLayer
startTime float
Layer
startTime float
RenderQueueItem
startTime float
RenderQueueItem
status RQItemStatus
RenderQueue
stopRendering() no return
AVLayer
stretch float
Layer
stretch float

T:time type

OutputModule
templates Array of string
RenderQueueItem
templates Array of string
TextDocument
text string
AVLayer
threeDLayer boolean
AVLayer cs3 threeDPerChar boolean
AVLayer
time float
Layer
time float
CompItem
time float
FootageItem
time float
Project
timecodeBaseType TimecodeBaseType
Project
timecodeDisplayType TimecodeDisplayType
Project
timecodeFilmType TimecodeFilmType
Project
timecodeNTSCDropFrame boolean
AVLayer
timeRemapEnabled boolean
RenderQueueItem
timeSpanDuration float
RenderQueueItem
timeSpanStart float
AVLayer
trackMatteType TrackMatteType
Project
transparencyGridThumbnails boolean
CompItem
typeName string
FolderItem
typeName string
FootageItem
typeName string

UVW:use 

Property
unitsText string
MarkerValue
url string
CompItem
usedIn Array of CompItem
FootageItem
usedIn Array of CompItem
CompItem
useProxy boolean
FootageItem
useProxy boolean
System
userName string
Property
value type-stored-in-property
Property
valueAtTime(float atTime,bool preExpression) type-stored-in-property
Application
version string
Shape
vertices Array of float[2]
Application
watchFolder(File file) no return
AVLayer
width float
CompItem
width integer
FootageItem
width integer
CompItem
workAreaDuration float
CompItem
workAreaStart float

V.7まで X registeredCompany string
V.7まで X registeredName string
V.6.5まで X serialNumber string