Jump to content

Search the Community

Showing results for tags 'match ik'.

  • 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 + Solaris!
    • 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

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Name


Location


Interests

Found 1 result

  1. Been trying to rig in Houdini, went through the rigging series which was decent but the script for Matching FKIK comes up with an error when I execute it. If you didn't see the video series. This is on the last video. Inside the HDA there is a parameter button created with the callback script hou.pwd().hdaModule().matchIK(kwargs,"arm") This is the code def matchIK(kwargs,type): if kwargs["script_parm"][0] == "L": side = "L" else: side = "R" prefix = side + "_" + type asset = kwargs["node"] bone1 = hou.node(asset.path() + "/" + prefix + "bone_1") bone2 = hou.node(asset.path() + "/" + prefix + "bone_2") fkcontrol1 = hou.node(asset.path() + "/" + prefix + "_bone_1_ctrl") fkcontrol2 = hou.node(asset.path() + "/" + prefix + "_bone_2_ctrl") fkcontrols = [fkcontrol1, fkcontrol2] bones = [bone1, bone2] if type == "leg" prefix = side + "_" + "foot" bone3 = hou.node(asset.path() + "/" + prefix + "_bone_1") bone4 = hou.node(asset.path() + "/" + prefix + "_bone_2") fkcontrol3 = hou.node(asset.path() + "/" + prefix + "_bone_1_ctrl") fkcontrol4 = hou.node(asset.path() + "/" + prefix + "_bone_2_ctrl") bones.append(bone3) bones.append(bone4) fkcontrols.append(fkcontrol3) fkcontrols.append(fkcontrol4) for i, fkcontrol in enumerate(fkcontrols): curbone = bones bonepath = "/".join(curbone.path().split('/')[2:]) iksolver = curbone.node(curbone.parm("solver").eval()) chopstring = 'chop("' + iksolver.path() + '/' + bonepath chans = ["rx", "ry", "rz"] for chan in chans: if abs(hou.hscriptExpression(chopstring + ':' + chan + '")')) < 0.0001: rot = 0.0 else: rot = hou.hscriptExpression(chopstring + ':' + chan + '")') if not fkcontrol.parm(chan).islocked(): fkcontrol.parm(chan).setPending(rot) Error says line 16, in matchIK AttributeError: 'NoneType' object has no attribute 'path' Im fairly clueless when it comes to scripting just wanted to be able to match IK Fk. Help would be appreciated as would any advice on places to start with python scripting. Many thanks, Duncan
×
×
  • Create New...