sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Multiple Set() attributes for onClick behavior

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    4 Posts 3 Posters 9.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.
    • DavidBoulderD Offline
      DavidBoulder
      last edited by

      I don't think this can be done, but thought I would ask if I could attach multiple behaviors to an onClick behavior. In my case when the user clicks I want to add an extra row and column. Or a row on one click, and then a column on the next click.

      I think I could get this to work if I created a statement looking for odd vs. even, and then took different action based on that. But I also still want to user to be able to manually set the rows and columns. If I use a formula for the number of rows and columns, do I give up the ability for the user to manually override and choose their own value?

      OK, it looks like they can manually override. but then the formula is lost. I guess not too bad. They can have the click interactivity at first, but once they manually change, then it wont' work on this instance, unless they re-load (which would loose other data)

      --

      David Goldwasser
      OpenStudio Developer
      National Renewable Energy Laboratory

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        just seperate the Set() attributes with a semicolon, so it'll looking sometihng like this: Set(); Set(); Set()

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • DavidBoulderD Offline
          DavidBoulder
          last edited by

          Thanks, just what I was looking for. I had tried with a space but not a semicolon.

          Much easier than the hoops I was jumping through.

          --

          David Goldwasser
          OpenStudio Developer
          National Renewable Energy Laboratory

          1 Reply Last reply Reply Quote 0
          • B Offline
            bthomas3
            last edited by

            Are there any similar uses for the ";" that we may not know?

            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