Search - User list
Full Version: How to include wedge's parameter information in the output.
Root » PDG/TOPs » How to include wedge's parameter information in the output.
Sorry, I am sure this came up many many times already, I just didn't know what to look for..

My goal is to create a large number of geos in a sim, and have a list of the corresponding parameters, to be able to see which values resulted in something I like.

Noise Type

Now I would like to output each wedge's parameters, either to a (separate) text file or a list, with the wedgeindex and all the changing parameters

Noise type: Alligator
Frequency: 0.1
Roughness: 0.5

Or, I don't know if it is bad practice to have long names.. include the parameters in the file name?


Not sure how to achieve this
Alternatively, how could do I make the Font SOP display a Parameter's name and the currently set value?

If you want to include the values in the file name, you can use the @attrib syntax to access the wedge values. For example, $HIPNAME.$OS.`@noise`.`@roughness`.$, assuming your wedge is creating "noise" and "roughness" attributes. If you want to pad the values, for example to 4 digits, you can use padzero(4, @roughess) or @roughness:4. Finally, if the values have multiple components they can be access with their component suffix: $HIPNAME.$OS.`@roughness.x:4`.`@roughness.y:4`

TOPs also has a Text Output node which can be used to write the values to a text file. The text field on that node can contain expressions as well -- just like any other string parm, it needs backticks. You could for example wire it after the ROP Geometry that's writing out .bgeo files, and use it to write out a corresponding .txt file with the wedge variations. For example, assuming the attributes exist:

Wedge Parameters
Noise Type: `@noise`
Frequency: `@frequency`
Roughness: `@roughness`
Thank you very much for the detailed and understandable explanation.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB