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

    Problem with adding attributes

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 979 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.
    • F Offline
      filipd
      last edited by

      I have one problem.I choose Component attributes and choose onClick event.There i write

      IF(X>5,animate(X,X,X-5),animate(X,X,X+5))
      

      .What mistake i have????

      Thanks,Filip

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

        I think you need to add quotes around the variable you want to animate, like this:

        IF(X>5,animate("X",X,X-5),animate("X",X,X+5))
        

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • F Offline
          filipd
          last edited by

          Thanks man but it doesn't work.I think i can find the problem.Where i have writed the function animate,should be writed a variable,but i dont want to change variable X,i want to call function animate,so X can be changed,but that would be like animation.

          Thanks

          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