Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How do i rename an ‘ADBE Angle Control-0001’?

  • How do i rename an ‘ADBE Angle Control-0001’?

    Posted by Yuriy Gapon on February 12, 2015 at 7:12 pm

    Hi,guys,

    1.I created an angle control object & renamed it OK,but when try to rename the actual angle control within it,it gives me an error.Anybody know why?
    var fxAngle = dollyNull.Effects.addProperty(‘ADBE Angle Control’);
    fxAngle.name = “Dolly XYZ Rotation”;
    fxAngle.property(String(‘ADBE Angle Control-0001’)).name = “X Rotation”;

    2.Creating one angle control within an angle object is OK,but not more.When I try to create another one,I have an error “null is not an object”.Is there a way around?
    var fxAngle = dollyNull.Effects.addProperty(‘ADBE Angle Control’);
    fxAngle.property(String(‘ADBE Angle Control-0001’)).setValue([0]);
    fxAngle.property(String(‘ADBE Angle Control-0002’)).setValue([0]);

    Yuriy Gapon replied 11 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    February 12, 2015 at 8:05 pm

    You can’t rename the control itself (even in AE’s UI).

    You can’t add a second control to an Angle Control Effect. You can do something like that (more than one control per effect) with psuedo effects, but that’s another story altogether.

    Dan

  • Yuriy Gapon

    February 14, 2015 at 12:34 pm

    Thanks,Dan. Do you know what language AE effects are created in,by any chance? Because in the effects there`re different combinations of whatever the programmer needs,without any restrictions of the AE scripting,it seems.

  • Dan Ebberts

    February 14, 2015 at 3:22 pm

    To write a plugin/effect, you would use C++ and the place to start would be with the AE SDK. Not to discourage you, but the learning curve is much steeper for plugins than it is for scripting, although if all you’re going to do is create a set of controls, it won’t be as bad.

    Dan

  • Yuriy Gapon

    February 14, 2015 at 3:59 pm

    Thanks,Dan.A pseudoeffect would be absolutely OK for the time being,as I`m only creating a camera rig and I found a great tut on that here:
    https://library.creativecow.net/articles/toula_jesse/AE-Pseudo-Effects/video-tutorial

    Moreover,I even created the control I need here:
    https://www.batchframe.com/custom_controls/

    and copied the code,so it should work just fine:

    Then I called it like so:
    app.project.activeItem.layer(1).effect.addProperty(“Dolly XYZ Rotation”);

    but it gives me an error:
    After Effects Error: Can not add a property with name “Dolly XYZ Rotation” To this Property Group“.
    Do you have an idea what`s wrong,Dan?

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