How to Import Files in Houdini with Python | Part 1

Поділитися
Вставка
  • Опубліковано 10 вер 2024

КОМЕНТАРІ • 42

  • @sniper1pk
    @sniper1pk 5 років тому

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

  • @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.

  • @affectreflect
    @affectreflect 5 років тому +2

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

  • @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!

  • @enriquepatino7821
    @enriquepatino7821 4 роки тому

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

  • @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.

  • @NodeNest
    @NodeNest 5 років тому +1

    Thank you for this!

    • @DavidKahlVFX
      @DavidKahlVFX  5 років тому

      Thank you for watching 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!

  • @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 Рік тому

      i have the same issue, any solutions?

    • @dalelinney8437
      @dalelinney8437 Рік тому

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

  • @sams_3d_stuff
    @sams_3d_stuff 3 роки тому

    Thank you Master.

  • @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😁