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
  • 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 298 results

  1. 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
  2. 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!
  3. 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.
  4. 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
  5. 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
  6. 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
  7. 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...
  8. 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
  9. 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/
  10. 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
  11. 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.
  12. 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:
  13. Hi ! Can anyone help me how to acces the menu from script (maybe hscript) : scene view / Camera / Restore Previous Camera. Thanks in advance ! G
  14. Hello guys, I'm sorry for the little teasing title, but haven't found a solution so far, after reading docs and searching through forums. So here my questions: 1) In case of a viewport layout split in 2 (or more), I would like to know on which of the 2 viewports the radial menu is over. If the radial menu is aware of which viewport is underneath, it could set specific settings or object isolations for that particular viewport (like the viewport isolator node). I'm using the following code in my radial menu script, but it is always returning the first viewport, even when the radial menu is over the second viewport. import toolutils activepane = toolutils.activePane(kwargs) print activepane.curViewport() 2) Given a double display setup, with two Scene View panels (one on each display), I would like to know on which sceneviewer() the mouse cursor is over, and most importantly what are the (x,y) mouse coordinates relative to the viewport of that sceneviewer. Do you know if this is possible at all? I guess I could do something with the Mouse CHOP node and mapFromMouseChop() function, but Mouse Chop seems to be registering only the position of the mouse in the main Display. Is it not aware of the second display? 3) Bonus question: do you know how to refresh the 'radial menu' menu, so that newly installed radial menu files are loaded without need to restart Hou? Ideally I would like to embed a radial menu file in the 'extra file' section of my Digital Asset. OnCreated(), the asset would then save the radial menu file in the user preferences directory, and I would like the user to be able to use the new radial menu right away, without restart. Thanks for any help!
  15. Radial submenus access in Python

    Is there any way to get a reference to an existing radial submenu in Python? This code: if menu.item(location) == None: new_submenu = menu.createSubmenu(location, label='Next') #created a new submenu in existing radial menu new_submenu = menu.item(location) #trying to access the submenu by its location in the menu during the next call throws this error: AttributeError: 'RadialItem' object has no attribute 'item'
  16. How do I dynamically create and remove SOP nodes from a Multiparm Block List? dynamic_create_remove.hiplc
  17. LaidlawFX Toolset

    Hello all. I wanted to share my production library of tools I have posted on Github. Previously a lot of these were posted on Orbolt.com after my 2016 GDC talks. The tools were originally designed to be used in a HOUDINI_PATH style library as opposed to individual hdas. In this manner they can include a larger array of script based tools that don't fall in the paradigm of Orbolt. This toolset is generally complementary to the GameDev, Mops, etc toolset, there are only a few overlaps nowadays. There are two primary libraries of tools. https://github.com/LaidlawFX/LaidlawFX - This is the production library built up over the last decade of work that has been cleansed of studio specific work. This currently contains a set HDA's, a common python library, shelf tools, and example files on how to used the .hdas. Some fun tools in here are an Ivy Generator inspired by Thomas Luft Ivy generator http://graphics.uni-konstanz.de/~luft/ivy_generator/ . File Cache nodes that have been tested on over a dozen productions. RBD to FBX extractors, and an array of ROP tools. Also a module of python code that includes a few sub-modules such as verbosity logging, multiple hda queuing, fbx exporting, file explorer opening, and the large set of options for file caching. Additionally it contains shelf scripts so that you no longer need to use the Material Library, you can just tab and use the shaders like normal nodes. https://github.com/LaidlawFX/HoudiniEngineDev - This is over one hundred hda's to test Houdini Engine implementations in different DCC's and game engine. Each of them test a simple principle from UI parameters to different geometry types and more. Hope they help you at some point. Feel free to branch or leave comments here and I can update the source. Thanks, -Ben
  18. Hi, Can I register a shortcut, I mean a keyboard event for a specified node in Houdini Python ? Thanks, G
  19. VEX and HOM in external editor

    Hi, Just thought in ask if anyone knows of an external editor with vex and HOM libraries in them. You know to lazily have autofill and nice colors in an external editor (visual studio maybe??) Just kind of hoping that more advanced programmers here will have a better set up than mine
  20. Hi i want to assign a global variable as path for a rop node with python - but the thing is that python translates $F to the current frame, and every other parameter... node_rop.parm('sopoutput').set("$JOB/render/$HIPNAME.$F.bgeo.sc") gets translatet to /Users/xxxx/Project/render/path.12.bgeo.sc in the rop network so how can i assign a $F to a textinput field with python thank you for help!
  21. Hi All, Can a node store the sub-component selection of it but the node is not shown at the scene viewer ( but for example selected at the network editor ). And how can I get it ? G
  22. Hi, How can i get the actual parameter name ( or the parameter object ) from a parameter when using python expression on it. I mean something like this: hou.parm('.').name() but not works. In an object hou.pwd() but i need It on a parameter. THX! G
  23. Hello ! I'm trying to do some tests using rpyc to control Houdini over the network (currently only on the same computer) I managed to get it to work (creating some nodes, getting the frame range, setting the frame) But, strangely, I can't get the correct current frame number It will return 1.0, but if I use hou.setFrame(XX) it will then return that value (whatever XX was) even after manually changing the frame in Houdini I tried using hou.frame(), hou.expandString("$F") They both had the same problem My steps to get it to work were copying the rpyc folder at C:\Program Files\Side Effects Software\Houdini 17.0.XXX\python27\lib\site-packages to C:\Program Files\Autodesk\Maya2017\Python\Lib\site-packages In Houdini, open a Python Shell and write/execute import hrpyc hrpyc.start_server() In Maya, open a Python Shell and write/execute import rpyc connection = rpyc.classic.connect("localhost", 18811) hou = connection.modules.hou print hou.frame() # Returns 1.0 hou.setFrame(52) # Sets the frame to 52 print hou.frame() # Returns 52.0 print hou.expandString("$F") # Returns 52 But if you manually change the frame in Houdini and only execute the print hou.frame() line, the problem will be apparent Even in another Houdini instance the problem is present. import hrpyc connection, hou = hrpyc.import_remote_module() print hou.frame() Is there something I did wrong, missed or anything ? Thanks !
  24. Hey ODFORCE, Does PyCharm integrate with Houdini well? (Auto-completion, external debugging, unit testing?) Just curious. I did find some blog posts on VS Code set up, but I was curious about Houdini and PyCharm specifically. There was an issue with PySide from an earlier post..? (I'm fairly new to IDE set up, so forgive me if it's obvious) There are plugins for Nuke and Maya for PyCharm. Nothing for Houdini though.
×