Jump to content

VOPs conditional statement help


agitat3d

Recommended Posts

Hi All,

I have been setting up a VOP network and am having trouble with a conditional statement and i keep getting an error. This is my first VOP net and the logic seems right but it wont cook.

My statement should go:

FOR number of points DO
   {
      get position of a point coloured red
      calculate the distance between current point and red point
      IF point within user radius AND colour != red THEN
         set point blue
      ELSE
         dont change point colour
   }
DONE

The idea is that a point will be coloured blue if it is within a certain radius of a red point.

Its just seems to bee the comparison that is the problem.

Many thanks and your help is greatly appriciated :)

post-3703-1209407281_thumb.jpg

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...