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 340 results

  1. 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/
  2. 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
  3. 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.
  4. 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:
  5. Hi ! Can anyone help me how to acces the menu from script (maybe hscript) : scene view / Camera / Restore Previous Camera. Thanks in advance ! G
  6. 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!
  7. 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'
  8. How do I dynamically create and remove SOP nodes from a Multiparm Block List? dynamic_create_remove.hiplc
  9. 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
  10. Hi, Can I register a shortcut, I mean a keyboard event for a specified node in Houdini Python ? Thanks, G
  11. 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
  12. 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!
  13. 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
  14. 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
  15. 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 !
  16. 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.
  17. mapToWorld for non-single viewer layout

    How to use hou.GeometryViewport.mapToWorld() if the scene viewer is set to non-single layout. I can get mouse position with Qt, but can't calculate offset for different layouts. Works well in single persp mode
  18. detecting keyframes with pyton

    Hi Guys I have a very specific request from an animator working in houdini. He wants to have all his animation curves on the objects being animated, he doesn't want to be worrying on parenting or constraints. Right now I have a working tool which it is looking at the values of a source object and keying them to the same parameters on a target object. No problem. But if I wanted to minimize the amount of key frames being created, how would I do that? I can't seem to find a python function for "if key frame present, then..." So my question is, is there a way in Python to detect key frames and execute a function only when one is detected? Any help would be appreciated.
  19. Hi, I need to replace the interface of the houdini rop network with my own panel. I use it for sending renders to farm etc. I use the 'oppresetload' to load my property page to the node itself. The issues come when i want to change a few thing on the interface by a python script ( parameter labels and script callback of buttons -> see script bellow ). The issues are: folder conditional strings are cleared, some parameter type changes ( button strip ). My question is: What is the proper way of replacing a node's interface without Digital Asset ? THX! G Label change: ptg = parm_obj.parmTemplateGroup() parmname = 'active' pt = ptg.find( parmname) if is_sim == '1': rop.parm('issimtoggle').set(1) # pt.setLabel('Active / [ SIM ] / '+self.version) elif is_sim == '0': rop.parm('issimtoggle').set(0) # pt.setLabel('Active / [ RENDER ] / '+self.version) ptg.replace( parmname, pt) parm_obj.setParmTemplateGroup(ptg) button Callback change Script : parm_obj = rop ptg = parm_obj.parmTemplateGroup() pt = ptg.find( parm) pt.setScriptCallback( script) pt.setScriptCallbackLanguage(hou.scriptLanguage.Python) ptg.replace( parm, pt) parm_obj.setParmTemplateGroup(ptg)
  20. Getting view 2d rect from 3d geometry

    Can I get somehow 2d rect from SOP geometry using viewport transformation matrix?
  21. Hello! I am creating a python script that search for all the textures used in the project and copies them in a folder $HIP/textures. After that, it converts the path to $HIP/textures/[texture_name]. It works fine until there isn't a variable like $F in the string. If this is the case, it copies just the first frame and not the full sequence. What I am using to collect all the textures path is a line from a code I've found: files = glob.glob(hou.expandString(re.sub(r'\$F\d', "*", parm.unexpandedString()))) Being a python newbie, I am not really sure to correctly understand what it does in order to fix this issue. I got more or less that re.sub replace the first argument (\$F\d) with the second argument ("*") inside the text of the third argument. Is all the expandString and unexpandedString that confuses me. Seems like that this function just returns the string value at the current frame? What if I want to get all the textures/files? Thanks in advance for any help/suggestions
  22. Hi, How can I set conditional string ( hide when ) on folder parameter by python ? Thanks G
  23. I have a parameter in my node that I want to convert to use python, usually we can right click> expression >change language to python but for some reason is gray out =( and reading documentation I could do parm.setExpression("2+2". language=Something) but I thought using hou.lenguage.Python as argument but wants a value? do we have something like parm.setScriptLenguage? or an easy way to switch all the node to use python, or just that parameter?
  24. Hi, Can it be available to check a node is dragged to render view and then specify which node is rendered on it ? THX G
×