SketchUcation Plugin Store

 

 

JavaScript support for Dynamic Components

JavaScript support for Dynamic Components

Postby Wainiha » Mon Feb 22, 2010 7:50 pm

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
Wainiha
 
Posts: 6
Joined: Sun Feb 14, 2010 9:51 pm
Name: Joseph Oster

Re: JavaScript support for Dynamic Components

Postby Gaieus » Tue Feb 23, 2010 11:40 am

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.
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27604
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: JavaScript support for Dynamic Components

Postby Wainiha » Wed Feb 24, 2010 5:42 pm

Gaieus wrote: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
 
Posts: 6
Joined: Sun Feb 14, 2010 9:51 pm
Name: Joseph Oster

Re: JavaScript support for Dynamic Components

Postby Gaieus » Sat Feb 27, 2010 7:19 am

Wainiha wrote: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)
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27604
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to SketchUp Wishes

Who is online

Users browsing this forum: No registered users and 0 guests