Tool Creation in Houdini
Script Objective:
The user inputs the scale and number of objects, and the script generates a 3D grid of randomly colored shapes in Houdini, each within a separate geometry container.
1. A UI window pops up to query the user on which shape type to generate:
2. The user has to type in the number of objects created in length, width, and height using (length,width,height) to store the value so it can be used in the script
3. The user is asked to determine the scale of each object with a given range of 0.1 to 10.0. The script clamps the value to the specified range if the user inputs a value that is lower or higher than the minimum or maximum.
4. Example of 3x3x3 spheres with a scale of 5 and randomly generated colors for each shape node (Not related to the input value shown above):
Troubleshooting & Research:
1. Houdini kept crashing every time I queried a second time, and it made me annoyed enough to look for other alternatives. I also didn't want the user to have to type the object shape types, as typos can occur, so I looked for a solution involving the UI. The Houdini documentation page proved helpful for this.
Perforce File Path:
//CLASSES/Cohort22/Students/Jocelyn.Fayola/Tech Art/Python/HW8.py