Houdini Python - scripts on disc, button callback scripts, envs, packages, kwargs, menu scripts

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

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

  • @tobywilliams-ellis1713
    @tobywilliams-ellis1713 3 года назад +1

    This is so useful and answers the exact question I've been looking for. Thanks so much for sharing

  • @Ha.jamshidi
    @Ha.jamshidi 2 года назад

    Thank you, just used that.👏

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

    one issue I have is when I create a spare parameter and hit the button to make them it doesn't make them at all... Don't know why Houdini keeps doing that.

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

      That dosent sound right. only thing i can imagine, is if weather you press on apply and not accept. Never had this problem.

  • @JtooMe2
    @JtooMe2 5 месяцев назад

    Run into an issue with python scripts stored on another drive not being found with __import__

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

    Hi, thank you for the tutorial, i was wondering what is that FILE EXPLORER TAB? looking thing you are using? not sure if that is it, but looked liked some kind of color coded tab management system? would really appreciate it if you can let me know what its called thansk!

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

    great tutorial, it help a lot. Do you think is possible via python to inject script in parm from node creation ?

    • @viktors_anfimovs
      @viktors_anfimovs  3 года назад +1

      Parms can take also script callbacks easy, if you want a do something when you create node, update it, dele it etc, create digital asset and go in type proporties under scripts, you can reference scripts. under event handler, you can run a script when you modify node. Its a good tutorial topic. might make one.

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

      @@viktors_anfimovs excellent, I try to look at it on my way too. thanks. Do you know huilib ? its a nice UI library for create houdini ui : github.com/alexxbb/huilib

    • @viktors_anfimovs
      @viktors_anfimovs  3 года назад +1

      @@electroheadfx I saw this post a while ago. I know that there's a bunch of examples you can run in Houdini under python panel of custom UI but that is based on PyQt with I'm not familiar with. and this is a wrapper around available UI native houdini stuff.

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

      @@viktors_anfimovs yeah its not very intuitive for artist to deal with PyQT. Thanks for your work.

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

    can i use kwargs directly in the menu script? instead of importing a function. How can i pass the kwargs dictionary inside the menu python script?

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

      kwargs dict is always there, there is no need to import it. The reason kwargs is there so that you pass it to your written functions. Houdini documentation states- The most convenient way to implement a callback script is to write one line of Python that calls the “real” callback function in your asset’s Python module and passes it the kwargs dictionary.

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

    how i can reload module in callback script

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

      Once you load one module you have to reload it manually, since python dosent re-import already imported modules. When you are editing and testing scripts, you can put reload a module from script or from python window like this -
      import importlib importlib.reload(module)
      Just remember to delete this once youre done editing scripts

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

      @@viktors_anfimovs Thank🤩 you

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

    Right-click on any parameter > More > Delete Spare Parameter

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 3 года назад +1

    Pity Houdini doesn’t have better Python support.