Forum Replies Created

  • Mattias Svendsen

    September 28, 2011 at 11:55 am in reply to: How do I add an Ellipse shape to a Comp with script?

    Gimme Prop Path should be a permanent part of After Effects! Thanks for pointing out this invaluable tool for scripters 🙂

  • Mattias Svendsen

    September 28, 2011 at 9:37 am in reply to: How do I add an Ellipse shape to a Comp with script?

    Excellent! Exactly what i needed to know. Thank you, Dan.

    Is there any official information about the property ADBE Root Vector Groups? Google returns only one hit. The aftereffectscs3_scripting_guide.pdf mentions it tangentially as “This is the same as using a shape tool in “Tool Creates Shape” mode. Tools automatically add a vector group that includes Fill and Stroke as specified in the tool options.” This is all i’ve found. How did you learn of it?

    I need several rings so this is what i use. I’ll wrap it in a function later.
    var myEllipseSize = [70,70];
    var myStrokeWidth = [4];
    var myStrokeColor = [1, 0, 0];

    var shapeLayer2 = compShot.layers.addShape();
    var shapeLayer2Contents = shapeLayer2.property("ADBE Root Vectors Group");

    var myShapeGroup = shapeLayer2Contents.addProperty("ADBE Vector Group");
    var myEllipse = myShapeGroup.property("ADBE Vectors Group").addProperty("ADBE Vector Shape - Ellipse");
    myEllipse.property("ADBE Vector Ellipse Size").setValue(myEllipseSize);
    var myShapeStroke = myShapeGroup.property("ADBE Vectors Group").addProperty("ADBE Vector Graphic - Stroke");
    myShapeStroke.property("ADBE Vector Stroke Width").setValue(myStrokeWidth);
    myShapeStroke.property("ADBE Vector Stroke Color").setValue(myStrokeColor);

    var myShapeGroup = shapeLayer2Contents.addProperty("ADBE Vector Group");
    var myEllipse = myShapeGroup.property("ADBE Vectors Group").addProperty("ADBE Vector Shape - Ellipse");
    myEllipse.property("ADBE Vector Ellipse Size").setValue(myEllipseSize);
    var myShapeStroke = myShapeGroup.property("ADBE Vectors Group").addProperty("ADBE Vector Graphic - Stroke");
    myShapeStroke.property("ADBE Vector Stroke Width").setValue(myStrokeWidth);
    myShapeStroke.property("ADBE Vector Stroke Color").setValue(myStrokeColor);

    Keywords: Create Add ADBE Vector Ellipse Graphic Shape Group Stroke addProperty Script

  • Mattias Svendsen

    September 27, 2011 at 7:42 am in reply to: How do I add Layer Styles to a Layer with script?

    Thank you for responding Dan. Seriously Adobe, what the… Im from a maya scripting background and the lack of support in after effects scripting is unprofessional. Im used to deep diving into stuff but Ive been at it for a week and find it rather hard to get into it, not because its tough to program, but the lack of information. (Rant over)

    I worked around not being able to use Layer Style/Stroke with

    var linearWipe = item.layers[1]("Effects").addProperty("Linear Wipe");
    var solidComposite = item.layers[1]("Effects").addProperty("Solid Composite");
    var miniMax = item.layers[1]("Effects").addProperty("Minimax");
    var levels = item.layers[1]("Effects").addProperty("Levels");

    and then oversizing a precomp to get rid of edge artifacts.

    https://forums.creativecow.net/thread/227/13825#13829
    Thank you Filip Vandueren!

  • Mattias Svendsen

    September 23, 2011 at 1:53 pm in reply to: How do I add Layer Styles to a Layer with script?

    Syntax:
    shapeLayer1(“Effects”).addProperty(“Grow Bounds”);
    Works

    shapeLayer1(“Layer Styles”).addProperty(“Stroke”);
    Doesn’t work

    Extendscript reports:
    After Effects error: Can not add a property with name “Stroke” to this …tyGroup is neither an INDEXED_GROUP nor a text animator prperty group.

    ? Any hints anyone?

  • Mattias Svendsen

    September 20, 2011 at 3:31 pm in reply to: Scripting: Create a Comp in a Comp

    I apologize for not being more clear in what i need to do. I’m creating jsx templates that can be used for hundreds of projects. The jsx will be created with Python and each base template will be populated with file data. So i really need to do it with scripting.

  • Excellent idea. No need for scale even, it works directly on the Comp with wipe on. Simple but the best solutions often are. Some minor draw error at frame edge when using linear wipe in an angle but nothing that will distract.

    Thank you Roland.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy