getting curve point information

   2364   2   1
User Avatar
Member
27 posts
Joined: Sept. 2009
Offline
Hello,

I'm trying to move an object along a path via python, below is the command I am trying. I have a curve node and then a resample node connected below that. I can type this command in the python shell in Houdini, but I can't plug this in as an expression. I understand that there is already an animation tool to do this, I'm just trying to learn how to use python with houdini better.


hou.node(“obj/tesla_coil/resample1”).geometry().iterPoints().position()

thanks,

James
User Avatar
Member
8538 posts
Joined: July 2007
Offline
i think it's just a typo

it should be / in front of the obj/tesla_coil…

“/obj/tesla_coil/resample1”
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
27 posts
Joined: Sept. 2009
Offline
thank you so much. I thought the syntax was weird, but it worked in the integrated python editor, so I thought that was correct.

:-)
  • Quick Links