MSPhysics tests and questions
-
I downloaded MS Physics plugin after seeing a demo from Justin's SketchUpEssentials. Looks really cool, but is it really compatible with Mac? It says it is, but following the tutorials on Youtube, all the setup modes seem to function, but when it comes to implementation, the model disappears, and a counter on the bottom left hand of the screen counts ‘Frame’, Time and FPS. Goes on forever! Is this normal?
Box, on the SketchUp Forum looked at the model for me on a PC, and then had similar issues, so suggested that this is not necessarily a Mac issue.
I am setting up a mobile (to hang above a baby's cot) with rotating discs balanced on a simple rod. Each disc then has to be able to swivel on its vertical axis, each group would then too, and then including the main arm holding all the groups has to be able to swivel on its axis.
Can Anybody offer some advice.
Thanks
Jens -
Judging from the description, objects outside the window seem to fall into the bottomless state and cause the SketchUp clipping problem. All groups or components that should not be simulated should be set to "Ignore" or "Static". This can be done in the MSP user interface or in the MSP context menu. A sample SUp model is always very helpful for more precise assessments.
-
@ aldoz8:
There is no easy solution for this after my first tests. Each slider can directly control only one joint (and several identical copies of the joint) at a time. It is possible to use scripts to query the input values from a slider and pass them on to the required other joints. Unfortunately, I don't have time for an example. Sorry! -
This is a message sent by mistake. It needs to be deleted. I did not delete it. Sorry.
-
Hello everyone, to see if a charitable soul can help me out.
Using MSPhysics script I want to get:
1 know the position of a servo join
2 move the servo without using “get_var ()” as controllerI wish to animate a mechanism with scripting, I would greatly appreciate code examples (I find it almost impossible to find them)
Greetings and many thanks -
There is a link to the Scripting Documentation in the first post of Anton_S regarding his MSPhysics plugin: https://sketchucation.com/forums/viewtopic.php?f=323&t=56852
-
tecnozati,
Yeah, the docs do not have enough coding examples. But I intended to fix that someday.
To get the position of a servo joint from a script field, you will first need to know the name/id of the joint, which is displayed in UI when you select the joint. Then you can write the following code:
onStart { @j = simulation.find_joint_by_name("569422") } onTick { # Set desired angle if (key(' ') == 1) @j.controller = 100.degrees else @j.controller = 0 end # Get current angle simulation.log_line @j.cur_angle.radians }
You can refer to servo docs for more functionality: https://www.rubydoc.info/github/AntonSynytsia/MSPhysics/MSPhysics/Servo
Anton
-
Thank you, thank you, thank you! The head was going to burn me!
And above all, thanks for Msphysics! -
Again, thanks Anton, I have managed to give life to my creature
-
Dude great job!!!
-
I have made a simple car and set a controller for the servos and motors but they don't respond. Any clue on how to fix? (controls are the arrow keys)
-
If you upload the skp file, we can have a look.
-
It works perfectly. I didn't see any problem.
Click on the picture for animation.
-
It might be something with my wrong with either my computer, msphysics, or sketchup because I start the simulation and the car starts driving by itself and doesn't respond to the the arrow keys.
Also is there a plugin that downloads the simulation recording?
-
Never mind I just needed to uninstall MS physics and AMS library and get the extensions from the SketchUp extension warehouse. Just a final question, what plugin downloads the simulation recording?
-
A small hint, I suspect nobody has bothered to reply or read your posts due to your spam style user name. I only came here by accident.
Like most things in life there is 'Unique' and there is 'wtf'. try being unique.
-
I fixed it to be less obnoxious.
-
Bonjour, je n'ai également pas la possibilité de commander les animations (Thruster, Emetter, etc..) avec le clavier de mon portable, je ne suis pas le premier à relever ce problème apparemment et je ne trouve pas la solution. Avez-vous une idée svp ?
-
@ecati said:
It works perfectly. I didn't see any problem.
Click on the picture for animation.- English: Hello, I can't get the keyboard commands to work either. I am using a drinking PC with Windows 11, sketchup 2018 and I have installed the ams_Lib.rbz_v3.7.1b.rbz library and MSPhysics_v1.0.3.rbz. The problem is the same on my other laptop running Windows 10. Can you help me? Thank you in advance.
- Français: Bonjour, chez moi non plus, je n'arrive pas à faire fonctionner les commandes au clavier. J'utilise un PC potable avec Windows 11, sketchup 2018 et j'ai bien installé la librairie ams_Lib.rbz_v3.7.1b.rbz ainsi que MSPhysics_v1.0.3.rbz. Pour info le problème est identique sur mon autre PC portable équipé de Windows 10. Pouvez-vous m'aider? D'avance, merci.
-
@ecati said:
It works perfectly. I didn't see any problem.
Click on the picture for animation.Hello, I can't get the keyboard commands to work either. I am using a drinking PC with Windows 11, sketchup 2018 and I have installed the ams_Lib.rbz_v3.7.1b.rbz library and MSPhysics_v1.0.3.rbz. The problem is the same on my other laptop running Windows 10. Can you help me? Thank you in advance.
Bonjour, chez moi non plus, je n'arrive pas à faire fonctionner les commandes au clavier. J'utilise un PC potable avec Windows 11, sketchup 2018 et j'ai bien installé la librairie ams_Lib.rbz_v3.7.1b.rbz ainsi que MSPhysics_v1.0.3.rbz. Pour info le problème est identique sur mon autre PC portable équipé de Windows 10. Pouvez-vous m'aider? D'avance, merci.
Advertisement