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

    More controller boxes?

    Scheduled Pinned Locked Moved SketchyPhysics
    6 Posts 4 Posters 634 Views 4 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.
    • B Offline
      BTM
      last edited by

      I've been making a model, and recently came to a point where I wanted to be able to change the accel in a joint, by having it controllable. Is it any harder to have things like accel, emitter lifetime, min/ max, max accel or any other things of the sorts controllable through code? Not really that necessary, I'm mostly just wondering if it requires a lot of coding, if it's just changing around a few lines of code a bit, or if it's even possible.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MrPlanet
        last edited by

        I don't think so, you can only enter raw ruby into the boxes. nothing like 0.5-getVar("accel")

        I reject your reality and substitute my own.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BTM
          last edited by

          ...I meant: would it be harder to make these boxes also include ruby code, maybe in SPIV, maybe sooner, maybe not.

          1 Reply Last reply Reply Quote 0
          • P Offline
            phy
            last edited by

            From looking at the scrip it would possible, but I don't know enough of script to do it 😄 .

            Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by

              Its possible. But each field I make script controllable it dramatically adds to the complexity of the SP3 code. And it slows the simulation. Both of these issues will be fixed in SPIV.

              I think the best fix going forward is to set the joint parameters in an onTick (or whatever) event. So rather than having a formula in the accel field instead in onTick (or whatever) you can do something like this:

              
              joint.accel=righty*100.0
              joint.min=joint.min+10.0
              
              1 Reply Last reply Reply Quote 0
              • P Offline
                phy
                last edited by

                @cphillips said:

                Its possible. But each field I make script controllable it dramatically adds to the complexity of the SP3 code. And it slows the simulation. Both of these issues will be fixed in SPIV.

                I think the best fix going forward is to set the joint parameters in an onTick (or whatever) event. So rather than having a formula in the accel field instead in onTick (or whatever) you can do something like this:

                
                > joint.accel=righty*100.0
                > joint.min=joint.min+10.0
                

                Great that'll solve some of my problems.

                Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

                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