Found 19 posts.
Search results Show results as topic list.
Technical Discussion » hbatch: Can't open dophints.cmd. No module named viewerstate
- leota
- 21 posts
- Offline
Technical Discussion » How to load different instances of HOU module?
- leota
- 21 posts
- Offline
Thanks for your help anyway! The resources you linked are definitely helpful, I'll have a deeper read about TOPs.
Technical Discussion » How to load different instances of HOU module?
- leota
- 21 posts
- Offline
What would happen if you reloaded hou again after assigning the sphere. Would it clear the assignments from before?It would still print out data from the sphere_scene, so it doesn't clear anything but instead keeps in memory the latest loaded file.
How are you using this script?I have extracted the problem from my bigger solution, so at the moment is a simple script which I run this way:
hython myscript.py
What's your particular use-case for having multiple hips in the same script?The particular use-case is a REST API web server that returns data about a specific scene file based on a given HTTP request.
For example:
GET /api/projects/sphere ==> will return info about sphere_scene
GET /api/projects/box ==> will return info about box_scene
I work-around that I've thought is to merge all the scenes into a single project file, but doesn't sound ideal since it would be hard to maintain it with a large number of files.
Is there any way you could leverage PDG to have multiple script instances running and sort of work around this issue in a way?I've never used PDG before, I was just reading something about to figure out how it could solve my issue. It would be great if you could provide an hint/example on how you would solve that with PDG.
Thanks a lot!
Technical Discussion » How to load different instances of HOU module?
- leota
- 21 posts
- Offline
Hi there,
I'm importing the hou module into a custom python script and I would like to have multiple scenes opened at the same time. This is how it is implemented:
As you can see, even though I've reloaded the hou module, it's still using the same hou instance for both hip files and therefore always returning the data of the latest loaded scene.
Is there a way to have different instances of the hou module so I can load and work on multiple different hip files in the same script? I've also tried to assign hou to different variables with no luck.
Any help would be highly appreciated, thanks in advance!
I'm importing the hou module into a custom python script and I would like to have multiple scenes opened at the same time. This is how it is implemented:
import sys from importlib import reload sys.path.append(HOUDINI_PATH) try: import hou except ImportError: print('houdini.py: There was a problem loading the hou module') box_hip = hou.hipFile box_scene = box_hip.load(path/to/box_scene.hipnc) print(box_hip.name()) # ==> box_scene.hipnc CORRECT reload(hou) sphere_hip = hou.hipFile sphere_scene = sphere_hip.load(path/to/sphere_scene.hipnc) print(sphere_hip.name()) # ==> sphere_scene.hipnc CORRECT # Let's print the name of box_hip again print(box_hip.name()) # ==> sphere_scene.hipnc WRONG
As you can see, even though I've reloaded the hou module, it's still using the same hou instance for both hip files and therefore always returning the data of the latest loaded scene.
Is there a way to have different instances of the hou module so I can load and work on multiple different hip files in the same script? I've also tried to assign hou to different variables with no luck.
Any help would be highly appreciated, thanks in advance!
Edited by leota - July 13, 2020 06:14:35
Technical Discussion » How do I completely wipe Houdini from Mac?
- leota
- 21 posts
- Offline
I've installed Houdini on my Mac, chosen an Apprentice License, and everything was working fine. After a month I started having issues with the license and I couldn't get it working, so just uninstalled Houdini through the provided uninstaller. When I installed it again, it would successfully install another Apprentice License but gets stuck at the splash screen during startup.
The exact same happened on another Mac machine. I tried to uninstall and re-install many times with no luck. I've then formatted one machine and finally got it working, but just for another month, then same story again.
Is there a way to completely wipe an Houdini installation from a Mac so if this happens I don't have to format my laptop?
The exact same happened on another Mac machine. I tried to uninstall and re-install many times with no luck. I've then formatted one machine and finally got it working, but just for another month, then same story again.
Is there a way to completely wipe an Houdini installation from a Mac so if this happens I don't have to format my laptop?
Technical Discussion » How to install Apprentice license via command line?
- leota
- 21 posts
- Offline
Technical Discussion » How to install Apprentice license via command line?
- leota
- 21 posts
- Offline
Hey there,
I'm trying to install Houdini on and headless Ubuntu server, using Docker. I don't need any GUI features, only need to run some hython scripts. I have installed it successfully but seems like I don't have any licenses installed.
If I run an hython command I get the following: No licenses could be found to run this application. Please check for a valid license server host
I tried to read the documentation about using the non-graphical License Administrator [www.sidefx.com] but haven't been able to install an Apprentice license.
Is that possible or do I need a paid license to do this?
I'm trying to install Houdini on and headless Ubuntu server, using Docker. I don't need any GUI features, only need to run some hython scripts. I have installed it successfully but seems like I don't have any licenses installed.
If I run an hython command I get the following: No licenses could be found to run this application. Please check for a valid license server host
I tried to read the documentation about using the non-graphical License Administrator [www.sidefx.com] but haven't been able to install an Apprentice license.
Is that possible or do I need a paid license to do this?
Technical Discussion » What license do I need to run Hython?
- leota
- 21 posts
- Offline
Hi there,
I'm developing a web app where users can view and slightly customize 3D models on the web. Basically, there's a web service which receives API request from the client app, runs some Hython scripts, and returns the computed geometry to the app.
Now I'm in the phase of working out the costs that I could possibly face, so I have a few questions:
Any help is highly appreciated, thanks in advance.
I'm developing a web app where users can view and slightly customize 3D models on the web. Basically, there's a web service which receives API request from the client app, runs some Hython scripts, and returns the computed geometry to the app.
Now I'm in the phase of working out the costs that I could possibly face, so I have a few questions:
- What kind of license do I need for this? Houdini Core, FX, Indie? Need to consider that this could possibly be for commercial use in the future, but at the beginning it would be completely free, so I will not make any money out of it. It would be good to know if I can just use an Indie license at the beginning.
- If my app scales, so I need to run Hython on multiple servers, do I need a license for each server?
- Can I run parallel Hython jobs on the same server?
Any help is highly appreciated, thanks in advance.
Edited by leota - Feb. 17, 2020 08:48:17
Technical Discussion » Importing hou module in custom python script
- leota
- 21 posts
- Offline
Technical Discussion » Importing hou module in custom python script
- leota
- 21 posts
- Offline
Time ago I was doing some tests running some python commands through a web API. In my python server script I was importing the hou module like so:
and the running in the terminal: hython run.py
Everything used to work.
Now I'm getting the following error:
Have any ideas??
import sys try: import hou except ImportError: print 'There is a Problem in the File: run.py' sys.path.append("/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs") import hou
and the running in the terminal: hython run.py
Everything used to work.
Now I'm getting the following error:
Traceback (most recent call last): File "<string>", line 8, in <module> File "/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py", line 56010, in <module> import houpythonportion File "/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py", line 6, in <module> import gzip File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 10, in <module> import io File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module> import _io ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so Expected in: flat namespace in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so There is a Problem in the File: server.py please edit the path to houdini installation Traceback (most recent call last): File "run.py", line 10, in <module> import hou File "/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py", line 56010, in <module> import houpythonportion File "/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py", line 6, in <module> import gzip File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 10, in <module> import io File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module> import _io ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so Expected in: flat namespace in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Have any ideas??
Work in Progress » Houdini - Strudel simulation
- leota
- 21 posts
- Offline
Hi there, here's my strudel sim WIP. I'm using solid objects for the pastry and FLIP for the cream (which really need some fixes).
Please post your comments
https://vimeo.com/83438208 [vimeo.com]
Please post your comments
https://vimeo.com/83438208 [vimeo.com]
Houdini Lounge » H13 using proxy geo for solid FEM sims
- leota
- 21 posts
- Offline
Found the solution here http://www.sidefx.com/docs/houdini13.0/dyno/solids#geometry [sidefx.com]
Houdini Lounge » H13 using proxy geo for solid FEM sims
- leota
- 21 posts
- Offline
Hi there, as the title says I'm trying to simulate a collision of a solid FEM object and I would like to use a lowres proxy geometry. I've followed this procedure to do so:
http://www.sidefx.com/docs/houdini13.0/shelf/embedhighresobject [sidefx.com]
the problem is at the step 2 when I click on the solid tab to convert the lowres geo to a solid FEM, it tetrahedralizes my geo stupidly increasing the numer of primitives, so it's not lowres no more and the embed highres geo results to have less primitives than the lowres. How do I manage this?
http://www.sidefx.com/docs/houdini13.0/shelf/embedhighresobject [sidefx.com]
the problem is at the step 2 when I click on the solid tab to convert the lowres geo to a solid FEM, it tetrahedralizes my geo stupidly increasing the numer of primitives, so it's not lowres no more and the embed highres geo results to have less primitives than the lowres. How do I manage this?
Technical Discussion » Calculate angles for each point of the geometry
- leota
- 21 posts
- Offline
Hi there, I have a problem calculating angles using a vopsop.
Basically I have a grid with 4 points and I would like to calculate the angle of each of them using a vopsop.
I'm doing likr this:
angle = acos(dot(normalize(v1),normalize(v2)))
but I'm definitely not getting the right angles. I don't know what I'm doing wrong. I've attached an .hip if that can help
Thanks in advance
Basically I have a grid with 4 points and I would like to calculate the angle of each of them using a vopsop.
I'm doing likr this:
angle = acos(dot(normalize(v1),normalize(v2)))
but I'm definitely not getting the right angles. I don't know what I'm doing wrong. I've attached an .hip if that can help
Thanks in advance
Technical Discussion » Digital asset creation problem
- leota
- 21 posts
- Offline
Thanks rafaels. What language should I use for the script? Would you mind to give me a little example of the onCreated script? something simple like create a geometry node when the asset is created, just to understand the structure of the script, I can then develop it myself
Technical Discussion » Digital asset creation problem
- leota
- 21 posts
- Offline
Hi there, I'm creating a digital asset which will be a Sop operator, but I have a problem. An attribute inside the asset references to a node at the scene level so I'm not able to encapsulate it into the asset.
I've tried to move this node inside but it messes up my attribute. It needs to stay at the scene level.
My question is: is there a way to create a digital asset which, when created, automatically creates this node at the scene level?
Thanks in advance
I've tried to move this node inside but it messes up my attribute. It needs to stay at the scene level.
My question is: is there a way to create a digital asset which, when created, automatically creates this node at the scene level?
Thanks in advance
Technical Discussion » Error loading scene file
- leota
- 21 posts
- Offline
Technical Discussion » Error loading scene file
- leota
- 21 posts
- Offline
Hi there, I'm trying to open a .hip file but I get this error.
I'm using H12.5 on windows 7 64 bit. It only happens with that .hip file, I've tried to google the error but I found nothing. Any ideas?
Thanks
I'm using H12.5 on windows 7 64 bit. It only happens with that .hip file, I've tried to google the error but I found nothing. Any ideas?
Thanks
Work in Progress » Audio driven animation
- leota
- 21 posts
- Offline
Hi there
this is one of my latest works, an experiment of audio driven animation.
Hope you like it!
http://vimeo.com/68778423 [vimeo.com]
this is one of my latest works, an experiment of audio driven animation.
Hope you like it!
http://vimeo.com/68778423 [vimeo.com]
-
- Quick Links