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

    Topics

    • H

      Connect & disconnect joint function?

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      3
      0 Votes
      3 Posts
      1k Views
      H
      Thanks so much! I've got it to work with that script!
    • H

      Copy objects with names?

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      5
      0 Votes
      5 Posts
      605 Views
      H
      Hello again! Thanks for the help! I had done in another way that works to, it´s a bowling lane (with pins and everything ofcourse), but it is scripted, not mechanical. So therefor I need to delete the pins/balls that have been used to copy/emitter new ones, otherwise there will be too much geometry in the model. And when the model should erase the pins/balls I've think that it only should erase objects with the name pin (or ball) but, I've figured out another way on the problem. But thank's alot for the help, I be back if I got more problems. The skechyphysics is awesome!
    • H

      Delete object with script?

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      12
      0 Votes
      12 Posts
      2k Views
      M
      u should only ever delete objects created in simulation, eg emitted objects
    • H

      Change color of a Group.

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      4
      0 Votes
      4 Posts
      2k Views
      W
      Paint the group with the default material in the places you want the color to change. There are probably a few ways to script this, but one is: @m = Sketchup.active_model.materials.add "My material" group.material = @m @m.color="Red" "Red" could be any color name, and you do need to use the quotes. Or you can use an r,g,b value... [100,100,100], for example, will give a shade of gray. The name of the material, in this case, "My material", is of no real consequence, as SU will stick a number on the end if the name is already being used. You should be able to change the color during the sim with: @m.color = ... In ontick, or whatever. You can also do other stuff with the material, like use a texture, or make it transparent... see The API for more info. Good luck!
    • H

      Speedmeter??

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      3
      0 Votes
      3 Posts
      436 Views
      H
      Okay! Thanks!
    • H

      Timer variable to SPIV?

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      11
      0 Votes
      11 Posts
      1k Views
      C
      I don't think it would crash. It would probably get slow if you have too many tho.
    • H

      Frame-cycle

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      6
      0 Votes
      6 Posts
      685 Views
      C
      I would do it by using a variable instead of frame. That way you could control when it plays and be able to reset it when done. In an OnTick #only increase "myframe" if "xxx" >0 if(getVar("xxx")>0);setVar("myframe",getVar("myframe")+1);end #if "myframe" is greater than 100 then reset and stop. if(getVar("myframe")>100);setVar("myframe,0);setVar("xxx",0);end Then in the servo controller use getVar("myframe") instead of frame.
    • 1 / 1