point expression with spare input

   3039   3   1
User Avatar
Member
51 posts
Joined: Jan. 2016
Offline
I'm confused. I wanted to use a spare input with the point expression. Which is shown in the docs here:point() [www.sidefx.com]

it gives two examples both require three parameters
<type> point(<geometry>geometry, string attribute_name, int pointnumber)

<type>[] point(<geometry>geometry, string attribute_name, int pointnumber)

so I tried this:
 point(-1,"dist", 0)

doesn't work...

turns out I needed this:
point(-1, 1, "dist", 0)

What? I don't see this anywhere in the docs. Is it there? why not in the point expression card?

thanks
User Avatar
Member
7803 posts
Joined: Sept. 2011
Offline
Nathan Apffel
point(-1,"dist", 0)

This is correct.
User Avatar
Member
8594 posts
Joined: July 2007
Offline
What you referenced is point() VEX function
But sounds like you are dealing with parameter expressions and therefore using point() [www.sidefx.com] hscript expression function which has slightly different syntax as you noticed
Edited by tamte - July 31, 2021 03:31:09
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
51 posts
Joined: Jan. 2016
Offline
Thanks,tamte. hscript expression functions (which are listed as expression functions in the docs point expression [www.sidefx.com]) are used for parameter fields, not vex functions. This has been a source of confusion for me. thanks for the response.
  • Quick Links