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

    Formulae Question

    Scheduled Pinned Locked Moved SketchyPhysics
    2 Posts 2 Posters 405 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.
    • P Offline
      Physicsguy1
      last edited by

      Can a function be randomly selected in a certain event? like: if frame==0 then push(15) OR push(5);end;

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wacov
        last edited by

        if frame>1;push(getVar("foo"));elsif rand<=0.4;setVar("foo",15);else;setVar("foo",5);end
        

        Not totally sure if that works...

        if frame>1;0;elsif rand<=0.4;push(15);else;push(5);end
        

        That does what I think you're trying to do.

        http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

        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