Jump to content

Search the Community

Showing results for tags 'python'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 433 results

  1. Hi, I have a problem, I export a csv table from matlab (I tried single and double) and then import it in houdini but after the importation data are changed as you can see in attachment the real maximum is 4.3392 and is located at the first row, after importation the max is 999099 and is located at the row 485 :/ Someone knows what happend ? I have attached the table Thanks Alex BubblesDensity_debug.csv
  2. Hello, I hope somebody can help me out as I have run into a problem when linking ramps via script that I have been unable to solve for more than a week now. What I would like to achieve is exactly the same effect that using "Copy Parameter" / "Paste Relative References" does when doing this from the user interface. I tried both python and hscript. The problem is that once the ramps are linked, when I add new control points to the parent, the child gets the control points but doesn't get the positions (ramp#pos) and values (ramp#value). In python I simply tried to set one float ramp parm to the other like this: hou.parm("/obj/node_B/ramp_B").set(hou.parm("/obj/node_A/ramp_A")) This seemed like the most simple and straightforward way of doing this but it failed so I reported it to the SideFX guys and they confirmed that python is not feature-complete for linking ramps with the .set() command - first they logged it as Bug #97192 then it was reconsidered to be an RFE with the same ID. After this SideFX suggested to use hscript opmultiparm which I proceeded to do but the ramp linking failed this time too. I am fairly confident using python but not so much with hscript so I am hoping it's my inability to use hscript properly this time rather than another bug - this is what I did: opmultiparm /obj/node_B/ 'ramp_B#pos' '/obj/node_A/ramp_A#pos' 'ramp_B#value' '/obj/node_A/ramp_A#value' 'ramp_B#interp' '/obj/node_A/ramp_A#interp' What I noticed in the "Edit Parameters" interface is if I manually type in the path to link the ramps then it does work the same as "Copy Parameter" / "Paste Relative References" - see below. I wonder if this field is exposed to python or hscript somewhere and maybe I should try to set this? Other than the above I also used both opscript and .asCode() after setting up the ramps links manually to see if it gives me the proper code and even if I run the code I get back from these the ramp linking still fails. Has anybody ever found a reliable solution for linking ramps in script? Anybody got any ideas where to go from here?:) EDIT: I found the solution on the SideFX forum by user jsmack in this post: https://www.sidefx.com/forum/topic/59899
  3. Hi, Can it be possible ? If I have an invisible parameter but I would like to see its keys on the timeline. Just a kind of visual purpose. A similar thing like a DOP cached frames. THX! G
  4. Hello, I am trying to set the path of the current scene viewport via a button press from a hda. I know these python docs below are the key, but I can't seem to tie the relevant python functions together. https://www.sidefx.com/docs/houdini/hom/hou/PaneTab.html https://www.sidefx.com/docs/houdini/hom/hou/PathBasedPaneTab.html https://www.sidefx.com/docs/houdini/hom/hou/SceneViewer.html https://www.sidefx.com/docs/houdini/hom/hou/GeometryViewport.html Any help would be great. Thanks, -Ben
  5. Can I force the scene view to 'homeToSelection' ? I found the hou.GeometryViewport class but how can I get it in h16.5 ? THX!! G
  6. Any python wizards? Confused about the various python installs both in OSX and Linux. When I do a python -V in terminal OSX I see Python 2.7.16. Yet in the Houdini Python shell I see Python 2.7.15 (default, Dec 12 2018, 14:09:37) > Where exactly is the location for the default Python install for Houdini in both OSX and Linux? And how can I change this?
  7. Python, Get current node

    Using python, how can I get my current node. Not the selected node, but the node that I'm currently in. In my search I keep coming across hou.pwd(), but that always just returns / whenever I try it. I figured out how to get the parent of a selected node, but that doesn't work if you don't have anything selected. Thanks for any help!
  8. Hi, Can I force Houdini UI to update selected object property page ( Or refresh all Houdini UI ). ( I change the selection in a python scipt ) Thanks !! G
  9. what are scriptargs?

    in hython I don't know what are scriptargs. I found reference to kwargs, but scriptags remain enigma
  10. Hello, everyone! I want to change the height of the tube by collecting the data from arduino. I refer to this tutorial, but it seems that I still have some problem with it. The screenshot are posted below. Can anyone help me with it? The error message shows like this : Error: Unable to evaluate expression ( Traceback (most recent call last): File "<stdin>", line 2, in expression File "opdef:/Object/gwPlatform?PythonModule", line 18, in getHeight File "opdef:/Object/gwPlatform?PythonModule", line 8, in updateValues AttributeError: 'module' object has no attribute 'ser' (/obj/gwPlatform1/tube1/tube1/height)).
  11. Python Audio Import...

    After a request from @srletak I post my python audio import HDA here. This is the original post this was used for: Multiple qualifiers apply: - This was my first python script and I somehow do not really agree with this funny language so far (was raised on C...) so it's really hacked together without me knowing what I do. - I didn't know where to put the library I used for import so I copied the relevant part into the script directly. - This is the library: https://github.com/mgeier/python-audio/blob/master/audio-files/audio-files-with-wave.ipynb - I only wanted to load 24Bit, 48KHz, Stereo Wave files, so that's the only thing it deals with - one small sample .wav is included. - I didn't understand how to make python read a spare parameter so you have to go into the code of the HDA and set the path to the audio file manually (I marked the line in the script). - Since geometry generation with python turned out to be abysmally slow, I removed the code for that and only import the points and some file info (see the detail attributes). - There is one group for the left channel to help separate left and right. The included .hip file does nothing but load the HDA. You can then go into the code (rightclick the node -> Type Properties -> Code) and enter the (absolute) path to where you put the audio file. This gives you every sample of the wave file as a point in space for further mangling. I'm sure a real Python wiz can do a much better job, so if you improve the script, feel free to post it here or do with it whatever you want. This was created in Houdini Core 16.5. Cheers, Tom AudioImport.zip
  12. Hi, I am trying to get a list of all the extensions that file sop can read/write, for example: bgeo.sc, vdb, abc, etc - with python. Is there a way to load them all into an array without writing it manually one by one? Thanks
  13. I'm with Houdini 17.5 and when I import a usd/usda file, I can go through the menu , and select the usd/usda file I would like to open in the Choose Geometry dialog. My question is how can I import through a Python script, to do the same thing and not to bother the UI operations? The original post and updates are here: https://www.sidefx.com/forum/topic/65721/?page=1#post-281454 and put it here too to try to get more help. Any help is welcome!
  14. Hello, guys! Recently, I'm trying to do a project that needs to connect houdini with arduino. I want to use the data I got from ultrasonic sensor from arduino to change the height of a tube in houdini. But it seems that there are some problems of the connection, Anyone can give me some advice? This is the error message that I got from the software: Error: Unable to evaluate expression ( Traceback (most recent call last): File "<stdin>", line 2, in expression File "opdef:/Object/gwPlatform?PythonModule", line 15, in getHeight File "opdef:/Object/gwPlatform?PythonModule", line 3, in updateValues AttributeError: 'module' object has no attribute 'updateFrame' (/obj/gwPlatform1/tube1/tube1/height)) And here are some screenshots of my project.
  15. Hello, I am able to select visible geometry manually, or even make a script to toggle the option to select geometry manually. But I'm wondering if there is a way to automatically select visible geometry only via a script? I have been unable to figure it out but it would be awesome if possible (may not be possible though?). Thanks! Ant
  16. Groupselection inside HDA

    Hey there! Im developing some HDA´s for my Bachelor Project! My actual Problem is about the Action Button for a Prim Group Selection. Right now im running the standart Action Button script below: import soputils kwargs['geometrytype'] = (hou.geometryType.Primitives,) kwargs['inputindex'] = 0 soputils.selectGroupParm(kwargs) But, of course it does refer to the Node above the Subnet. My question is: How can i refer to the Node above the Selction Node inside the Subnet ? Is it a Python Callback Script or is it something below the Action Button ? Thank you very much Max
  17. Hey there! Im developing some HDA´s for my Bachelor Project! My actual Problem is about the Action Button for a Prim Group Selection. Right now im running the standart Action Button script below: import soputils kwargs['geometrytype'] = (hou.geometryType.Primitives,) kwargs['inputindex'] = 0 soputils.selectGroupParm(kwargs) But, of course it does refer to the Node above the Subnet. My question is: How can i refer to the Node above the Selction Node inside the Subnet ? Is it a Python Callback Script or is it something below the Action Button ? Thank you very much Max
  18. I have a render.cmd file with a list of hip files to render: mread P:/PROJECTS/NSI/PROD/3D/scenes/RENDER/000/SHOT_010/RND_E000_S010_001.hiplc render -f 1 2 -V /out/RENDER mread P:/PROJECTS/NSI/PROD/3D/scenes/RENDER/000/SHOT_020/RND_E000_S020_001.hiplc render -f 1 2 -V /out/RENDER If I open hcmd.exe and run: hscript render.cmd I get all my shots rendered. The issue is that I can't get it working with Python, currently able only run Command Line Tools import subprocess cmdTools = '"C:/Program Files/Side Effects Software/Houdini 17.0.459/bin/hcmd.exe"' subprocess.call(cmdTools) but have no idea how to execute <hscript render.cmd> later...
  19. Hi Guys I have a fairly high res flip sim (by student standards, about 3 gig per frame) and I needed to cache it out as a .sim to utilise checkpoints I need to read this simulation in using playback simulation on the dopnet and a dop IO node with the flip presets in order to pull in the velocity fields for a whitewater sim, however when I do this the computer gets stuck on the first frame I load in. My only current solution is to go through every frame, unticking and reticking the playback simulation button which would take me 2 minutes of load time per frame for 432 frames. An alternative I've considered is the Houdini python module however I am not familiar with this and don't know if the required functions exist. Please could someone with more knowledge on this tell me if this is possible in the python module or whether there is an alternate solution such as a way to pull velocity fields from a .sim cache Thanks George
  20. HOUDINI TREE RIG LIBRARY

    TD - TREE RIG LIBRARY Beta Version Some Feature * procedural rig for any tree model * tree model library and ease to use ui * live connect to speed tree * fast instancing features * redshift compatibility and mantra Pateron PAGE : https://www.patreon.com/standingmanfx FB : https://www.facebook.com/standingmanfx/
  21. Hi, I have a button strip parm which is dependent on a parameter on the node itself. So when the parameter changes the button strip changes too. How do i force houdini to recook the menu items ? Thanks in Advance ! ! G
  22. Scipy

    What is the recommended procedure to install Scipy together with Houdini? I was following this Link but unfortunately it does not seem to work! http://wordpress.discretization.de/houdini/home/advanced-2/installing-and-using-scipy-in-houdini/ Cheers, P.
  23. Hello everyone, I am trying to apply facial autorig on a head geometry, but I can't generate a character mask after fitting the polygonal cage on the face. I get this same error on my Houdini console every time I click on the "generate character mask" button: Traceback (most recent call last): File "C:/PROGRA~1/Side Effects Software/Houdini 17.0.459/houdini/python2.7libs\autorigs\modules\advancedFace\advancedFaceGuideOptions.py", line 292, in onGenerateCharacterClicked self.model.generateCharacter() File "C:/PROGRA~1/Side Effects Software/Houdini 17.0.459/houdini/python2.7libs\autorigs\modules\advancedFace\advancedFaceGuideModel.py", line 120, in generateCharacter fxn() File "C:/PROGRA~1/Side Effects Software/Houdini 17.0.459/houdini/python2.7libs\autorigs\modules\advancedFace\buildAdvancedFaceGuide.py", line 156, in generateCharacter self.characterguides.generateCharacter() File "C:/PROGRA~1/Side Effects Software/Houdini 17.0.459/houdini/python2.7libs\autorigs\modules\advancedFace\character\buildCharacterGuide.py", line 122, in generateCharacter self.bakeCage() File "C:/PROGRA~1/Side Effects Software/Houdini 17.0.459/houdini/python2.7libs\autorigs\modules\advancedFace\character\buildCharacterGuide.py", line 173, in bakeCage idx = bs_idxmap.get(edit.name()) AttributeError: 'NoneType' object has no attribute 'name' By the way, this is what my polycage looks like, just in case there anyone notices something I'm missing:
  24. Hi ! Can anyone help me how to acces the menu from script (maybe hscript) : scene view / Camera / Restore Previous Camera. Thanks in advance ! G
×