Houdini Version: 19.0.531
Hi all,
Apologies if this is a known issue as I am relatively new to Houdini. In Houdini it appears that using os.listdir() and os.walk() in a HDA python module causes Houdini to become unresponsive and the file and HDA to be un-openable(I assume the functions are recursive somehow). I am trying to write a pipeline script to simplify asset importing with ordered menu boxes that update depending on the file structure. To do that, the job menu must search through the server file list and update to list the available directories. The server addresses have been changed to generics. The python code is attached and the parameter side is just 3 Ordered Menus with names of serverName, jobName, and assetName each with their respective caller functions in their menu scripts. What is going wrong and what is the correct way to search file systems in a HDA python module?
Cheers,
Stephen
HDA crash using os.listdir() and os.walk()
1381 1 1-
- stephenscollay
- Member
- 5 posts
- Joined: July 2022
- Offline
-
- stephenscollay
- Member
- 5 posts
- Joined: July 2022
- Offline
A day wasted, but for those who care, the menu script in ordered menus run multiple times (https://www.sidefx.com/forum/topic/66519/) so checking on larger file systems would cause it to become unresponsive due to the load. Menus are stored as global variables in the python module and are accessed and changed through a set of menu getters and setters with the setters containing the logic and only running in the callback of the previously selected menu.
-
- Quick Links
