Created
November 18, 2019 14:16
-
-
Save tanitta/9cfda3f31d2568791a421de8ff34de5d to your computer and use it in GitHub Desktop.
Save curve on houdini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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