Читать книгу Rethinking Prototyping - Группа авторов - Страница 105
3 Node to Code
ОглавлениеNode to Code is a feature of DesignScript, which allows the designer to select part or all of a graph-node diagram and have that design logic converted to code. This has two advantages: First, the designer can have his initial design logic presented to him in a code form, so that he can be assisted in progressing from being a graph node user to a more experience scripter. Second, it enables the number of nodes and associated arcs to be reduced in terms of visual complexity. The designer can still make connecting arcs between the variables in the resulting code block (Figs. 3-5).
Fig. 3 Starting with a conventional graph node diagram ...
Fig. 4 The designer selects a region of the graph and uses the radial menu [top right]…
Fig. 5 To turn the nodes into code…
The key to this ability to convert node to code is that the internal representation of the graph is in fact a script, even though the designer, when using graph- based modelling techniques, may not be aware of this.