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.
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.
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!
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.
@@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
@@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.
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
This is so useful and answers the exact question I've been looking for. Thanks so much for sharing
Thank you, just used that.👏
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.
That dosent sound right. only thing i can imagine, is if weather you press on apply and not accept. Never had this problem.
Run into an issue with python scripts stored on another drive not being found with __import__
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?
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.
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!
Its a 3rd party program called groupy.
great tutorial, it help a lot. Do you think is possible via python to inject script in parm from node creation ?
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.
@@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
@@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.
@@viktors_anfimovs yeah its not very intuitive for artist to deal with PyQT. Thanks for your work.
how i can reload module in callback script
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
@@viktors_anfimovs Thank🤩 you
Right-click on any parameter > More > Delete Spare Parameter
that's a lot of clicking
Pity Houdini doesn’t have better Python support.