[VEX for Algorithmic Design] E07 _ Loop

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 2024
  • This is a new series I've started explaining the basics of VEX for algorithmic design / procedural modeling which I'm using on daily basis.
    In this 7th episode, I'm explaining what and how to use a loop in VEX, which is going to be one of the important concepts to getting into the fun part of using code for the geometrical operation.
    I've also started a Patreon, it would be great if I could get your support to continue creating tutorial contents.
    00:00:00 Intro / What is a loop?
    00:01:42 For loop basics
    00:13:56 For loop for attributes
    00:21:23 For loop exercise
    00:35:09 While loop
    00:44:23 Do while loop
    00:48:33 While loop exercise
    00:59:22 For each loop
    01:07:25 For loop for array
    01:12:44 For each loop exercise
    01:27:40 Nested loop
    01:36:30 Nested loop exercise
    01:46:49 Next topic - Condition
    [Project Data Downloads]
    github.com/jhorikawa/VEXForAl...
    [Patreon page]
    / junichirohorikawa
    [Episodes]
    Episode 1 - Attribute Basics: • [VEX for Algorithmic D...
    Episode 2 - Group Basics: • [VEX for Algorithmic D...
    Episode 3 - Parameter Basics: • [VEX for Algorithmic D...
    Episode 4 - Variables and Operations: • [VEX for Algorithmic D...
    Episode 5 - Array: • [VEX for Algorithmic D...
    Episode 6 - Strings: • [VEX for Algorithmic D...
    Episode 7 - Loop: • [VEX for Algorithmic D...
    Episode 8 - Conditional: • [VEX for Algorithmic D...
    Episode 9 - Function: • [VEX for Algorithmic D...
    Episode 10 - Volume Basics: • [VEX for Algorithmic D...
    Episode 11 - Dictionary Basics: • [VEX for Algorithmic D...
    Episode 12 - Vector Basics: • [VEX for Algorithmic D...
    Episode 13 - Trigonometry Basics: • [VEX for Algorithmic D...
    Episode 14 - Quaternion Basics: • [VEX for Algorithmic D...
    Episode 15 - Matrix Basics 1: • [VEX for Algorithmic D...
    Episode 16 - Geometry Functions: • [VEX for Algorithmic D...
    Episode 17 - Intrinsic Attribute: • [VEX for Algorithmic D...
    Episode 18 - Randomness Basics: • [VEX for Algorithmic D...
    Episode 19 - Noise Basics: • [VEX for Algorithmic D...
    Episode 20 - Solver Basics: • [VEX for Algorithmic D...
    Episode 21 - Half-Edge Basics: • [VEX for Algorithmic D...
    Episode 22 - Remapping Basics: • [VEX for Algorithmic D...
    Episode 23 - SDF Basics: • [VEX for Algorithmic D...
    Episode 24 - Force Basics: • [VEX for Algorithmic D...
    Episode 25 - Force Extended: • [VEX for Algorithmic D...
    Episode 26 - Recursion Basics: • [VEX for Algorithmic D...
    [Houdini Related Playlists]
    VEX for Algorithmic Design: • VEX for Algorithmic De...
    Houdini Tutorial: • Houdini Tutorials
    Houdini Algorithmic Live: • Houdini Algorithmic Live
    Houdini Snippets: • Houdini Snippets
    Houdini Tips: • Playlist
    [Portal Page]
    Facebook Page: / parametricproceduralho...
    [Books]
    Algorithmic Design Workbook with Houdini: gum.co/GOZFw
    Tiling Pattern with Houdini: gumroad.com/l/OVDgY
    Algorithmic Design with Houdini: www.bnn.co.jp/books/9788/
    Books on BOOTH: orangejellies.booth.pm/
    [Contact]
    Twitter: / jhorikawa_err
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @filmanim5276
    @filmanim5276 3 ปีที่แล้ว +23

    Thank you so much for your time and effort in putting this series together! Your VEX series is perfect.

  • @DrVFX
    @DrVFX 3 ปีที่แล้ว +10

    This is the best VEX series I have ever watched!
    Great job

  • @arsensuleymanov7935
    @arsensuleymanov7935 3 ปีที่แล้ว +2

    Very useful. Especially when you talk about difference between usage of loops. That's what lacks usually in other resources, they tell you how it works and miss "when to use". Thank you again.

  • @GarmanHerigstad
    @GarmanHerigstad 8 หลายเดือนก่อน +1

    Super great stuff

  • @LinchpiN777
    @LinchpiN777 3 ปีที่แล้ว +2

    Best step by step guide of loops I've seen.

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

    This was the most difficult one to follow so far, but well worth the effort. Thanks so much for this series. Really excellent quality tutoring.

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

    One of the best explanations out there, thank you so much!

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

    int nprim = addprim(0, "polyline");
    addvertex(0, nprim, pt);
    addvertex(0, nprim, pt+num2); in the second loop at the end of the nested loop exercise to keep it all in one wrangle. Handy snippet. Thanks, Junichiro!

  • @punniyakotti5767
    @punniyakotti5767 2 ปีที่แล้ว

    Thank you so much for wonderful lecture about VEX in Houdini. I was gone through so much of tutorial on VEX, I proud to say your are the best one to understand basic of VEX with awesome explame. That 1 hr :47 min :15sec of the video is really worth it. Dude

  • @guitoma109
    @guitoma109 2 ปีที่แล้ว

    Thanks Junichiro, I have learned a lot with this JuniFlix series. Let's go to the E08 - Conditional

  • @joncorv
    @joncorv 2 ปีที่แล้ว

    Thanks for sharing this.

  • @billlee9757
    @billlee9757 3 ปีที่แล้ว +4

    Thank you for the greatest lessons!
    I found a little bug when I did the while loop exercise:If the 'Angratio' parameter accidentally equal to 0,the whole loop become a infinite loop for ‘currentang = $PI * angratio’ equal to 0,never break condition ‘currentang < totalang’,that will freeze Houdini.
    Be careful with that parameter guys.

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

      That happened with me too :( Thanks ))

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

    This is amazing Junichiro! Thanks for sharing this. I'm still at the bottom of my VEX learning curve, but thanks to you I now understand so much more. That was 1 hour 45 minutes very well invested. Looking forward to your other tutorials!

  • @XrQ0000000a
    @XrQ0000000a 2 ปีที่แล้ว

    You are an incredible teacher, thanks Junichiro!!

  • @skrotov
    @skrotov 3 ปีที่แล้ว +2

    thank you so much!!! very helpful! By the way we actually shouldn't click anywhere in the canvas in order to update the code, we can just press ctrl+enter and it will update

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

    Thank You very much, Junichiro!

  • @jkazulyblanco
    @jkazulyblanco 2 ปีที่แล้ว

    Absolutely amazing, great work, very good eplanation, thanks a lot Junichiro

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

    Thank you so much, really appreciate!!!!!! This series is awesome.

  • @maurypb
    @maurypb 2 ปีที่แล้ว

    Thank-you for making these!

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

    Thank you. This will be very good!

  • @alimoworld8295
    @alimoworld8295 2 ปีที่แล้ว

    Thank you Sir for this great source!

  • @FaddyVFX
    @FaddyVFX 2 ปีที่แล้ว

    Awesome video, alot to learn from your channel and cool tips, thank you for your time.
    😁

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

    Thanks Master, I don't know if you knew but I think so about a foreach loop. Actually there a version of foreach that has the iteration feedback.
    foreach (index, value; array) statement;
    foreach (int index; element_type value; array) statement;
    i dont know if is a new things, but from h18 i have used sometimes.
    from what I understand, in the normal for, you can decide to start the count int i = x from any value, even negative, and increase it as you wish , while in the foreach version with the count "i" it always starts from 0.

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

    Help me a lot , thank you sir!

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

    u da best

  • @MrEDolgiy
    @MrEDolgiy 2 ปีที่แล้ว

    Thank you very math for the lesson!

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

    this is awesome

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

    thank you so much for this
    just a work on SEO

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

    Thanks

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

    Great stuff as always Maestro..You can actually get the current iteration of a for each loopby setting a variable in the conditions statement and increment it inside the loop like in the while loop but the for loop method is more robust.

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

      Not sure where the myth that you cannot get the iteration value from foreach() comes from. The synthax is: foreach (int index; element_type value; array) meaning you can specify int i in the first argument before the element and array.

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

    waiting for your next lesson

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

    Super!

  • @dummy-hz5js
    @dummy-hz5js 3 ปีที่แล้ว

    super

  • @skrotov
    @skrotov 3 ปีที่แล้ว +2

    bye the way in order to get attribute wrangle node faster, we can just press tab then type atw and enter =)

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

    This is really helpful, thank you for making this tutorials :) Can somebody give me the link for pc(point cloud) expressions, if there are any ? I really hope to see those :)

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

    8:48 Why do i have to specify point as a variable? (int pt =) I checked and it works just with addpoint function. Is it a new version of houdini, or it is me lacking critical information?

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

      I don't know much yet and I asked myself the same question, so I might be wrong. I believe it's a "just in case" situation or best practices or things he always does in more advanced codes where he actually ends up using that variable somewhere else down the line.

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

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

    可以讲讲矩阵和四元数吗,我不是很理解逆矩阵和矩阵相乘还有欧拉角。

  • @antoniopepe
    @antoniopepe 2 ปีที่แล้ว

    From your example at th-cam.com/video/EMKNE-RWwfY/w-d-xo.html if u enable in the viewport Point Numbers, seems that the order of creation its a bit different.
    can u give a try ? if u have only one line in the X and 7 point the number go from 0 to 6, in the moment that in the Z line u switch from 1 to 2, the order change and the number creation go in a zig zag way, when enable the third dimension even worse.

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

    This is cool and all but could you make a tutorial showing how to make a good looking modular blood setup for production with stringy and sticky parameters that coats on contact?