I am trying to get/set the current active tab of a multiparm in my hda but am having no luck, it seems this has been asked multiple times in the past with no answer:
https://www.sidefx.com/forum/topic/35316/?page=1#post-328289 [www.sidefx.com]
so I'm adding to the pile... is there any way to do this? it really makes interaction difficult.
Found 43 posts.
Search results Show results as topic list.
Technical Discussion » getting/setting active tab in a multiparm
- asmischney
- 81 posts
- Offline
Technical Discussion » How to clear a Stash in an HDA
- asmischney
- 81 posts
- Offline
tamteasmischneyAs I said, promote the stash data parm to your HDA
If i dont set the stash as editable i get this
Ok, i get it now!
this is not just a label, which it looks like, its the geometry itself.
to anyone else showing up asking the same question, drag this into your HDA params. it can be set as hidden
thanks!
Technical Discussion » How to clear a Stash in an HDA
- asmischney
- 81 posts
- Offline
tamteasmischneyDon't make the node editable
, its exposed and I have set the stash to "editable"
Only promote the stash dataparm (or also the buttons if you are using those unless you have custom ones) and as long as it's default value is empty it should always save into definition as empty
If i dont set the stash as editable i get this
Technical Discussion » How to clear a Stash in an HDA
- asmischney
- 81 posts
- Offline
tamteasmischneyDon't make the node editable
, its exposed and I have set the stash to "editable"
Only promote the stash dataparm (or also the buttons if you are using those unless you have custom ones) and as long as it's default value is empty it should always save into definition as empty
Im not sure i follow, if i dont make the stash node editable i would get errors when the hda was locked and someone tried to use it
Technical Discussion » How to clear a Stash in an HDA
- asmischney
- 81 posts
- Offline
I am working on an HDA where I have a stash in the HDA, its exposed and I have set the stash to "editable"
my issue is that in development when I save the HDA it also saves the contents of the stash to the HDA, which balloons the size of the HDA and gives bad feedback to the end user. how can I clear the stash when I save the HDA?
my issue is that in development when I save the HDA it also saves the contents of the stash to the HDA, which balloons the size of the HDA and gives bad feedback to the end user. how can I clear the stash when I save the HDA?
Technical Discussion » cant seem to get parameter from method is pythonModule
- asmischney
- 81 posts
- Offline
viklc
Hey,
pwd returns the reference to the current node from where the function is being called. Since you are referring to the Python module from a node /sphere1/ inside the HDA, you will get an error message as the Sphere does not have the parameter "newparameter".
You could now rewrite the function in your Python module to return a reference to the parent node:def testnode(): newparametervalue = hou.node("../").parm("newparameter").eval() #or newparametervalue = hou.pwd().parent().parm("newparameter").eval() return newparametervalue
And access the function from the sphere like this:hou.node("../").hdaModule().testnode()
It looks so obvious now, that works!
thank you. Houdini is the king of giving me imposter syndrome lol
Technical Discussion » cant seem to get parameter from method is pythonModule
- asmischney
- 81 posts
- Offline
This is driving me crazy, and google is not being helpful.
I am trying to read a parameter from my HDA in a method and it just is not working, it seems so simple but I cant find any examples showing this working. Any help greatly appreciated!
I am trying to read a parameter from my HDA in a method and it just is not working, it seems so simple but I cant find any examples showing this working. Any help greatly appreciated!
Technical Discussion » Hair Card Texture utility, cant get it to work?
- asmischney
- 81 posts
- Offline
I have a groom asset and have generated cards, I'm trying to test the hair card texture tool:
https://www.sidefx.com/docs/houdini/shelf/groom_haircardtexture.html [www.sidefx.com]
after clicking the tool on the shelf the only object, it looks like it will allow me to select is the hair cards, i do so and press enter, however, I get nothing but an error saying "No groom objects selected."
Not sure what I am supposed to do, and I cant really find examples using these tools.
https://www.sidefx.com/docs/houdini/shelf/groom_haircardtexture.html [www.sidefx.com]
after clicking the tool on the shelf the only object, it looks like it will allow me to select is the hair cards, i do so and press enter, however, I get nothing but an error saying "No groom objects selected."
Not sure what I am supposed to do, and I cant really find examples using these tools.
Technical Discussion » permissions issue trying to execute height-field output node embedded in hda
- asmischney
- 81 posts
- Offline
tamte
it's just an unfortunate design of that node and a few others, it's simply explicitly setting some (hidden) parameters upon execution, whose if not promoted are locked, so it will error out
I consider this a bad practice in HDA design as a part of HDA workflow is embedding, if a node is not easily embeddable, then it's a nightmare to use it in setups and can break carefuly crafted workflows when there is a time to scale and include them as a part of more user friendly wrapper assets
you should still be able to use it fully if you promote (and maybe hide) all the parameters that node tries to set
I guess the issue is that if sidefx fixes this it will “break” people who have worked around it.
id still prefer if they fixed them and just gave us a heads up.
Technical Discussion » permissions issue trying to execute height-field output node embedded in hda
- asmischney
- 81 posts
- Offline
Synnoid
Thanks a lot for posting your fix, I was pulling out my hair over this.
houdini… we are all in this together lol
Technical Discussion » transfer a meshes colors to a heightfield.
- asmischney
- 81 posts
- Offline
so after beating my head into a wall i think its time i asked the forums to see if anyone has an answer…
I have a height field, and i have a mesh. the mesh has vertex colors. i want to transfer the mesh color to the height field.
not sure if this is possible? anyone try this before?
I have a height field, and i have a mesh. the mesh has vertex colors. i want to transfer the mesh color to the height field.
not sure if this is possible? anyone try this before?
Technical Discussion » "SHOPs are obsolete as of Houdini 16."
- asmischney
- 81 posts
- Offline
mkpsvery helpful!
In case you don't know already, you can also find out the material node's type if you drop down the material, drag it into the python shell and write after it “.type().name()” and it will return the type name. ie:hou.node('/mat/principledshader1').type().name()
Technical Discussion » "SHOPs are obsolete as of Houdini 16."
- asmischney
- 81 posts
- Offline
mkpsawesome, that should open the way for me.hou.node("/mat").createNode("materialbuilder")
right now I am learning about how the new shader stuff works in houdini.
I really only need a simple diffuse shader with nothing fancy.
Thanks so much, houdini sure is an adventure to learn!
Technical Discussion » "SHOPs are obsolete as of Houdini 16."
- asmischney
- 81 posts
- Offline
BabaJ
Do you know how to set up material networks manually first?
Then maybe you could then do it with python?
I'm not well versed in python.
Perhaps you could give a simple example of how you normally do it in shops,
and someone could suggest how it might be altered for material network.
well, in python:
hou.node("..").createNode("shopnet")
I'll go through the new tutorials
Edited by asmischney - May 8, 2019 12:40:06
Technical Discussion » "SHOPs are obsolete as of Houdini 16."
- asmischney
- 81 posts
- Offline
BabaJ
Material Networks.
https://www.sidefx.com/tutorials/houdini-16-masterclass-custom-shading/ [www.sidefx.com]
any pointers on how i can construct these automatically through python?
Technical Discussion » "SHOPs are obsolete as of Houdini 16."
- asmischney
- 81 posts
- Offline
looking at the documentation and the “whats new” I keep seeing that SHOPs are obsolete, yet I find almost no information on moving away from using shops.
right now its pretty straight forward to create SHOPs and set them up automatically in python scripts, I am finding almost no information on how to move away from using them and moving to the “VOP-based shader workflow”
is there any place to read how to migrate to this new method? How do I create materials through python in the /mat network? Every example I find still uses SHOPs, even the sidefx FBX importer.
right now its pretty straight forward to create SHOPs and set them up automatically in python scripts, I am finding almost no information on how to move away from using them and moving to the “VOP-based shader workflow”
is there any place to read how to migrate to this new method? How do I create materials through python in the /mat network? Every example I find still uses SHOPs, even the sidefx FBX importer.
Technical Discussion » script sop broken?
- asmischney
- 81 posts
- Offline
bonsak
Hi
You have to wrap the path to your script like this:execfile('$HIP/Desktop/test.py')
-b
thanks, but I still think this is a bug. why give a file selector if it just gives you an invalid result?
Technical Discussion » script sop broken?
- asmischney
- 81 posts
- Offline
this sop:
https://www.sidefx.com/docs/houdini/nodes/sop/script [www.sidefx.com]
I made a simple python script (print “hello” saved as a .py file) and added it with the file picker, it errors out every time.
Python error: SyntaxError: ('invalid syntax', etc…
if i type the code directly into the script section it works. i dont think this is how it was intended to function, why have a file picker if it doesn't work?
https://www.sidefx.com/docs/houdini/nodes/sop/script [www.sidefx.com]
I made a simple python script (print “hello” saved as a .py file) and added it with the file picker, it errors out every time.
Python error: SyntaxError: ('invalid syntax', etc…
if i type the code directly into the script section it works. i dont think this is how it was intended to function, why have a file picker if it doesn't work?
Technical Discussion » trying to pass a detail into a string giving me trouble...
- asmischney
- 81 posts
- Offline
jsmackDOH!is for string attributes.details('/path/to/node', 'attribname')
knew it was something simple. thanks!
Technical Discussion » trying to pass a detail into a string giving me trouble...
- asmischney
- 81 posts
- Offline
I have a detail attribute I'm trying to pass into an HDA but it just will not “take” for me, it doesn't evaluate.
if I try to read the detail inside the digital asset it comes back as “0”
if I try to read the detail inside the digital asset it comes back as “0”
-
- Quick Links