Skip to content

Instantly share code, notes, and snippets.

@tanitta
Created November 18, 2019 14:16
Show Gist options
  • Select an option

  • Save tanitta/9cfda3f31d2568791a421de8ff34de5d to your computer and use it in GitHub Desktop.

Select an option

Save tanitta/9cfda3f31d2568791a421de8ff34de5d to your computer and use it in GitHub Desktop.
Save curve on houdini
import hou
source = hou.selectedNodes()[0]
target = hou.selectedNodes()[1]
elm_list = []
for point in source.geometry().points():
pos = point.floatListAttribValue('P')
elm_list.append(','.join(map(lambda v: str(v), pos)))
elm_list_str = ' '.join(elm_list)
target.parm('coords').set(elm_list_str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment