Jump to content

wrapping geo like Wrap3


Recommended Posts

Seems like an advanced tool for me. I think it's not possible in Houdini, unless you'll write such solver from scratch using basic Houdini tools. You need to know algorithms behind this technology. Ray SOP basically does a raytrace. It is somewhat useful to conform meshes with almost identical shape, but it won't give you advanced results like transforming a base state of modeled hand into a gesture from scan. Same problem with point clouds.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
  • 2 weeks later...

Alright so I just finished to study python (solo learn app ftw) to figure out how the python code works. For those interested:

 

node = hou.pwd()
geo = node.geometry()
#these came by default with Python SOP, don't change it.

nodeTrans = node.node("/obj/geo1/subnet1/objnet1/OUT")
#nodeTrans receives the points and its data resulted of the objnet/extractgeo SOP

mat = nodeTrans.worldTransform()
#mat receives a matrix with the transform data of the points in the world, translate and rotate information

matAttrib = geo.findGlobalAttrib("mat")
#matAttrib receives the 'detail attribute' data from mat. In the first time in the loop it has zero data, so \/

if not matAttrib:
    matAttrib = geo.addAttrib(hou.attribType.Global, "mat", mat.asTuple())
#Turns the matrix data of mat in 'detail attribute' as Tuple

else:
   geo.setGlobalAttribValue(matAttrib, mat.asTuple())
#if matAttrib already has something in it, put these values into 'detail attribute'

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...