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)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement