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

    Problem with adding attributes

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 946 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