sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Feature request.

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    7 Posts 3 Posters 2.7k Views 3 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.
    • Phillip HP Offline
      Phillip H
      last edited by

      I would love to see a move tool that fired the onClick attribute.

      HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
      NVIDIA NVS 3100, 512 MB
      Windows® 8.1 64 bit
      SketchUp Pro 2015 version 15.3.331 64-bit

      1 Reply Last reply Reply Quote 0
      • G Offline
        Garry K
        last edited by

        There is an interact tool that becomes available when the 'Dynamic Components' extension is loaded.

        Or are you talking about something else?

        1 Reply Last reply Reply Quote 0
        • Phillip HP Offline
          Phillip H
          last edited by

          @garry k said:

          There is an interact tool that becomes available when the 'Dynamic Components' extension is loaded.

          Or are you talking about something else?

          Hi Garry!

          Yeah I am. The interact tool only fires onClick when the mouse button is depressed while the cursor is on a 'clickable' surface. There is a certain level of integration with the scale tool, but it doesn't fire the onClick attribute of DCs. What I am talking about would be a move tool integration that would allow some drag and drop functionality and would also 'fire' the onClick attribute when the mouse button is released. In that way, the user could affect X, Y, Z AND RotX, RotY and RotZ and process the results through the formulas stored in the onClick attribute.

          Of course, I'm a noob, so if there is another way of accomplishing this, I'm all ears.

          HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
          NVIDIA NVS 3100, 512 MB
          Windows® 8.1 64 bit
          SketchUp Pro 2015 version 15.3.331 64-bit

          1 Reply Last reply Reply Quote 0
          • G Offline
            Garry K
            last edited by

            You are limited to the interact tool.

            Personally - I don't think I would involve the scaling tool. I was able to affect 2 components with different motions with 1 click.

            If this is what you are looking for I can post an example.

            1 Reply Last reply Reply Quote 0
            • P Offline
              pcmoor
              last edited by

              Hi Phillip

              could you use the nudge idea with a variable input, like int(255/input)? to get one to a general color change then fine tune to suit.

              Philip (with only one L)

              1 Reply Last reply Reply Quote 0
              • Phillip HP Offline
                Phillip H
                last edited by

                @pcmoor said:

                Hi Phillip

                could you use the nudge idea with a variable input, like int(255/input)? to get one to a general color change then fine tune to suit.

                Philip (with only one L)
                Sure could Philip (with only one L - I'm sorry for your loss). 😆 If we ever meet, you can hit me for that. 😉

                As a matter of fact, that is probably the only solution that will get me to my goal. I have 4 inches of travel, so its INT(ABS((Rx/IncAmt))) where Rx is the X value of the Red slider and IncAmt represents the 256 divisions of 4. I threw in the ABS function when I observed a -0 at one point and I broke each step out so I could better monitor the values... I'm a noob after all.

                I have aligned the slider axes to the middle of the component. The axis for the Cube is aligned to 0 at the beginning of the slider's X axis travel. The scale tool stretches the slider component, but I can still visually choose where the slider X axis lands on the grid. I am limiting the travel with [NewX=NEAREST(CURRENT("X"),0.00000,0.015748,{..........},3.984252,4.000000)] causing X to snap to the nearest correct value, then X=NewX.

                Each slider contains the following custom attributes:
                Constants:
                IncAmt=0.015748
                OldLenX=1 (Resets the slider geometry after the scale operation)

                The RGB slider X values:
                (Brings the X values from all three of the sliders into the active [selected] slider.)
                Rx=SliderR!X
                R=INT(ABS((Rx/IncAmt)))
                Gx=SliderG!X
                G=INT(ABS((Gx/IncAmt)))
                Bx=SliderB!X
                B=INT(ABS((Bx/IncAmt)))

                Convert increment count numbers into characters and format them for the Material attribute.
                Trick=CONCATENATE(R,",",G,",",B)

                I'm not sure how to add 'clickable' surfaces without embedding them in the slider component. If I do that they won't click. If I don't, they won't scale. Hmmm...

                Provided I can implement your answer, it will mean that I have to scale, then switch to the interact tool, then nudge (click, click click...), then scale the next slider, etc. Unfortunately, jumping back and forth between sliders and back and forth between scaling and clicking to get to the desired color, introduces an order of magnitude of complexity to the user interaction. However, by adding the click it will at least fire the onClick attribute and display the current color. Not ideal and not what I intended, but if I can do it, I can at least put this exercise to bed until a better solution presents itself. Thanks again for the suggestion.

                Phillip (with both Ls) 😄

                HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
                NVIDIA NVS 3100, 512 MB
                Windows® 8.1 64 bit
                SketchUp Pro 2015 version 15.3.331 64-bit

                1 Reply Last reply Reply Quote 0
                • Phillip HP Offline
                  Phillip H
                  last edited by

                  @garry k said:

                  You are limited to the interact tool.

                  Personally - I don't think I would involve the scaling tool. I was able to affect 2 components with different motions with 1 click.

                  If this is what you are looking for I can post an example.

                  I get that. But that is the point. Can you select one of 256 increments with one click without going to a drop down box? The scale tool does not fire the onClick attribute, so unfettered dynamic motion such as produced by scale and move will not activate a formula. That is the reason for a feature request. See my post in 'What's the Future of Dynamic Components?' for my reasoning. See if you agree. I would be very interested to get your take on this.

                  HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
                  NVIDIA NVS 3100, 512 MB
                  Windows® 8.1 64 bit
                  SketchUp Pro 2015 version 15.3.331 64-bit

                  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