Highlighted

ExtendScript for VR Comps in After Effects

New Here ,
May 26, 2020

Copy link to clipboard

Copied

Hi there,

I was wondering if there is any additional documentation/resources to using ExtendScript for VR comps for adding my own trackpoints, solids etc. and camera movement to be able to create 360° 3D scene.

 

I found this on http://docs.aenhancers.com/general/project/

// Create a 360 VR comp from a footage item or comp selected in the Project panel.

var item = app.project.activeItem;

if (item != null && (item.typeName == "Footage" || item.typeName == "Composition")) {

    // Create a comp with the footage.
    var comp = app.project.items.addComp(item.name, item.width, item.height, item.pixelAspect, item.duration, item.frameRate);
    var layers = comp.layers;
    var footageLayer = layers.add(item);

    //Apply the CC Environment effect and create a camera.
    var effect = footageLayer.Effects.addProperty("CC Environment");
    var camera = layers.addCamera("360 Camera", [item.width/2, item.height/2]);
    comp.openInViewer(); app.project.toolType = ToolType.Tool_CameraMaya;
}
else {
    alert("Select a single footage item or composition in the Project panel.");
}

Thank you very much for any help and guidance!

TOPICS
Scripting

Views

117

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

ExtendScript for VR Comps in After Effects

New Here ,
May 26, 2020

Copy link to clipboard

Copied

Hi there,

I was wondering if there is any additional documentation/resources to using ExtendScript for VR comps for adding my own trackpoints, solids etc. and camera movement to be able to create 360° 3D scene.

 

I found this on http://docs.aenhancers.com/general/project/

// Create a 360 VR comp from a footage item or comp selected in the Project panel.

var item = app.project.activeItem;

if (item != null && (item.typeName == "Footage" || item.typeName == "Composition")) {

    // Create a comp with the footage.
    var comp = app.project.items.addComp(item.name, item.width, item.height, item.pixelAspect, item.duration, item.frameRate);
    var layers = comp.layers;
    var footageLayer = layers.add(item);

    //Apply the CC Environment effect and create a camera.
    var effect = footageLayer.Effects.addProperty("CC Environment");
    var camera = layers.addCamera("360 Camera", [item.width/2, item.height/2]);
    comp.openInViewer(); app.project.toolType = ToolType.Tool_CameraMaya;
}
else {
    alert("Select a single footage item or composition in the Project panel.");
}

Thank you very much for any help and guidance!

TOPICS
Scripting

Views

118

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 26, 2020 0

Have something to add?

Join the conversation