Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2015
    Posts
    4

    Houdini Matching FK to IK button crashing issue

    I am in the middle of Houdini Tech rigging 3 (these are fantastic btw). But I am having an issue with the matching the FK to IK button. I have the code written correctly (I think?) and but once I hit the button it crashes Houdini. I'm assuming that its looping infinity not breaking the while loop. Although it looks like its correct, and if I'm reading it right it should be looping through in reverse. I am using Houdini 15 (could this be a bug or something?) I'm attaching a simple project file so that you can view the code. The button is on the FK_IK_Controls subnet and the code is under type properties.
    and below is the while loop portion if someone takes a look and see's anything outa place. but its probably easier to look at the scene and look at the whole code. Any help is greatly appreciated!
    I might just be looking at it too long.

    while not done:

    #Find rotation channels for that bone
    rx = hou.hscriptExpression(chopString + currentBone.name() + ':rx")')
    ry = hou.hscriptExpression(chopString + currentBone.name() + ':ry")')
    rz = hou.hscriptExpression(chopString + currentBone.name() + ':rz")')

    #Set those rotation on corresponding FK control
    fkControl = hou.node(currentBone.path() + '_FkControl')

    if fkControl != None:
    fkControl.parm('rx').set(rx)
    fkControl.parm('ry').set(ry)
    fkControl.parm('rz').set(rz)

    if currentBone == startBone:
    done = 1
    else:
    currentBone = currentBone.inputs()[0]

    #restore original FKIK value
    hou.pwd().parm('fkikblend').setPending(oldFKIK)
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2003
    Posts
    11
    Hi, there. The definition of the FK_IK_Controls subnet in that file is incomplete so I can't see your implementation of rig_matchFKtoIK. You could try embedding it in the hip file and re-uploading or uploading the asset itself. The code above is missing formatting, so the first thing I would suggest is make sure your whitespace is correct. I don't know if there is a way to post code here without it wiping out the formatting, but that would help. Aside from that, double check that the starting value of currentBone is endBone before entering the loop. You can try debugging a bit by commenting out all of the code related to the fkControl since it doesn't have anything to do with the loop iteration. I was able to manually run the loop iteration on the bone setup in your file (basically just the implementation from the video minus the fkControl code) and that part does work.

    Peter.

  3. #3
    Join Date
    Jun 2015
    Posts
    1
    You can try debugging a bit by commenting out all of the code related to the fkControl since it doesn't have anything to do with the loop iteration. I was able to manually run the loop iteration on the bone setup in your file (basically just the implementation from the video minus the fkControl code) and that part does work.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •