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

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

КОМЕНТАРІ • 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 Рік тому

    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 16 днів тому

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

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

  • @gagaforkim
    @gagaforkim 2 роки тому

    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!

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

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

  • @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 2 роки тому

    how i can reload module in callback script

    • @viktors_anfimovs
      @viktors_anfimovs  2 роки тому

      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 2 роки тому

      @@viktors_anfimovs Thank🤩 you

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 3 роки тому +1

    Pity Houdini doesn’t have better Python support.