Jump to content

Adding attributes to Array


Thierryj

Recommended Posts

hey guys! 

I am new to arrays so I am a bit confused... 

I am doing a nearpoint function between some points which will return to me point numbers that I am storing as an attribute. Here, each point will have an attribute called @nearest with the nearest point number to them stored inside. 

I am trying to take all of these nearest point numbers and store them into an array however I am failing. I am trying to make a for loop where i is under the point number however my array is repeating itself for the same point (point zero will get [57,57,57,57,57,57,57,57,...... (until the number of points there is)] etc... 

 

Attached is a screenshot of my script. 

Any suggestions? 

 

Thanks!! :)

screenshot.JPG

screenshot 2.JPG

Edited by Thierryj
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...