Which argument is needed for the setCurPoint-function?
I have looked in the help, and there is this example:
for point in points:
hou.pwd().setCurPoint(point)
But I get this:
add_pt = 1
hou.pwd().setCurPoint(add_pt)
return _hou.SopNode_setCurPoint(*args)
TypeError: in method ‘SopNode_setCurPoint’, argument 2 of type ‘HOM_Point *’
setCurPoint how?
3684 3 1- LFX
- Member
- 67 posts
- Joined: 1月 2009
- Offline
- tamte
- Member
- 8583 posts
- Joined: 7月 2007
- Offline
- LFX
- Member
- 67 posts
- Joined: 1月 2009
- Offline
- tamte
- Member
- 8583 posts
- Joined: 7月 2007
- Offline
yes,
hou.Geometry.iterPoints()
and
hou.Geometry.points()
advantages of one over another are in help
http://www.sidefx.com/docs/houdini10.0/hom/hou/Geometry#iterPoints [sidefx.com]
it all depends on what you want to do, i cannot imagine the usage of setting certain point as current(other than in looping through all points), but maybe you have the reasons for it
hou.Geometry.iterPoints()
and
hou.Geometry.points()
advantages of one over another are in help
http://www.sidefx.com/docs/houdini10.0/hom/hou/Geometry#iterPoints [sidefx.com]
it all depends on what you want to do, i cannot imagine the usage of setting certain point as current(other than in looping through all points), but maybe you have the reasons for it
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links