JavaScript support for Dynamic Components
-
Would be great to add full JavaScript support for Dynamic Components, including:
- DOM-like traversal of all parent/child components (DCs) and access to their attributes
- JavaScript in attribute formulas (special syntax? "=JavaScript:___")
- JavaScript function calls for more elaborate coding abilities
-
At the early stages of DC's, there were discussions about similar things and it was decided that the functions need to be somewhat restricted for security reasons. You can do a lot of malicious things with javascript.
-
@gaieus said:
You can do a lot of malicious things with javascript.
That's an absurd dismissal of a very good idea. The fact is that without writing or using Ruby plugins, the ability to program Sketchup Dynamic Components is extremely limited.
-
@wainiha said:
That's an absurd dismissal of a very good idea. The fact is that without writing or using Ruby plugins, the ability to program Sketchup Dynamic Components is extremely limited.
It may be so but still this is (at least one of the) reason(s).
I am not a developer myself just explaining you what I know about these facts (not the maliciousness but the reasons)
Advertisement