• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Default values of controls / grouped controls

Scheduled Pinned Locked Moved SketchyPhysics
8 Posts 4 Posters 824 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.
  • S Offline
    SToP GAP
    last edited by 11 Mar 2009, 00:54

    I can't seem to find info on this anywhere in the forums so if someone knows, I'd appreciate the help.

    I'm modelling a funfair ride which is all going fairly well with one exception. I can't find any way to change the default value a control will take on when you begin the physics simulation. On playing the simulation, everything just defaults to 50% of full, which moves servos, starts motors etc. Is there some way of changing this so all values for controls are set to my specifications instead of a blanket 0.5? I can't for the life of me find where to do this if it is so...

    On a side note... is it possible to create controls which control other controls? E.g. controla and controlb change two pairs of servos each. Can I make controlc which can alter controla and controlb together? I realise that in that example that I could just assign all the servos to controla and use that, but I'm trying to achieve sets of movement of individually controlled joints here, not just lump everything under one control handle.

    Cheers,

    Simon.

    1 Reply Last reply Reply Quote 0
    • N Offline
      nosam55
      last edited by 11 Mar 2009, 01:04

      slider("name of slider",0)

      it works for me

      idk about grouped controls

      1 Reply Last reply Reply Quote 0
      • S Offline
        SToP GAP
        last edited by 11 Mar 2009, 01:20

        Ok, I get what that would do... where would I enter such an instruction? I don't see anywhere for such things. Forgive me if I'm being dumb, I've not been using this more than a day! πŸ˜„

        Cheers.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BTM
          last edited by 11 Mar 2009, 01:29

          You enter the instruction in the joint's UI; click the joint, click the UI button, a menu will pop up, set it in the controller box:
          Picture 1.png
          You can replace the word motor for whatever you want though.

          β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

          As for your second question; probably. you can enter things like:

          (rightx-0.5)+(0.5-righty)
          

          which allow 2 controllers to control a single object, and the -0.5 allows reverse for things like motors. An example of a model using this, to have servo-less steering
          ROD.skp
          Use arrow keys to steer. WASD do a couple other things I stuck in for the heck of it.

          1 Reply Last reply Reply Quote 0
          • S Offline
            SToP GAP
            last edited by 11 Mar 2009, 01:54

            Entering

            servo('servo41369',0)
            

            in to the doesn't work, it simply returns to

            servo(1)
            

            which then becomes a control in the control panel

            servo(1)
            

            Am I missing something here? It seems you are using SP3, could that be why? I'm only on SP2...

            1 Reply Last reply Reply Quote 0
            • B Offline
              BTM
              last edited by 11 Mar 2009, 02:00

              Yeah. That would be why. I don't think you can do that with V.2, so if I were you, I'd get 3. Don't worry; your model will probably work in it too.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nosam55
                last edited by 11 Mar 2009, 02:16

                yup

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Galphanore
                  last edited by 16 Mar 2010, 06:12

                  When I try to do what you suggested above it doesn't change the name or default value, it just locks me out of the UI control pannel. Specifically, I change This :

                  slider('piston299781')
                  
                  

                  to this :

                  slider('Left',0)
                  

                  And no changes occur to the physics but if I click off the UI box then the UI will not re-open any more. Any suggestions?

                  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