DCs: Global Variables or even embedded Ruby
-
firstly I would like to be able to define Global Variables within dynamic components, that allow you to pass on information from child-components to parent components or from brother- to sister-component...
there could be three methods, how these could be implemented:- they work within all subcomponents, all the way up to the DC highest in the hierarchy.
- they work within the whole SketchUp model (dangerous, because DCs of different artist may share the same global variables)
- they only go only up the hierarchy to the highest component they have been defined in (so if you only define it in a sub component, it doesn't reach the master component)
secondly it would be fantastic to be able to 'embed' ruby code in a dynamic component.
you would be able to define and use not only variables, but whole classes, methods and whatever ruby lets you do.
so basically you would write your scripts inside a Dynamic Component! thus you could add tremendous power to objects, that exceed todays DC-capabilities by miles. and the great thing: to use this power all the user would have to do is to place the component in the model. no copying of ruby scripts into the plugins folder. and whats more: these scripts would be loaded dynamically, only when the component is used...what do you think of that (absolutely brilliant) idea?
Advertisement