Forum Replies Created

Viewing 1 - 10 of 53 posts
  • jim lefevre

    August 7, 2022 at 8:56 am

    Absolutely second this – 13 years on and this is still a lifesaver.

    Thank you

  • jim lefevre

    March 31, 2021 at 7:31 pm

    Oh wow. I think this is all fresh enough in my mind that I can restitch it with that and see if it works. I absolutely agree that making things more efficient will help in the long run.

    Thank you

  • jim lefevre

    March 31, 2021 at 12:33 pm

    HA!!

    Done it I think.

    For some reason my equation to get the angle via inverse sin had the values dividing the wrong way – I was dividing the base length by the hypotenuse or the other way round – which meant that I was coming out with a value greater than 1 which, it appears, an inverse sine can’t do (I have no idea how this works btw).

    I swapped them round and came to a result which worked and then had to take that value away from 90 degrees so that it was rotating in the direction I needed.

    Works perfectly now…

    //I have two slide values that control the Base length and the height of the triangle (the altitude)
    //half the base length to get me a value that creates a right angle triangle essentially
    m = thisComp.layer("DRIVER_all_sides").effect("length - X")("Slider")/2;


    //pythagorus to find the length of the hypotenuse
    a = thisComp.layer("DRIVER_all_sides").effect("length - X")("Slider")/2;
    b = thisComp.layer("DRIVER_all_sides").effect("HEIGHT_TRIANGLE")("Slider");
    x = Math.sqrt(((a*a) + (b*b)));



    //get the angle via inverse sin

    q = Math.asin(m/x);


    //convert this to degrees

    p = (radiansToDegrees(q));



    //final result needs offsetting so it rotates the correct way when I change the base triangle value

    90-p

  • jim lefevre

    March 31, 2021 at 8:47 am

    Ah… spoke too soon!

    As Mark was doing, I’m trying to figure out the angle of a right angled triangle from the lengths of the sides using inverse sin.

    I’ve followed all of the replies here and am getting somewhere all up until I try and call the inverse sin using …

    Math.asin().

    …where the expression gives me an error. Here is the code…

    //half the base length
    m = thisComp.layer("DRIVER_all_sides").effect("length - X")("Slider")/2;
    //pythagorus to find the length of the hypotenuse
    a = thisComp.layer("DRIVER_all_sides").effect("length - X")("Slider")/2;
    b = thisComp.layer("DRIVER_all_sides").effect("HEIGHT_TRIANGLE")("Slider");
    x = Math.sqrt(((a*a) + (b*b)));
    //angle via inverse sin
    q = (x/m);
    p = Math.asin(q);
    p

    The error is the “Error: couldn’t turn the result into a numeric value” one

    I’ve yet to get it to the stage of turning it the Radians into degrees as it’s falling over as soon as Math.asin() is in there.

    Does anyone have any suggestions? (and I’ve had a trawl through that wonderful Math resource you posted Dan)

  • jim lefevre

    March 31, 2021 at 8:14 am

    Mark (and everyone),

    THANK YOU! I’m doing exactly the same thing and have been hitting my head against a wall for a day or so.

    You guys are all so great.

    Jim

  • jim lefevre

    July 23, 2019 at 3:45 pm

    Walter! I’ve just realised with horror that I’ve never thanked you for this advice! Thank you so much!

    Better late than never!

    Jim

    http://www.jimlefevre.com

  • jim lefevre

    July 23, 2019 at 3:03 pm

    Mark,

    Oh wow, that would be incredibly helpful and yes, almost just to see if it’s possible to get it all back. I’d be very curious to see what’s there.

    There are three projects of varying sizes (between 190MB and 450MB of footage) and it looks like very few effects (and of those I think most that are native to AE).

    It would be amazing to be able to up-save it to then be able open it up in anything accessible with the Creative Cloud AE that I can download – it looks like CC2015 is the earliest version and that can open up AE 7 – but that really is me taking the mickey of your already kind offer!

    Anyhow, I’ll try and figure out the best way to send it/them over to you if you are still up for it! My email address is fliptopjim -at- gmail -dotcom if that’s a more useful way forward!

    Many many thanks in advance!

    Jim

    http://www.jimlefevre.com

  • jim lefevre

    August 15, 2018 at 5:52 am

    Dan, as ever, thank you.

    That was exactly what I was looking for and I didn’t realise you could feed text layers into expressions like that. That is really exciting as I use a lot of convoluted mechanical processes in After Effects that this makes life a lot easier!

    Thank you again,

    Jim

    http://www.jimlefevre.com

  • jim lefevre

    March 30, 2017 at 5:26 pm

    Thank you so much for that tutorial, that was extremely thoughtful to record.

    I cannot tell you how much you have changed my life – it works and it is absolutely brilliant. I wonder why Duduf hasn’t implemented this as part of the script as it sorts out so many problems. My characters can now drink things!!

    Thank you thank you!

    Jim

    http://www.jimlefevre.com

  • jim lefevre

    March 27, 2017 at 1:43 pm

    Ha ha!

    Did a search for this AGE OLD problem and found this thread which I actually started! How funny!

    Daniel… This sounds so super exciting but I can’t seem to get your instructions working… halfway through you mention an ‘elbow controller’ but I can’t find where you mention creating this. I don’t suppose you could clarify?

    Shall keep re-reading and seeing if I can get it working. If it does then you are an absolute star!!!

    (might DM you if this reply doesn’t flag up on your radar)

    Jim!!!

    http://www.jimlefevre.com

Viewing 1 - 10 of 53 posts

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