https://github.com/jdtsmith/twistcube
An example Sketchup Ruby -> Dynamic Component interaction
https://github.com/jdtsmith/twistcube
Last synced: 10 months ago
JSON representation
An example Sketchup Ruby -> Dynamic Component interaction
- Host: GitHub
- URL: https://github.com/jdtsmith/twistcube
- Owner: jdtsmith
- License: mit
- Created: 2020-01-13T22:50:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T23:35:28.000Z (almost 6 years ago)
- Last Synced: 2025-01-22T06:24:19.324Z (12 months ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TwistCube
An example Sketchup Ruby -> Dynamic Component interaction toy.
Creates a dynamic component, including one Component option "size" (the starting size of the cubes). Responds to
Interact tool presses.
This is only a small example illustrating how the DC framework can be reused in Ruby. More careful variable encapsulation and a proper plugin architecture for loading/creating the (dynamic) component definition would be needed to make this readily distributable.
To load, open the Ruby Console and:
```
load "/path/to/twistcube.rb"
```