data from spreadsheet

   2756   4   0
User Avatar
Member
176 posts
Joined: July 2005
Offline
lets say you have a group of points 0-100…
all points obviously have a px,py, and pz

I am wondering how I can generate a string from the sop with the points…..

and the string would be like one in a curve sop that is separated by commas…

0,0,0 1,0,0 2,0,0 3,0,0 etc….

what is the easiest way to do this?
User Avatar
Member
7714 posts
Joined: July 2005
Offline
You could use a multiline expression to do this. But I think the easiest way would be to just use the Add SOP instead of the Curve SOP. Then convert the polygon curve to what you want.
User Avatar
Member
176 posts
Joined: July 2005
Offline
is there away to reference the points with an expression?

I mean for example there is opls to list operators…

is there a command that would list the number of points…?

and/or a way to access their position?

I guess my first idea may be harder to accomplish right now…but I still would like to know the best way to refer to the spreadsheet…

ex:lets say you want a center of a box to be at the position of point 2 of a specific sop.
User Avatar
Member
7714 posts
Joined: July 2005
Offline
Look up the point() and npoints() expression functions in the help.
User Avatar
Member
176 posts
Joined: July 2005
Offline
thanks for the tip
  • Quick Links