Forum Replies Created

Page 32 of 277
  • Hi There,

    it happens because you multiply by time, at the beginning time=0, so everything is [0,0].

    You will probably need a random x,y position AND an random x,y velocity.

    or multiply by (-time-1)

  • Filip Vandueren

    July 8, 2022 at 9:21 am in reply to: Text string problems

    Try changing the last line of the sourceText expression to this:

    string = A1 + ” ” + A2 + “E ” + A3 + “%”+”, “+ B1 + ” ” + B2 + “E ” + B3 + “% “;

    (just an extra space after the percentage)

    The textanimator-code is looking for the end of a word by looking for a space, but the string just ended with a percentage.

  • Filip Vandueren

    July 1, 2022 at 3:21 pm in reply to: merging text paths

    You can animate the shape of the path, usually that should provide plenty of options to achieve the effect you need.

  • That’s great. I don’t script often and have always missed this. Thanks Dan.

  • Hi Emre,

    to my knowledge it’s still not possible to create textbox-textlayers via scripting, only paragraph text.

    You can only check if a textlayer is a text-box and get its dimensions/position, not set the properties.

    https://www.youtube.com/watch?v=6P76aFYmOR8

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • I’ve tried to replicate the error, but it works for me.

    Try adding .value after each (“Slider”) to explicitly get the number ?

    and maybe also Math.round(…(“Slider”).value) to make sure it’s an integer ?

  • Can yo check if the tsv file is a clean txt file without any other formatting/metadata ?

    The error seems to suggest the problem is with the data, not your code.

    Can you see the automatically created data-links when you drop the tsv file into a comp ?

  • Filip Vandueren

    June 21, 2022 at 9:08 am in reply to: Scripting Layer Color

    I think what you need is to change the color of the layer in the timeline is to just set the label:

    app.project.activeItem.layer(index).label = 8; // takes an integer from 0-16 - 0=no label

    You can choose one of the preset color-labels as setup in your preferences, but you cannot change those presets via scripting.

  • Hi Scott, I mean that the corner pin doesn’t have to be exactly the shape that was tracked.

    So for example you can track a circle on a screen, then adjust the corners of the cornerpin to encompass the whole screen, not just the shape of the track.

    It’s covered in most basic Mocha tutorials but it’s unintuitive.

    For example here, starting at 6minutes:

    https://youtu.be/GoUpnqgCrUg

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Filip Vandueren

    June 20, 2022 at 12:53 pm in reply to: After Effects Nulls from Path

    I think I misunderstood, because you used the word “zigzag”, but you didn’t actually add a zigzag modifier ?

    Anyway, I don’t have the problem you do:

    • create a random zig zag shape
    • select the shape Path and run “Create Nulls From Path” -> Points Follow Nulls
    • reposition the Nulls so they now form a straight line.
    • select the Shape again (it now has an expression applied)
    • run “Create Nulls From Path” -> Trace Path
    • The new Null that is created follows the straight line (or whatever I manipulate it in to), not the original zigzag.

    Perhaps your problem can be fixed just by emptying the cache ?

Page 32 of 277

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