sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    JavaScript support for Dynamic Components

    Scheduled Pinned Locked Moved SketchUp Feature Requests
    sketchup
    4 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      Wainiha
      last edited by

      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
      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        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...

        1 Reply Last reply Reply Quote 0
        • W Offline
          Wainiha
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            @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)

            Gai...

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement