• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Multiple Set() attributes for onClick behavior

Scheduled Pinned Locked Moved Dynamic Components
sketchup
4 Posts 3 Posters 9.2k Views
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.
  • D Offline
    DavidBoulder
    last edited by 4 Mar 2010, 20:18

    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 4 Mar 2010, 20:37

      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
      • D Offline
        DavidBoulder
        last edited by 4 Mar 2010, 21:24

        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 7 Dec 2017, 13:04

          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