Forum Replies Created

Page 4 of 277
  • Filip Vandueren

    August 29, 2023 at 9:45 am in reply to: How to find the selected vertices point?

    Hello Rahadyan,

    I don’t think the selected vertex/vertices is available in scripting. I can’t find it in the official scripting reference.

    If the object .vertices would have been an array of “Vertex” objects, than each of those could have had a “selected” property. But .vertices is just a list of number coordinate-pairs.

    The property .vertices itself also doesn’t have a sub-property like selection / selectedVertices,…

  • Hi Marina,

    The way I would usually do this is to auto-orient the marker-layer towards the camera.

    For the marker to convincingly stick to the surface, it’s distance from the Null should be equal to the CC Sphere’s radius.

    Does that help ?

  • You could round the height so it only works in multiples of the lineheight (leading), that should filter out lower/upper details.

    So if you already have an animation that’s doing the type on, this expression on AnchorPoint works for me:

    sr=sourceRectAtTime();
    st = text.sourceText.style;
    ld = st.autoLeading ? st.fontSize*1.2 : st.leading;
    h = ld* Math.floor(sr.height / ld);
    value+[0,h];

    It doesn’t work if you are mixing different fontsizes/leadings or have extra verticla margins set by paragraphs.

    For those cases a more complicated approach is needed, so let me know if that’s a must.

  • Filip Vandueren

    August 9, 2023 at 6:21 pm in reply to: Two digit expression for days of the month

    Hey Jos,

    I find this method the easiest:

    seconds.toString().padStart(2,”0″);

  • Filip Vandueren

    August 8, 2023 at 6:17 am in reply to: scatter graph animation

    Here’s a pretty in depth tutorial on text animators, the wiggly selector is first shown around the 10:30 mark:

    https://youtu.be/plbsdkRhy8g

    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

    August 7, 2023 at 1:06 pm in reply to: Matching a solid color then adjusting opacity

    I think the easiest solution is to take the two colors, combine them with a multiply, and add a “change to color” effect, to transform Hue, Lightness and Saturation of the resulting multiply-mix to the exact mix of the example.

    Because the way the two colors combine is depending on extra factors such as Gamma, color space,… and it’s a fair assumption that the original design actually fine-tuned the intersection color anyway and there’s no exact formula where A+B=C.

    For one thing, the mix color has less red than either of the two colors, so it can’t be reached by opacity alone.

  • Filip Vandueren

    August 7, 2023 at 12:15 pm in reply to: scatter graph animation

    Hi Karen,

    if you just want something random and don’t need to control the actual values, I would do this with a text-animator:

    Make a text layer containing •••••••••••••••••••••••••…

    Draw your trend line as a mask-line on this text layer, then enable text on Path.

    Add a position animator with Wiggly textanimator (but with Wiggles per sec at 0 so it’s fixed).

    Give the animator’s Position-value a bit of X and some more Y depending on how scattered you want it to be.

    You can add another text animator to anim-on the dots 1 by 1 (with opacity, perhaps scale), and a third animator could be used to add random colors to the dots.

  • Hi Vincenzo, here’s the approach I would take:

    – select everything that’s at the first level of the Contents of the shape layer,

    – execute the menu command for “Group Shapes” -> app.executeCommand(3741);

    This Group’s Position and AnchorPoint will both automatically have the same value as the layer’s anchorPoint.

    Now Set the Layer’s anchorPoint to [0,0], and also set the newly created Group’s Transform->Position to [0,0]

    I’m not that good with exact scripting syntax so I hope that sets you on the right course.

  • Hi Khalil, the easiest fix is to use point -controls instead of sliders, they have a different floating point implementation. (And they could hold 2 values at the same time)

    If you must use sliders, you could switch to expressing the numbers as thousands or millions and multiply *1000 or *1000000 in your expression as there is no way around changing the actual limit of the slider control.

  • Filip Vandueren

    July 27, 2023 at 8:20 pm in reply to: Restrict Color Fill to area

    Hi Amanda,

    Many ways to do this, most are not really expression related.

    You could do a fill, followed by a Cc blend or set matte to reinstate the original text alpha while keeping the color.

    Or you could use a tint effect, white text black text, and then re-map white to your color control.

    Or use any effect that affects the color of the layer (for example again tint but with black and white set to the same color), and limit the location where the effect is applied using an effect mask.

    Or. You could set the fill/stroke color of the text using a text animator and use a range to only have that active in certain lines.

Page 4 of 277

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