![]() Eventually, when I get a related problem probably I should dig to the next level in this area but for now I must look for quick (and simple) solutions. I’ve done multiprocessing before but I think it is overkill to do something like that only for some very fundamental problem or need. Otherwise I will add too much complexity with my own functional programming. My philosophy for Houdini at the moment is primarily just finding out what solutions are already implemented in this huge system or app (if you prefer). In some cases you might prefer to do something else while you are waiting - effectively running the process in the background. It is not a big deal because Houdini is not just a terminal where you can run simple scripts. subprocess in the background subprocess in the background In the previous examples we ran the external command and then waited till it finishes before doing anything else. Additionally I noticed that placing several input() to ask a user for text will not work as expected either. ![]() ![]() Python 3.10+ Python 3.9+ Python 3.6+ Python 3.10+ non-Annotated Python 3.6+ non. ![]() The only core issue, that might be a good thing, I found is that Python scripts from the shelf by default will lock the Python shell and it seems the entire GUI. You can define background tasks to be run after returning a response. Yeah, I bet sidefx has a bunch of solutions already implemented. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |