Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About garf

  • Rank

Personal Information

  • Name Garf

Recent Profile Visitors

1,220 profile views
  1. Ayup! How do you evaluate a parameter to determine it's contents 'type' - e.g. expression/string - 'type' method is currently crossed out in the docs http://www.sidefx.com/docs/houdini/hom/hou/Parm import hou sel = hou.selectedNodes() for i in range(len(sel)): for p in range(0, len(sel[0].parms())): sel[1].parms()[p].set(sel[0].parms()[p].eval()) print str(sel[0]) + ' = ' + str(sel[0].parms()[p].eval()) print str(sel[1]) + ' = ' + str(sel[1].parms()[p].eval())
  2. thanks - this was implemented in h16, right? I'm on 15 right now - so not currently an option.
  3. Anyone know how/if it's possible to maximise the viewport in python? cheers
  4. thanks - it's way overkill for what I need but it's good to know it's do-able
  5. I'm not convinced they are pasted to 0,0 ideally I'd like to lookup where in the coordinate system the network viewer is currently showing and just bung them somewhere in there. I'm liking the moveNodesTo() idea though - I might give that a go
  6. Anyone know how houdini decides where to paste these in the network view? They often end up pasted miles away from the working area.....
  7. Heya, I've written a little python expression to scale geo dependent on through which camera is being viewed. It works but does not recognise when the viewport has changed - is there an event trigger I can use to get it to recognise this change? import hou desktop = hou.ui.curDesktop() scene_viewer = desktop.paneTabOfType(hou.paneTabType.SceneViewer) viewport = scene_viewer.curViewport() camera = hou.GeometryViewport.camera(viewport) if 'preview' in str(camera): return 0.01 print 'preview cam' else: return 1
  8. This is what you need. http://www.sidefx.com/docs/houdini/hom/locations
  9. You can using houdini scripted UIs (selectFile is what you want) https://www.sidefx.com/docs/houdini/hom/hou/ui From the docs: selectFile(start_directory=None, title=None, collapse_sequences=False, file_type=hou.fileType.None, pattern=None, default_value=None, multiple_select=False, image_chooser=False, chooser_mode=hou.fileChooserMode.ReadAndWrite) → str So for example: dialog = hou.ui.selectFile(start_directory=hou.hscriptExpression("$JOB"), title='Select your file', file_type=hou.fileType.Image) You can make start_directory a $VARIABLE or something more explicit like "/my_folder/images/"
  10. Thanks for the response, Mark. It's good to know I'm not being a total plonker!
  11. You could set up a SOP solver in your DOPnet that takes the normals from your emission surface and attribute transfers them onto your particles having converted them into velocities.
  12. Hey all, I've recently installed Linux Mint 18 on to a dual boot on my laptop. I've been running houdini on windows 7 for a while without any problems. On Linux, however, I'm finding that Houdini will crash immediately I wake the laptop from sleeping (i.e. lift the lid up). Any ideas? Houdini 15.5 Apprecntice Thanks
  13. The cheapest and simplest way to do this is to render out spheres or discs with pscale determined by age and a ramp, some random colours for variation and some rotations on them. Render them flat and then slap on some glow/glint in a 2D package like Nuke or AE.
  14. Hello, I'd like to include a 'hide/disable when' conditional on a parameter which is being created by a script. How do I do this? null = hou.node("/obj").createNode("null") null.setName('newNull') tabs = null.parmTemplateGroup() for folder in tabs.entries(): tabs.hideFolder(str(folder.label()), True) null.setParmTemplateGroup(tabs) parmGroup = null.parmTemplateGroup() parmGroup.addParmTemplate(hou.ToggleParmTemplate("overrideToggle", "Override Cache Version", 1)) parmGroup.addParmTemplate(hou.IntParmTemplate("overridingVersion", "Overriding Version", 1)) null.setParmTemplateGroup(parmGroup) null.parm('overrideToggle').set(0) null.parm('overridingVersion').disable(1)
  15. Heya peoples, I'm going round in circles on this one and it might just be down to my poor understanding of python and/or houdini. I've managed to get 90% of what I want for this tool complete but the final piece evades me. I've got a python tempfile.TemporaryFile being created when 456.py is triggered - it works perfectly - i.e. created upon opening a hip and deleted once the hip is closed I think what I want to do is trigger the 456.py from within a shelf tool (which is a custom saver script) I mean this is essentially the age-old quest for an "onSave" callback but sadly I have no understanding of C++ or the HDK so this solution is totally lost on me. Any pointers appreciated Cheers