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

  1. How do I create a button for the undo command?

    Hello Everyone. How do I create a button for the undo command? Using a Python Script and hou.undos.performUndo() Note: On Python Source Editor the code work, but on Script Shelf not. error msg <Cannot undo within an undo group> How use hou.UndosGroup https://www.sidefx.com/docs/houdini/hom/hou/undos.html VideoCase https://drive.google.com/file/d/1-m38aiA50QPuSs75Pe9kiVOs7nMbg3XY/view
  2. Buying : https://gumroad.com/l/FqhftThis tool is inspired by a tutorial of Introduction to FX in Houdini.It was released by Saber Jlassi.This tool can automatically cache and read files,you don't have to set up any path,I've set up the caching and reading paths for you.You just need to save your hip to a directory.The other will be set automatically.Finally, I hope you like it!
  3. Houdini Python Cache and Read Tool

    Buying : https://gumroad.com/l/FqhftThis tool is inspired by a tutorial of Introduction to FX in Houdini.It was released by Saber Jlassi.This tool can automatically cache and read files,you don't have to set up any path,I've set up the caching and reading paths for you.You just need to save your hip to a directory.The other will be set automatically.Finally, I hope you like it!
  4. new parmTemplateGroup

    i am creating a new HDA with python and unfurtunally doesnt use the parms that are in the subnet, so how can i create a blank new parmTemplate so later on i can add the spare parameters to it? thanks guys.
  5. Hello, What's the class to create an "Operator Path" parameter in python? group.addParmTemplate(hou.FloatParmTemplate("myparam", "My Param", 1)) will create a float type parameter What would create an Operator Path parameter?
  6. Get position\orientation of handle

    I can set handle position and orientation with omparm hscript command. But is it possible to get position\orientation of handle?
  7. Hi, I 'd write a simple script what uses a Null object as a control object to call a python script in its parameters. I use the eval python function by called a callback line. The issue is that the capturing goes on but not writes only just a few images. What could be wrong ? THX
  8. Hello, Is it possible to promote a ramp parameter (retaining channel links) via python (or even hscript)?
  9. Hey all, I'm trying to rotate Object B to match Object A's local rotation with Python. I've been using objectB.parmTuple('r').set(objectA.parmTuple('r').eval()), but this seems to be very wrong ^^ There seems to be some euler shinanigans, for starters, so I was going to use a rotation matrix but I can't find some setLocalTransform equivalent, and setParmTransform is equally unhappy. Thanks in advance for helping me understand how Houdini prefers this to be done!
  10. Hi, I am trying to do my asset for houdini and I am looking a method which can allow me to connect one node to anoter I use something like this, but this option is connecting everything to imput1 ('grey imput') staticsolver = doptoolutils.createSolver("staticsolver", True) - create staticsolver node staticobject = dopnet.createNode("staticobject") - create staticobject node doptoolutils.addObjectToSolver(staticobject, staticsolver, True) - connect staticobject to staticsolver but some nodes has more inputs: multisolver has 2 inputs one is grey and another purple - how I can connect my node to the purple one using python language? and another constraintnetwork has 3 inputs, one grey, green and purple and also if merge node has 3 inputs connected, how I can tell which should be first? I need explanation how I can connect something to each input. I found something like this but I dont understand what I should write to make it works: http://www.sidefx.com/docs/houdini/hom/hou/NodeConnection.html#outputNode if someone can write to me an example how should I write my script lines which show how I should connect node to purple input in multisolver, how to connect to green and purple input for constraintnetwork and how to define which is the first input in merge node. I attached picture as example what I want to connect to. Thank you Bart
  11. Add Name Attribute Via Python

    Hi, How to add a name attribute to each point in a selected geometry via the python sop? Suppose I have a box with 4 points and I want each point to be named as piece0, piece1 and so on where the number is its point number. I have written a code, it adds the attribute to the spreadsheet but is unable to add the value. The value is added only when it is not a string. Please Help. The code that I tried: node = hou.pwd() geo = node.geometry() geo.addAttrib(hou.attribType.Point, "name", "piece") Please also add how to add the respective point numbers to the string piece. Thanks
  12. I'm trying to provide an option to render to background so my artists can continue working on their shots Houdini. Currently in my OTL I am calling hou.hipFile.save() then proceed to trigger the render in background option in my mantra rop. hou.node(node.path()+'/render/render').parm('executebackground').pressButton() Despite saving the file, when the render executes, I receive an error telling me to save the file. Is there a better way to approach this?
  13. Hey guys and girls I'm very new to python and Houdini tool creation.This might turn out to be incredibly simple for you,I have a button that when click dives into my current digital asset my objective is to before diving to pin/lock/focuses the parameter pane that I clicked the button on(so the current node).I cant figure out how to use the classes Desktop,Pane,PantTab to do this to save my life. Am I simply approaching the problem wrong?I would greatly appreciate any help on this, Thanks in advance.Cheers!
  14. I'm in the middle of making an otl for our artists and was wondering if there is a way to switch Houdini's viewport panes between Scene View and Composite View. I haven't found the proper help files for manipulating Houdini's layout through scripting. Thanks Mike
  15. I'm in the middle of making an otl for our artists and was wondering if there is a way to switch Houdini's viewport panes between Scene View and Composite View. I haven't found the proper help files for manipulating Houdini's layout through scripting. Thanks Mike
  16. Hello guys, I'm currently a Computer Graphics bachelor student, we are learning CGI but also, Mathematics, Python and C++ some people are very proficient with all these 3 while I'm very proficient in CG but not very strong in these field. I'm very motivated to learn and go deep into these 3 field but I would also like to be efficient in the way I will learn it. ( learning all the mathematics is unfortunately not possible. ) So I would like to know what is your best advice to start learning mathematics and programming to become an FX-TD, based on your own experience or on some experience from other people? Do FX-TD always use programming in the task they are asked for? Any advice, any experience is very much welcome and it would help me a lot.
  17. Python read primitive attribute

    Hello, I feel like I should know this but Houdini keeps erroring on me so I am doing something wrong. I want to read the primitive attribute Cd, multiple the values by say 6, and then add it to a new attribute called color. For the example scene, drop a box, a color sop and set it to primitive and bounding color, followed with a python sop. I am not looking for this in VEX, via nodes, or any other language. It has to be in python for this case. Thanks for the help, -Ben
  18. On the SideFX forums I have added some information/videos & software on how to accelerate Python with Houdini in Windows & Linux: A custom node/plugin which speeds up execution of Python nodes in SOP-Context by a factor of up to 2 in certain conditions (e.g. Deformer, Attribute manipulation): Custom Python node for SOP context Using Numba (Python JIT-Compiler) in Houdini (Windows & Linux): How to use Numba with Houdini An optimzed/accelerated Numpy Python module (with OpenBLAS) for Houdini on Windows: Optimized Numpy python module for Houdini Hope it helps some people when using Python with Houdini. Any feedback welcome. Cheers
  19. Is Geometry Selected???

    Is there any way to verify if some geometry components selected?
  20. I want to use an external python library to create and write out a pdf file from houdini. Maybe it's a simple thing to many, but I've been struggling for the past couple of hours, even if I've done this before!! About a year ago I managed to usereportlab, but since I installed the latest houdini (or something else change on my computer) my python SOP fails to import the library and I am trying to figure out how to do it again. What's the typical process of installing and importing any external library to houdini? There is also the cairo library which would like to try. Any help will be highly appreciated thanks
  21. Good evening, New to python and wanted to get to grips with rigging in Houdini. Been working though the 3DBuzz Technical rigging series and been tripping up over all manner of stuff. On the stretchy spline section of the tuts there is a section that errors out and I am not sure why. The code is stretchRatioParm = hou.FloatParmTemplate("stretchRatio", "Stretch Ratio", 1) startBone.addSpareParmTuple(stretchRatioParm, (“Stretchy IK”, )) Error message reads Traceback (most recent call last): File “stretchyIK”, line 85, in <module> File “stretchyIK”, line 14, in techrig_stretchyIK_Tool File “stretchyIK”, line 54, in techrig_stretchyIK File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 44, in addSpareParmTuple _addParmTuple(self, parm_template, in_folder, create_missing_folders) File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 71, in _addParmTuple parm_template_group, in_folder, create_missing_folders) File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 93, in _ensureFolderExists “Invalid containing folder name(s)”) OperationFailed: The attempted operation failed. Invalid containing folder name(s) Would love if somebody could explain this? I know the tutorials were made in Houdini 9 have there been changes that would make this not work now? Many thanks, Duncan
  22. Hi its probably a long shot but I'll try anyway. I am trying to build ui using the old ui scripting with the help of huilib. This is not an argument thread about .ui vs PyQt vs PySide. I am trying to build a selection list in the UI like those you found in hou.ui.selectFromList Upon searching I came across the CHOOSER command with NO helpful hints or docs whatsoever. A lot of examples of how to build it but none to show how to populate it. Can anyone help if they know please? All the examples seems to point that the content was build dynamically. This is taken from one of the examples: undoChooser = CHOOSER 1 VALUE(undoChoices) STRETCH; But thas no pointer of how undoChoices was constructed. Thank you all!!
  23. Hey all, Sorry to add another Python cooking question (I've seen a lot, searching), but here goes. I have two subnets, a 'source' (from an .fbx) and a 'target'. The Objects in each correlate by name, and those in the source subnet are keyframe-animated. I'm driving the target Objects via: sourceMg = sourceNode.worldTransform() # beep boop, additional calculations go here targetNode.setWorldTransform(sourceMg) It works great, but once Houdini caches the frame the script is no longer (apparently) cooked, which makes sense--I pasted my code into a Python Script Object for convenient testing, which I suppose is not its intended use. If the HOM documentation is telling me what to do instead, however, I don't see it. There's the 'Python object' page, but I don't know that this is quite the same. In short: my script works as intended, but after the scene plays through once, Python stops moving the target nodes (I'm guessing because Houdini quits cooking it, since it's not doing anything Houdini expects it to do, like make geometry). Where does a script like this belong? I'm sure there's something embarrassingly obvious I'm missing--it's just a little extra confusing to me because I have to manipulate everything on the Object level. Thanks in advance for the help! If anything's unclear, lemme know
  24. Hey Guys i want to push render to disk button in mantra node via python , but its not working , my code is something like this : myRenderNode = hou.node('/out/baketexture1') myRenderNode.parm('execute') is there any trick to do this ? thanks
  25. Execute string in Python ?

    Hey guys is there any way to execute string in python ? its my string variable : "hou.parm('/obj/test3_FBX/materials/Google_Hybrid___7/Google_Hybrid___7_surface/map1')" i want to use it to set a parameter , but problem is its a string. im also tried to change it like this : myPath = '/obj/test3_FBX/materials/Google_Hybrid___7/Google_Hybrid___7_surface/map1' hou.parm(myPath) in 3dsmax maxscript you can using a execute syntax before string to do it. is there a similar way in python for that ?
×