:/
any help?
Found 6 posts.
Search results Show results as topic list.
Technical Discussion » problems about setting multi-parm in HDA processor
- richard269090576
- 6 posts
- Offline
Technical Discussion » problems about setting multi-parm in HDA processor
- richard269090576
- 6 posts
- Offline
SWestthanks, i knew using parm as variables, but the main point it i dont have place to insert them since they were not generated before the multi-parm has been assigned a proper value.where to put my variables.
Just a quick suggestion could be to use the parm itself as a variable. Then build your code around that so it works. Use try and except to avoid errors.
Technical Discussion » problems about setting multi-parm in HDA processor
- richard269090576
- 6 posts
- Offline
Hey guys, i have been developing my HDA tool for weeks and finally its done. the tool helps me generate a set of wall modules that could be used in my procedural building generation tool.
in my HDA tool, i need to assign a integer value(Let's say 'N') that represent the total number of sidewalls(which is a multi-parm), then the tool would generate N setting tabs for each sidewall. and in each tab i could further customize the details of each sidewall.
now, in order to batch generate many sets of modules, i was considering putting my HDA in PDG to automate the process.
During the process, there are two problems that i need to solve.
1. in my HDA tool ,there are constriants between some HDA parms that i implemented using callback scripts. however, in TOPS network, since the parms were assigned in parallel. the callback scripts constriant wont work properly. My current solution is to pre-generate all params in a python scripts.
2. now comes to the second issue, since i was using multi-parms in my HDA, the children tabs wont appear until the number('N') generated and assigned to it. so i have no idea where to put my variables.
any suggestions would be appreciated!
Edited by richard269090576 - 2023年9月27日 00:20:22
Technical Discussion » how to get the Value from the Parameter in a HDA PythonModul
- richard269090576
- 6 posts
- Offline
mandrake0how to get HDA's parm value in a loop? say i have a grid node inside a HDA with a dynamic chaning sizeX in a for loop. is there any way i could get the sizeX value on each iterations?
solved....
one beer and the problem was solved :-)
hou.pwd().parm("wantedParameterValue").eval()
Houdini Indie and Apprentice » how to create parameters for HDA from node by python
- richard269090576
- 6 posts
- Offline
KimorizonThanks for the info, it's really helpful
Hi, you might have already worked it out, but otherwise I've been looking into something similar and this might be of help:
found this post on gfxhacks [gfxhacks.com] with some very clear explanations and examples on how to create parameters through python in Houdini, and in combination with the Houdini documentation on parmTemplates [www.sidefx.com] it got me pretty far.
I've been running the creation of my parameters in the scripts section of the hda, where you can select some different event handlers on when to run the script, but I linked mine to a button parameter so it loads the script every time I press the button.
Not sure if this exactly what you're looking for but I hope it helps.
Houdini Learning Materials » Connect points, looking (aiming) to each other. VEX.
- richard269090576
- 6 posts
- Offline
AizatulinWhere can we find the other filter like you mentioned? i would love to read the vex code and learn from it!
If you loop for every point over all other points, you can also apply several filters. Here are some examples (in VEX):
- Height Filter (to detect, if the y-Component is in a specific range from base point)
- Intersection Filter (to detect, if a direct line has an intersection with the geometry)
- Cone Filter (to detect, if the angle of the direct line to the normal is small enough)
- xz-Filter (to detect, if two points share the same xz-value)
- Min/Max Distance Filter (to detect, if the length of the direct line is small/great enough)
-
- Quick Links