Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Created June 19, 2018 22:50
Show Gist options
  • Select an option

  • Save mimetaur/01de2abc6ba28f5d61000f5eb965b3e0 to your computer and use it in GitHub Desktop.

Select an option

Save mimetaur/01de2abc6ba28f5d61000f5eb965b3e0 to your computer and use it in GitHub Desktop.
Sketch 4 / Create Points Attribute Wrangle
u@startpos = chu("startpos");
u@endpos = chu("endpos");
f@increment = ch("increment");
for (float n = 0; n < 1; n += @increment)
{
float x = lerp(@startpos.x, @endpos.x, n);
float y = lerp(@startpos.y, @endpos.y, n);
vector position = set(x , 0, y);
addpoint(0, position);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment