Jump to content

Search the Community

Showing results for tags 'scripting'.



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

  1. Hi All, I am creating a flipbook using below python code and calling those image seq. in nuke but while importing it's colorspace is set to paintspace if I change this to sRGB then things look fine but the issue is I don't have any controls on NUKE function as it's implemented in database and works simply if i pass a image seq in it. Is there any other way I can fix issue while exporting from houdini itself. There are 2 things I came to know about it but don't know this are the actual cause of issue. Houdini Menu > Edit > ColorSetting > Colorcorrection MPlay > Colorcorrection Bar If above are the solution to fix this issue then what exactly has to be done in python way ? If above are not the solution then how to fix this issue ? flip_book_seq_path = '/u/{}/Desktop/flip.$F4.exr'.format(USER) cur_desktop = hou.ui.curDesktop() scene = cur_desktop.paneTabOfType(hou.paneTabType.SceneViewer) flip_book_options = scene.flipbookSettings().stash() flip_book_options.output(flip_book_seq_path) start_f = 1001 end_f = 1002 flip_book_options.frameRange((start_f, end_f)) flip_book_options.outputZoom(100) flip_book_options.useResolution(1) x = 1980 y = 1020 flip_book_options.resolution((x, y)) flip_book_options.cropOutMaskOverlay(1) scene.flipbook(scene.curViewport(), flip_book_options)
  2. hi all, This is a bread and butter problem, solved in many different ways....remove (cull) the outside piece primitives after a "Boolean Fracture". Ive been looking for a simple and fast VEX solution (not... for-each loop nodes) I found one that seems in the right direction as I love its simplicity. (was trying this in detail mode) If anyone has other or a more elegant VEX solution I would love to explore it, cheers int insides [] = expandprimgroup(0, "inside"); int outsides[] = expandprimgroup(0, "outside"); foreach(int inside; insides) { int success; string insideName = primattrib(0, "name", inside, success); foreach(int outside; outsides) { string outsideName = primattrib(0, "name", outside, success); if(insideName == outsideName) { setprimgroup(0, "inside", inside, 0, "set"); setprimgroup(0, "outside", inside, 1, "set"); setprimattrib(0,"Cd",outside,set(1,0,0),"set"); //small test using the colour break; } } } as usual any help appreciated.
  3. Hey guys! Once again, I have to seek out your precious help ^.^ I am currently creating my own asset browser and I am working on feeding assets from Houdini into the library. So far, everything was going pretty smoothly up until I got stuck with something that seems so simple: the frameSelected() function of the hou.GeometryViewport class. When I use the Python shell inside Houdini and do this, it is working correctly: import toolutils viewer = toolutils.sceneViewer() view = viewer.curViewport() node = hou.node('/obj/geo1/DZK_Asset_Export') node.setCurrent(True,True) view.frameSelected() My section in the HDA is not. Broken down to the essential part (with hard coded selection of node as above for the sake of the example): import toolutils viewer = toolutils.sceneViewer() view = viewer.curViewport() [...] cam = obj_level.createNode('cam', 'asset_cam') node = hou.node('/obj/geo1/DZK_Asset_Export') node.setCurrent(True,True) view.frameSelected() view.saveViewToCamera(cam) view.setCamera(cam) All the other functions work as expected (lockCameraToView, saveViewToCamera, setCamera all work fine). I only have trouble with frameSelected(), even when adding the code from the shell to my script, basically hard coding selecting the correct node. After running my export process which does not frame the view, I can go to the shell and call frameSelected() and from there it works again :/ I also have sections where I first set the camera, lock the view, then try framing but it is the same result: all working, except the framing. I wonder what I am doing wrong in my code and hope you can help me out. Any pointers, comments are greatly appreciated!
  4. Opchange "issue"

    Hi guys, Just a quick question I hope have a simple answer! I have a dual boot setup and switch back and forth between Win and Linux. Due to files having to point to same location I have a variable in the .env that point to each respective mounting place $NAS. Now, I imported an FBX through the File menu and it pops in as expected, but all the nodes have the full path in them. With the Textport I can do the "opchange" operation to switch the mounting place to the variable - but when I do that it converts the variable to it's value (the original path). My question now is: Can I somehow do the opchange without the Textport converting the variable to it's value and simply make it put the variable there instead of the path? I hope my rambling is not too confusing. Thanks a bunch, Jack
  5. usd model variants from attribute

    Hi all I've been looking at creating usd variants from the following, thinking on using this to create a model with variants from a piece of geometry that has a primitive attribute called "myattr" with 2 values (say half a sphere with myattr="left", and the other side called "right") 1- sopimport an object into LOPS with prim attributes. 2- create an add variant to existing primitive block 3- done Any ideas on how to iterate through each of the primitive attribute values to create this variants? adding a hip file for reference, maybe someone can help Thanks in advance! usdvariants_from_groups.hipnc
  6. Hi all I've been looking at creating usd variants from the following, thinking on using this to create a model with variants from a piece of geometry that has a primitive attribute called "myattr" with 2 values (say half a sphere with myattr="left", and the other side called "right") 1- sopimport an object into LOPS with prim attributes. 2- create an add variant to existing primitive block 3- done Any ideas on how to iterate through each of the primitive attribute values to create this variants? adding a hip file for reference, maybe someone can help Thanks in advance! usdvariants_from_groups.hipnc
  7. Greetings, I am trying to use addpoint() every 24 frame and i wanted it to stay in the geometry. The problem is that the newly added point is only available in that specific frame. I want to add a point every 24 frame. and make it permanent. is there a way to add permanent point ever 24 frame? any help would be appreciated. Thanks, P.S: the code is like this: if (@Frame%24==0) { int index = addpoint(0,@P); int setPtAttrib = setpointattrib(0, "move", index, 1, "set"); }
  8. Women Character Rigging

    Hey, Hi, I want to rig a realistic women character, Can someone tell me what is the way to rig a realistic character I'm planning to use a Advanced skeleton in maya, and including the blendshapes can also be helpful? or else painting my own weights will give the better result? ThankU.
  9. python folder creating

    Hi, I'm trying to make folder structure from python... there is a renaming problem I'm facing... How do we can make "vnc_001.......vnc_015", please check the image attached, I strongly required only 3 numbers at the end...
  10. I just did a Python script to create a sphere only with nulls. Actually can be done any shape you want. Here the video with the HIP file included: I know, it's a completely useless and silly project, but was fun to do. Any comment will be welcomed, Oscar
  11. normalize in vex and vop

    Hi, sorry about the silly question, I'm a beginner. NORMALIZE in vops, what it is used for, I saw many times in tutorials people using, but, nobody explaining about it... what it differs from the clamp node?
  12. Hello folks, so, i have a bunch of houdini file with a top node at OBJ level, all file have the same structure and are in the same folder I would like to cook the TOP node from external, Python or another TOP graph. I tried in a background script to access with hou.node('/obj/topnet').parm('cookbutton').pressButton(), but it seems that doesn't cook anything Any idea ? Thanks in advance
  13. Hi Houdini friends, I'm having a pretty weird issue right now and was wondering if this is something that someone else has encountered before: When I call a function as a callback to some button on an HDA/ shelf script, the result is different from when I directly call it in the python shell of an opened Houdini session / directly in a hython shell. More specifically, when called as a callback, it hangs; while when called from hython it went through as expected; The function involves some general wrapping code, that execute some houdini specific code, and it seems that any call from the hou module would hang when ran as callback. Does anyone have similar issues before / knows more about what might be different when something is executed as parm callback vs. directly from hython? Thanks soooooo much in advance!
  14. Hi, I'm playing around with limiting transform handles on nulls to act as a rigging control surface. I found on these forums a cool hscript snippet that allows this: clamp(cubic(),min,max). Does anyone know the python equivalent? The python clamp doesn't seem to accept a cubic() as a parameter. Also, does anyone know of another method of allowing for manual transform handle input that feeds into an expression? (HScript or Python). I can't wrap my head around why cubic() works! Cheers Dan
  15. 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.
  16. i am creating a point in between 2 points and i want to transfer all the attributes to this new point, is there a way to find all the attributes that are in a point? like a list/array ["Cd", "P", "N"...] thanks =)
  17. Hi, Is there a chance for example to get a picked position of a connection item ( where the pointer is picked its line ) ? I would place a node where it's picked.. I think the paste tool does similar when you pick a position at the Network Editor before paste. THX! G
  18. How can I bring the open-source SeExpr into Houdini? https://www.disneyanimation.com/technology/seexpr.html
  19. Hi, Can houdini pythyon can solve this: I have an object (rop network in obj) when is deleted I want to run a py script. Thanks in advance ! Sz
  20. Hi, In a Filecache node I would like to add an other Rendering button after the factory default button. Can it be somehow ? G
  21. Descriptive Parameter to Node

    Hi, I found a very useful thing in docs but seems like not working for me unfortunately. Can anyone help ? I tried to add a descriptive parm to a node ( the same as a digital asset has ): node.setUserData("descriptiveparm", "parm") THX! G
  22. Hi, In Houdini Python (or hscript ) can we simply extract a given subnet content ? THX! G
  23. Hi, Can scripting can solve a node refreshing ( script run when the node exist ) in a specific time intervall. I mean for example a progress note is refreshed. I found some advanced usage of Network Editor with event but the timer event was not given by examples. Did anyone know use it ? THX! G
  24. Hi, Does Houdini give the possibility to add a progress bar to a user defined property page? Does it need Pyside? If needed a panel can be mixed with PySide elements too ? If anyone has idea, it's welcome ! THX! G
×