Attractor point in DesignScript

by Tuğrul Yazar | November 19, 2012 15:34

This is my first try at DesignScript syntax. It is quite easy to understand and on-screen reference help seems to work well. It creates regular AutoCAD entities when you run. One of the most important concepts of this language is said to be a kind of associativity that updates objects when any parameter is changed while the script is running. However such associativity is not possible after the script has finished running. If you want to use the regular imperative style, you should use directive [imperative] in the script to tell it that variables are not actively associative. Unfortunately, I couldn’t find a suitable use of this associativity as DesignScript seems to want itself to be run endlessly. I’m a little disappointed about it because as far as I remember, even Generative Components had the ability to interact with the user via object translations. Maybe I’m doing something wrong here.

Here is the DesignScript code if you want to try this: [DS File][1]

Endnotes:
  1. [DS File]: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_19-attract1.ds

Source URL: https://www.designcoding.net/attractor-point-in-designscript/