Created
June 19, 2018 22:50
-
-
Save mimetaur/01de2abc6ba28f5d61000f5eb965b3e0 to your computer and use it in GitHub Desktop.
Sketch 4 / Create Points Attribute Wrangle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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