Jump to content

bonsak

Members
  • Content count

    93
  • Joined

  • Last visited

  • Days Won

    1

bonsak last won the day on October 15 2016

bonsak had the most liked content!

Community Reputation

29 Excellent

About bonsak

  • Rank
    Peon

Contact Methods

  • Website URL
    www.racecar.no

Personal Information

  • Name
    Bonsak Schieldrop
  • Location
    Oslo, Norway

Recent Profile Visitors

1,683 profile views
  1. Toggle Network View Dependency Links

    tabs = hou.ui.paneTabs() # Get all the tabs for tab in tabs: # Loop over them if tab.type() == hou.paneTabType.NetworkEditor: # Test the type tab.setPref('showdep','2') # Set
  2. Dot Vector in Python ?

    You are missing a closing parenthesis at the end of dot = hou.Vector3(primColor).dot(hou.Vector3((rounded))) -b Too late
  3. Isnt that what the chop expression is for? chop("/ch/ch1/wave1/chan1") -b
  4. Houdini Expression Editor plugin

    This is really nice! Thanks. I wish i could tie this directly to "Edit Expression" though, instead of having to rely on the "External Expression Editor" command. Having a keyboard shortcut on the "External Expression Editor" is kind of limited (not your fault) as you have to either select or hoover over the "VEXpression" parameter label for the shortcut to work. Whereas the "Edit Expression" shortcut fires if you have the cursor in the snippet field. Would be even better if you could just select the node in the editor and fire of "External Expression Editor" from there. Again, not your fault -b
  5. CHOP's Frame limit

    Your chop Object nodes are set to only last 10 seconds. Set their Channel Range to "Use Full Animation Range" or set "End" to 42 seconds. -b
  6. Dot Vector in Python ?

    Works for me as well. Why dont you post a file showing the error. -b
  7. display msg at the bottom

    Check out the hou docks for the hou.SceneViewer class: http://www.sidefx.com/docs/houdini/hom/hou/SceneViewer.html You can do like this to ask the user to select an object: scene_viewer = toolutils.sceneViewer() nodes = scene_viewer.selectObjects( prompt='Select objects', sel_index=0, allow_drag=False, quick_select=False, use_existing_selection=True, allow_multisel=True, allowed_types=('*',), icon=None, label=None, prior_selection_paths=[], prior_selection_ids=[], prior_selections=[]) -b
  8. display msg at the bottom

    toolutils.sceneViewer() You'll find a few examples here: http://www.sidefx.com/docs/houdini/hom/tool_script#prompting-the-user-for-a-position-multiple-positions-or-a-path -b
  9. Dot Vector in Python ?

    What are the actual values of primColor and rounded when you get the floating point error? Or are you getting an error just by declaring tolerance = 0.000001
  10. Dot Vector in Python ?

    What are the actual values of the "primColor" and "rounded" variables? -b
  11. Dot Vector in Python ?

    I think the problem is that you are not using the dot method the correct way. You are using "hou.Vector3(primColor).dot" but you need to use "hou.Vector3(primColor).dot(rounded)" hou.Vector3(primColor).dot will never return the dot product. It will return the method it self as i wrote earlier. -b
  12. Dot Vector in Python ?

    Im not entirely sure what you actually want to do but if you want to use the dot product method of the hou.Vector3 class, you are not doing it the right way. In your code you are calling: hou.Vector3(primColor).dot This makes python return the method it self, not the value the function is supposed to return. If you print this you will get something that starts with "bound method..." To make this work you also need to supply the dot method with a vector: hou.Vector3(primColor).dot(rounded) The first statement will always return True whereas the second will return any vaule between -1 and 1. Depending on the directions of the two vectors (primColor and rounded) you pass in. Cheers Bonsak
  13. Dot Vector in Python ?

    You need to look at the code i posted one more time:)
  14. Dot Vector in Python ?

    #Like this vector_one = hou.Vector3((1,0,0)) vector_two = hou.Vector3((1,0,0)) if vector_one.dot(vector_two) == 1: print 'match' #Or like this if hou.Vector3((1,0,0)).dot(hou.Vector3((1,0,0))) == 1: print 'match' -b
  15. Need Wire Constraint Help

    You dont need all the constrain stuff to make wires work. You only need to set "pintoanimation" to 1 on the points you want to stay put. -b wires_4.hip
×