sketchucation logo sketchucation
    • Login
    1. Home
    2. JuanLopez
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    JuanLopez

    @JuanLopez

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    JuanLopez Unfollow Follow
    registered-users

    Latest posts made by JuanLopez

    • OnClick Rotating Problem

      Hi,

      Just starting to play around with DC and i'm already having trouble trying to rotate a component. It is supposed to rotate 90º on each mouse click. The first few rotations work fine, but every time it completes a revolution, the next rotation goes anti-clockwise.

      I think I understand this behaviour, and in order to solve it I do the following

      (Attribute) RotY: (360*rev_count) + deg
      (Attribute) onClick: ANIMATE(deg,90,180,270,360)
      (Attribute) condition: if(deg=360,rev_count=rev_count+1,rev_count=rev_count)
      (Attribute) deg: 0
      (Attribute) rev_count: 0

      but it doesn´t work. The 'rev_count' variable never changes its value.

      Any ideas? It should be fairly easy to achieve but I can't find a way to do so.

      Thanks!

      posted in Dynamic Components sketchup
      J
      JuanLopez