Random XYZ Position in Adobe After Effects

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

ความคิดเห็น • 68

  • @julienvfx
    @julienvfx 5 ปีที่แล้ว +8

    If you want your layers to keep their positions and get an offset pos with the Random effect, you can add: "value" in your expressions:
    -random(a, b);-
    random(value+a,value+b);

  • @andreasmarkstrom1940
    @andreasmarkstrom1940 ปีที่แล้ว

    Was thinking of going in to C4D to clone a lot of rectangles, but no need. This helped a lot!

  • @giraffeapproved
    @giraffeapproved 5 ปีที่แล้ว +5

    I've been working professionally in AE for years, and just found out about Collapse Transformations from this video. THANK YOU KIND SIR.

  • @BobShurunkle
    @BobShurunkle 2 ปีที่แล้ว +1

    6 year old tutorial that I desperately needed on Thursday, not three days after the necessity! 🤣 age does not diminish its excellence

  • @aarontiramisu
    @aarontiramisu 6 ปีที่แล้ว +8

    seedRandom(index, true)
    a = [-1000, -1000, -1000];
    b = [1000, 1000, 1000];
    random (a, b);
    [r,r,r]

    • @aarontiramisu
      @aarontiramisu ปีที่แล้ว

      I still come back to this randomly and am so proud that I have the foresight to do the lol

    • @aarontiramisu
      @aarontiramisu ปีที่แล้ว

      Back again, hi past and probably future Aaron's. You're the best

  • @StefanSchmalhaus
    @StefanSchmalhaus 7 ปีที่แล้ว +24

    After adding the min and max sliders didn't you forget to change these two lines
    a = [-1000,-1000,-1000];
    b = [1000, 1000, 1000];
    to something like this:
    a = [min, min, min];
    b = [max, max, max];

  • @spicy_burrito
    @spicy_burrito 3 ปีที่แล้ว

    had to work with 600 layers in 3D z space. You saved me, thanks a million.

  • @leoLorenzi
    @leoLorenzi 4 ปีที่แล้ว

    i keep coming back to this, has so much useful info

  • @nathanmarkus9823
    @nathanmarkus9823 3 ปีที่แล้ว

    You saved me many long hours of work. Thank you so much. Liked and subscribed!

  • @AroonkumarBhaskar
    @AroonkumarBhaskar 6 ปีที่แล้ว +2

    Extremely useful, Harry. My work went tedious without these expressions. Thanks a Lot. Super Liked the Video!! :)

  • @LaifuMike
    @LaifuMike 6 ปีที่แล้ว +2

    how do you space out the names more? some overlap, or not evenly distributed. Once precomposed, the z space only affects the depth, the other two size variables distort the text. Inside the precomp, the position is fixed

  • @PhotoHackz
    @PhotoHackz 4 ปีที่แล้ว

    I've typed t[0] but it's not return me a text it's became number how to fix it

  • @shinnapolthanyacharoen4701
    @shinnapolthanyacharoen4701 ปีที่แล้ว +1

    Thx for ur great tutorial.
    I recode for more useful. Now u can control value and min max random.
    seedRandom(index, true)
    //create null name "Text Control" and add 2 slider effect, rename it to "Min" and "Max"
    min = thisComp.layer("Text Control").effect("Min")("Slider");
    max = thisComp.layer("Text Control").effect("Max")("Slider");
    a = value+[min, min, min];
    b = value+[max, max, max];
    random (a, b);

    • @t1t4ns99
      @t1t4ns99 6 หลายเดือนก่อน

      omg! you saved my life thx for sharing this

  • @Andrews13channel
    @Andrews13channel 5 ปีที่แล้ว +1

    super helpful but like,,, it takes too long to do this and id rather just copy paste a bunch of text layers and moving them around manually then accidentally writing a script wrong

  • @dstack1014
    @dstack1014 5 ปีที่แล้ว +1

    I'll give this a try tomorrow. I'm really hoping that rather than divide by word, I can use "line" to divide by line since I have several words per line. Will that work?

  • @jhill3d
    @jhill3d 4 ปีที่แล้ว +1

    Nice technique. Would it be possible to store each location in a variable, then automatically animate the camera to each during a comp's life?

  • @MikeyNavarrete
    @MikeyNavarrete 3 ปีที่แล้ว

    Hello I am looking for an expression that only moves the z position randomly with a slider control

  • @jimjambandit
    @jimjambandit 7 ปีที่แล้ว +1

    Excellent, exactly what I needed! thanks

  • @Zgjimik
    @Zgjimik 5 ปีที่แล้ว +1

    Great tutorial!

  • @skystalker17145
    @skystalker17145 6 ปีที่แล้ว +5

    smooth voice!

  • @JoelCPark
    @JoelCPark 7 ปีที่แล้ว +1

    Great tutorial. I am distributing many photos in 3D space and wish to quickly adjust their xyz placement without having to copy and paste the seeRandom script to all the layers each time I want to adjust xyz values. I'm using the slider technique exactly as you scripted above, with exception that the MIN and MAX values reference sliders in a Null object. The sliders appear to have no effect on the layers (images) that have the seedRandom script for their position. Any thoughts, please? Thanks!

    • @tombourguet3604
      @tombourguet3604 7 ปีที่แล้ว

      He forgot to put his new "min" and "max" variables into his random() function after creating the sliders, so it's still referencing the "a" and "b" arrays he created earlier. It should be random(min, max) and you can delete the a and b arrays.

  • @schobel
    @schobel 4 ปีที่แล้ว

    i really wonder how you would modify this in order to animate the individual layers with maybe one slider control

  • @11Berry
    @11Berry 4 ปีที่แล้ว +1

    Is there a way to do this effect in premiere pro?

  • @srikkanth-tech
    @srikkanth-tech 4 หลายเดือนก่อน

    What happened to this channel.. This is gold standard teaching

    • @graymachine
      @graymachine  12 วันที่ผ่านมา +1

      Life happened. Don't worry, I am dusting off my microphone. See you soon!

  •  5 ปีที่แล้ว +1

    wow!!! where did you learn all these?

  • @juliedubela6759
    @juliedubela6759 6 ปีที่แล้ว

    Question: what would I do if I wanted my expression to return a random word in the source text list on every frame?
    I tried modifying the expression you gave in the video to this:
    Word = t.split(“
    ”)
    Word[random(0,50)]
    This did not work. Any suggestions?

  • @FabEnPeOr2
    @FabEnPeOr2 7 ปีที่แล้ว +3

    Hi Harry awesome tutorial ! I kind of got it, how the programing language works hehe . I just have an issue. I am trying to duplicate an 2D object many times and I cant be adjusting the position randomly to every layer. But when I use a radom expression they are all kind of out of the frame. How can I limit the position to the frame? Thanks for ur help :)

    • @srikkanth-tech
      @srikkanth-tech 4 หลายเดือนก่อน

      I am facing the same problem.. I have a instagram Ad 9:16.. The text does not spread out well

    • @FabEnPeOr2
      @FabEnPeOr2 4 หลายเดือนก่อน +1

      @@srikkanth-tech sort mate it's been 6y I don't even know what is this video about 😅🤣

    • @srikkanth-tech
      @srikkanth-tech 4 หลายเดือนก่อน +1

      Yea,,, must be wierd to get comments on something from a different era :)

    • @FabEnPeOr2
      @FabEnPeOr2 4 หลายเดือนก่อน

      @@srikkanth-tech haha well it's not weird but as I mentioned o tbh have 0 idea what was this video about 😅

  • @neko9141
    @neko9141 7 ปีที่แล้ว

    Extremely helpful, thank you

  • @NotEvenDeathCanSaveU
    @NotEvenDeathCanSaveU 3 ปีที่แล้ว

    How do I make AE to randomly pick one of two values ? Like it randomly decides each frame if its going to be value 100 or value 200.. Or in other words, if rng rolls 0 its a value of 100 and if it rolls 1 its a value of 200 ? :/

    • @NotEvenDeathCanSaveU
      @NotEvenDeathCanSaveU 3 ปีที่แล้ว

      Uhh... well nvm, did it using simple if/else
      randValue = random(0, 100);
      if(randValue >50) {100;} else 200

  • @StellarEclipseStudio
    @StellarEclipseStudio 8 ปีที่แล้ว +2

    What's the difference between using "random" and using wiggle with a 0 on its frequency?

    • @StellarEclipseStudio
      @StellarEclipseStudio 8 ปีที่แล้ว +1

      +Harry Frank (graymachine) Cool, thanks. I normally use Math.abs() to solve that, so this is a nice alternative.

  • @WeLoveBuzzYT
    @WeLoveBuzzYT 6 ปีที่แล้ว +1

    Thank you.

  • @ishashah7028
    @ishashah7028 3 ปีที่แล้ว

    I'm at 12:52 and an error comes up saying "word is not defined"

  • @mabbugaming9201
    @mabbugaming9201 7 ปีที่แล้ว +1

    hey were you got the music for your intro

  • @DopeAdministrator
    @DopeAdministrator 4 ปีที่แล้ว

    Well done! 🎉🎉👏👏🎆🎆

  • @cemcobanoglu9559
    @cemcobanoglu9559 3 ปีที่แล้ว

    Hi,
    I really like this tutorial it is really helpful!
    also, I would like to ask if anyone knows!
    can we animate every single text/letter separately?
    i would be rally happy if anyone help me.
    i am working on kinetic typography and i tried to do same thing on this setup but i couldn't move the texts. anyone know why ?

  • @MarmarKhayat
    @MarmarKhayat 7 ปีที่แล้ว +1

    After I clicked on "Collapse Transformations" the composition would not rotate anymore.. How come yours turned it into a 3D box?

    • @Hydrotoxic
      @Hydrotoxic 4 ปีที่แล้ว +1

      Enable 3D for each text layer

    • @MarmarKhayat
      @MarmarKhayat 4 ปีที่แล้ว +1

      @@Hydrotoxic I don't remember asking haha but thank you for answering

  • @perlovzkavigotzky2369
    @perlovzkavigotzky2369 7 ปีที่แล้ว +1

    ahora en español por favor jajaja
    I have a problem in the minute 7:30 with fx "Random min &max"
    I disable the functions. HELP!!!

  • @cemcobanoglu9559
    @cemcobanoglu9559 3 ปีที่แล้ว

    HI GUYS,
    Does anyone knows how can we animate this typography ??
    i really need this help for my master project! thanks a lot

  • @jorgemariozuleta
    @jorgemariozuleta 8 ปีที่แล้ว +1

    Thanks, I found it quite useful

  • @듀듐칫-f8f
    @듀듐칫-f8f 6 ปีที่แล้ว +1

    really helpful! thank u :-)

  • @vasudhahanda6316
    @vasudhahanda6316 6 ปีที่แล้ว +1

    seedRandom(index, true)
    a = [-1000, -1000, -1000];
    b = [1000, 1000, 1000];
    random(a,b);

  • @poisonbrainproductionsgr
    @poisonbrainproductionsgr หลายเดือนก่อน

    thanks!
    14:47 PAPANDREOU is a greek politician familly !|HAHAHAHA
    lMAO

  • @tatagat96
    @tatagat96 3 ปีที่แล้ว

    is this project file available?

  • @TyronePalmer-u1l
    @TyronePalmer-u1l ปีที่แล้ว

    Can this be applied to compositions and not just text?

    • @graymachine
      @graymachine  5 วันที่ผ่านมา

      Yes, it should be able to.

  • @MrGeeves
    @MrGeeves 5 ปีที่แล้ว

    Getting an expression error after putting all my layers into a pre comp 🤬

  • @nflrecapandrumors3845
    @nflrecapandrumors3845 4 ปีที่แล้ว

    i keep getting unexpected error, the commas.

  • @clavejustin9421
    @clavejustin9421 5 ปีที่แล้ว +1

    Are you from the channels "gray machine" or "Red Giant"?

    • @MysteryPancake
      @MysteryPancake 5 ปีที่แล้ว +1

      Harry works for Red Giant but is known by his username "graymachine"

  • @Toxss
    @Toxss 6 ปีที่แล้ว +1

    this needs to be a script

  • @Mr.Forgoten
    @Mr.Forgoten 5 ปีที่แล้ว +1

    it does't work anymore.

  • @jrdgolden1
    @jrdgolden1 7 ปีที่แล้ว +1

    want to hire you! whats your email?

  • @shawn.m.schmidt
    @shawn.m.schmidt 4 ปีที่แล้ว +1

    I am very new to expressions and followed your directions to a tee and I couldn't figure out why my code was broke, I replayed the first four minutes of this video several, several times trying to figure out why my code that looked exactly yours was not working. I was at the point of "fuck it". Then you say, "oopsy, this extra code will cause an error. Thanks for the unneeded stress. Maybe test your shit out before you record next time.

  • @droneservicesdorset5006
    @droneservicesdorset5006 6 ปีที่แล้ว +1

    Sorry dude but this was way too confusing even though I was following the long you rushed through parts of it which I got totally confused with. While yes it might be straightforward to those used to using after effects to those of us who are newbies it seemed very rushed

    • @Zgjimik
      @Zgjimik 5 ปีที่แล้ว +1

      This is not a tutorial for complete beginners, if you are not familiar with expressions, there are plenty of tutorials on that.