Jump to content

Search the Community

Showing results for tags 'point deformer'.

  • 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. Hi, I am trying to make a point deformer and I am stucked in a step. Here is my plans copy all the points that I want to deform to the polygon object so they are 1 object using hou.geo.createPoint in python. get uv attributes from the object copy the uv attributes of first frame so it will contain the static uv value while the object is deforming. get position value from the uv and fetch the output position value to the points that I want to deform but it seems like from the uv, it's not getting the right position. Can anybody take a look inside of this file and what step I am missing? point copy to object python script node = hou.pwd() geo = node.geometry() geo2 = node.inputs()[1].geometry() ptGrp = geo.createPointGroup("ptGrp") for point in geo2.points(): pos = point.attribValue("P") pt = geo.createPoint() pt.setAttribValue("P" , pos) ptGrp.add(pt)[/CODE] [b]get position by uv and fetch to the original points script[/b] [CODE] node = hou.pwd() geoPdef = hou.pwd().geometry() geoAnim = node.inputs()[1].geometry() fPtGrp = geoAnim.findPointGroup("ptGrp") ptsGrp = fPtGrp.points() i = 0 for point in geoPdef.points(): pt = ptsGrp[i] ppos = pt.attribValue("P") nprim = geoAnim.nearestPrim(ppos)[0] u = pt.attribValue("uv")[0] v = pt.attribValue("uv")[1] pos = nprim.positionAt(u) point.setAttribValue("P" , pos) i += 1 [/CODE] test.hip
×
×
  • Create New...