How to Import Files in Houdini with Python | Part 1

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 42

  • @sniper1pk
    @sniper1pk 5 лет назад

    sod the houdini stuff. i am so happy at you having a kid and sharing your update with us.

  • @joeldeslo854
    @joeldeslo854 5 лет назад

    It's great to see you back! Congrats!
    Thanks for sharing that voodoo that you do so well.

    • @DavidKahlVFX
      @DavidKahlVFX  5 лет назад

      Thanks :) feels Good to work again!

  • @solidair1245
    @solidair1245 4 года назад

    Great intro. I ran it through a loop to avoid repetition. Thanks for all the tips!
    pt = “../python_test”
    def NewNodes(name):
    node = hou.node(pt).createNode(name)
    node.moveToGoodPosition()
    myNodes = (“grid”,”switch”,”attribwrangle”,”copytopoints”,”block_begin”,”block_end”)
    for newNodes in myNodes:
    NewNodes(newNodes)

    • @DavidKahlVFX
      @DavidKahlVFX  4 года назад

      Ahh that is a good approach. Going to do that if i create multiple nodes again. Also the movetogoodposition should have been in there :)

    • @solidair1245
      @solidair1245 4 года назад

      David Kahl VFX Awesome! I stored the nodes in a list to access their methods.
      layoutChildren() works well after setting up all the inputs.
      The mini series was awesome.
      You’ve opened up more possibilities and ideas for me. Thanks a lot.
      More Python! Hopefully advanced tutorials.
      Congrats on the new born.

  • @Br0wnH3s
    @Br0wnH3s 5 лет назад

    Really great tutorial, really clear, complete and at the right speed ! I really hope you will do more python in houdini tutorial

  • @BCblackchicken
    @BCblackchicken 5 лет назад

    Very interesting, looking forward for next part. Thanks a lot.

  • @enriquepatino7821
    @enriquepatino7821 4 года назад

    Useful as hell! Need to get into more Python in Houdini

  • @dalelinney8437
    @dalelinney8437 2 года назад +1

    Hi, I'm getting an error
    exec hou.node(".").parm("code").eval()
    ^
    SyntaxError: invalid syntax
    Any ideas what it could be? I've done everything exactly as typed and can't see anything wrong with the syntax

    • @dalelinney8437
      @dalelinney8437 2 года назад

      This is when I press the import button after first scripting it

    • @DavidKahlVFX
      @DavidKahlVFX  2 года назад +1

      I saw you entered the patreon discord. If you want - send me the file. I bet this is something minor. It looks right on the first glance.

    • @dalelinney8437
      @dalelinney8437 2 года назад

      @@DavidKahlVFX Yeah, saw there was a ton of good content, very much the kind of stuff I'm tinkering with at the minute

    • @nerophesis
      @nerophesis 2 года назад

      i have the same issue, any solutions?

    • @dalelinney8437
      @dalelinney8437 2 года назад

      @@nerophesis Yeh it doesn't work any more!

  • @NodeNest
    @NodeNest 5 лет назад +1

    Thank you for this!

  • @AshutoshMaurya007
    @AshutoshMaurya007 3 года назад

    Hey can u make a tutorial on how to import cache sequence from multiple folder?
    I wedge a simulation and i want to import all the cache sequence at one!

  • @sams_3d_stuff
    @sams_3d_stuff 3 года назад

    Thank you Master.

  • @affectreflect
    @affectreflect 5 лет назад +2

    Golden as always..Best of luck with the fam maestro

  • @pawebernaciak1581
    @pawebernaciak1581 5 лет назад +1

    1. Would be better to use digital asset for this purpose instead of creating nodes by code.
    2. Since Houdini 17.5 file sop could be compiled loop

    • @Midwesternsongs
      @Midwesternsongs 5 лет назад

      please elaborate on point 2

    • @pawebernaciak1581
      @pawebernaciak1581 5 лет назад

      @@Midwesternsongs compiled loop allow to you compile some pieces of code and in consequence to execute it in parallel. So would more efficient to create list of files as array att, split that to points in vex and send to compiled loop with file sop inside with will take filepath from given att.
      Biggest speed up should be visible while loading real geometry, but even slow evaluation with delay load should be faster :)

    • @allenzhang1824
      @allenzhang1824 4 года назад

      Please elaborate on point 1 too

  • @oliverwildt6041
    @oliverwildt6041 5 лет назад

    Please make a Python course similar to your VEX course! (Similar = same amount of depth)

    • @DavidKahlVFX
      @DavidKahlVFX  5 лет назад

      If I find a Bucket of unused time :)

  • @shivsharma6511
    @shivsharma6511 4 года назад

    hey i am new to programming could you please tell me what should i prefer VEX or Python...?

    • @DavidKahlVFX
      @DavidKahlVFX  4 года назад +1

      If you stay in houdini and basicly want to manipulate geometry use VEX. If you want to load external data - then python is the way to go

    • @shivsharma6511
      @shivsharma6511 4 года назад

      David Kahl VFX Thank you for the response..😊

    • @shivsharma6511
      @shivsharma6511 4 года назад

      David Kahl VFX one more question
      Before starting VEX..it is necessary to work on over Algebra Trigonometry calculus and physics..,?
      Then VEX

    • @DavidKahlVFX
      @DavidKahlVFX  4 года назад +2

      @@shivsharma6511 definetly not - of course it helps to know something about math but it is not required to learn and use vex.
      For example - At some point you should learn WHAT the cross product is but you don't need to calculate it - you just type in cross and let houdini figure it out

  • @ligaofeng3901
    @ligaofeng3901 2 года назад

    cute baby😁