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

    Some DC requests - others?

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    5 Posts 3 Posters 1.3k 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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      Well I was thinking of one or two things I would like to see added to DC's. Maybe this isnt the best place to bring them up, but I thought it might spark some conversation or people showing me how to do what I want w/o the functionality I'm requesting.

      1. Multiple OnClick events to a single component
        I keep thinking that I would like to be able to assign multiple OnClicks to a single component. It would simplify randomizing multiple attributes simultaneously, for example. Then I could have an alert pop up AND animate.

      2. a pause or delay command built in to animate. So it could delay x amount of time before animating.

      I guess thats all I have for now. I'll come back with more hopefully.

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        @chris fullmer said:

        1. Multiple OnClick events to a single component
          I keep thinking that I would like to be able to assign multiple OnClicks to a single component. It would simplify randomizing multiple attributes simultaneously, for example. Then I could have an alert pop up AND animate.

        I did learn that you can use multiple statements by using a semi-colon, and they seem to be executed simultaneously.

        
        animate("a", 0, 100);animate("b", 0, 50)
        
        

        #2 - nothing came to mind right off.

        Hi

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          #1 Thanks Jim!!! I just tried and it works precisely as I was hoping! Oh I'm excited!

          #2 My only thought of a workaround involves animating an attribute (I'll call animated) from (for example) -100 to 100. over 20 seconds. Then have an intermediate attribute to interpret the animation like so:

          interpret =if(animated<0,0,animated)

          Then make "X" =interpret.

          So X = 0 for the first 10 seconds while the animation is counting from -100 to 0. As soon as it reaches 0 then X begins to animate from 0 100 over the last 10 seconds. That is a decent workaround, but perhaps a functionality could be provided. I've provided the example I made to test this theory. Again, thanks Jim.

          Chris


          delay animation.skp

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dhruv
            last edited by

            I wanted to know one thing, can I define my onClick openURL function in DC? Can I define my own functions in DC? if so where do I do it? I don't know whether image URL does the same thing. Can somebody clarify it?
            Something like userdefined function.

            Thanks,
            Dhruv

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              Dhruv was responded to here:

              301 Moved Permanently

              favicon

              (www.sketchucation.com)

              Please respond there if you have additional comments on his post so we can keep the forum tidy. Thanks!

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              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