for loop python question

   2974   3   0
User Avatar
Member
105 posts
Joined: Nov. 2007
Offline
Hey,

Think I'm pretty close, I'm trying to set the position in a add node, for each point in posx

Was able to figure out how to activate the “usept” parameter and set position for each point but what I'm looking to do is set the position in ‘x’ using a list..

its easier to understand what I'm tying to say by looking at the attached file..

as always thanks in advance

Attachments:
houdiniPython.png (243.1 KB)

User Avatar
Member
105 posts
Joined: Nov. 2007
Offline
also i tried just putting the list ‘a’ in the tuple but got an error….
User Avatar
Member
2538 posts
Joined: June 2008
Offline
Have you tried altering the set line to something like this?

posx.set((a,4,6))
Assuming the a list is the x coordinate.

Attachments:
Untitled-2.jpg (157.9 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
105 posts
Joined: Nov. 2007
Offline
Thank you so much, it worked wonderfully.. thanks for your tip and insight to cleaning up my code
  • Quick Links