Moderator: CPhillips
by cotty » Tue Sep 09, 2014 12:05 pm
Anton_S wrote:I will send an error message to them for this version as well. Yet, I can't fix it, as there are too much errors. Use version 3.6.28.3 with the fix I provided in the first post. Otherwise, you'll have to wait till they fix it.
A new version is out and the changelog says: "Fixing up SketchPhysics export" (not tested).
-

cotty
- Top SketchUcator
-
- Posts: 3443
- Joined: Fri Feb 12, 2010 1:41 pm
- Location: Germany
- Name: Carsten
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by platinius » Tue Sep 09, 2014 12:10 pm
Can you show an example, I can't reproduce this.
I'm sorry about that, it seems I didn't try enough. There is no difference between the axes. It irritated me that the moving direction of a piston or slider is opposite to the direction I choose with the mouse when positioning. For example, if I put a slider joint on the corner of a box and drag the mouse to the positive green direction it will move only to the negative direction. I can't change it because it could break compatibility with prior models, but I can make it to evaluate everything in the control box. For example, if you write 100mm it will turn it to 3.93.
Maybe this would help a little bit. To put the units besides the input boxes would be great and help people also. Maybe you know that a Mars orbiter crashed in 1999 due to falsely used units. I assume no one uses SP to constructed actually flying space ships, still it feels good to know what units one uses.  I found this thread which gives some information about units in SP: http://sketchucation.com/forums/viewtopic.php?f=61%26amp;t=53209A world scale factor of 1.0 and gravity of 9.81 (m/s²) seems to be suitable if using metric units. Maybe this thread is of interest for you also. Looks like SP's author asked this question: http://newtondynamics.com/forum/viewtopic.php?f=9%26amp;t=4684
-
platinius
-
- Posts: 2
- Joined: Sun Feb 20, 2011 10:04 pm
- Name: platinius
by Anton_S » Tue Sep 09, 2014 5:10 pm
To make the mouse control desired, simply multiply the whole controller by a negative sign.
I will add a list-box from which you could choose the type of limits angle/length.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by Anton_S » Tue Sep 09, 2014 5:31 pm
cotty wrote:A new version is out and the changelog says: "Fixing up SketchPhysics export" (not tested).
Cheers! It exports without problems, although the error comes when try to run the exported animation in Indigo render 3.6.28. Maybe I should download Indigo 3.8.x which is not available yet?
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by cotty » Tue Sep 09, 2014 6:59 pm
Anton_S wrote:Maybe I should download Indigo 3.8.x which is not available yet?
You'll find the newest beta in the forum: http://www.indigorenderer.com/forum/vie ... =1&t=13252
-

cotty
- Top SketchUcator
-
- Posts: 3443
- Joined: Fri Feb 12, 2010 1:41 pm
- Location: Germany
- Name: Carsten
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Trobius » Tue Oct 07, 2014 12:35 am
Hi there! I've been an on and off user of sketchyphysics since 2.0.
Would it be possible to create a way to get an emitted object's lifetime? I know about the setLifetime function, but is there a similar "getLifetime?"
-
Trobius
-
- Posts: 3
- Joined: Mon Sep 15, 2014 1:23 am
- Name: ------
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by Anton_S » Tue Oct 07, 2014 3:19 pm
Hello, William!
Yes, SP doesn't have these methods. The API is quite incomplete. I just added getLifetime, getLifeStart, and getLifeEnd.
Is there any other getter or setter functions you think shall be added before I post an update? Sorry, I can't think of any myself.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by ashscott » Wed Oct 08, 2014 4:15 am
You're a champ Anton, your efforts are very much appreciated. Wish I had time to get back to some of the SP work I was doing earlier. If anyone wants SP inspiration, check this model out: https://3dwarehouse.sketchup.com/model. ... 52fb19ea9bIn fact, all of Phonic's work is pretty amazing: https://3dwarehouse.sketchup.com/user.h ... 6760323686
-

ashscott
- Premium Member

-
- Posts: 488
- Joined: Sun Apr 26, 2009 11:20 pm
- Location: New Zealand
- Name: ashscott
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by Anton_S » Wed Oct 08, 2014 7:53 am
Thanks, Ash. Lately, I haven't created any SP either. I suppose, that is because I kinda lost passion in it. Phoenix is a good SP modeler. He's sharing some great stuff! Mr.K made some amazing things too. For instance, take a look at the Blue vs Red. You control the bot to get across the puzzle. It may appear mind boggling at first, but you'll get it mastered after some experience.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by ashscott » Wed Oct 08, 2014 9:01 am
Have you had any interaction with Phonic? I couldn't get a response when I tried some years ago - I wondered if he was only mandarin speaking.
-

ashscott
- Premium Member

-
- Posts: 488
- Joined: Sun Apr 26, 2009 11:20 pm
- Location: New Zealand
- Name: ashscott
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by Anton_S » Thu Oct 09, 2014 7:46 am
ashscott wrote:Have you had any interaction with Phonic? I couldn't get a response when I tried some years ago - I wondered if he was only mandarin speaking.
Nope, I haven't. I doubt that Phoenix even reads the comments. Usually people respond to their comments by updating the model description with responses, but I never seen him do that.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by ashscott » Fri Oct 10, 2014 2:19 am
One thing with Sketchyphysics I did wonder about - and I have no idea how to execute it - would be a "Cut" function. I have modeled saw milling machinery with SP in the past but always had to do some variation of a breakable joint to simulate cutting - due to the physical reactions in breaking a joint, you can understand that it wasn't pretty.
Any idea how to cut an object so that it becomes two?
-

ashscott
- Premium Member

-
- Posts: 488
- Joined: Sun Apr 26, 2009 11:20 pm
- Location: New Zealand
- Name: ashscott
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by Anton_S » Fri Oct 10, 2014 3:45 am
Piece of cake! Copy this piece of code into the scripted field of the body that you want to be cut: - Code: Select all
onTouch { split(self, 2) }
What happens is that it splits when it is touched by another body. Increasing the value will create more cuts. Of course, the code may be changed to have the body be split in another occasion, for instance when it touches a particular body, or at specified frame... If you provide some instructions I could easily write you a code.  Here is a little example: cut_body_example.skp
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by ashscott » Fri Oct 10, 2014 4:10 am
Very cool!
I think I've seen some reference to this before.
How would I control the cut so it occurs in a specific place?
For example, on a piece of wood - to only be cut where the saw touches it?
Ash
-

ashscott
- Premium Member

-
- Posts: 488
- Joined: Sun Apr 26, 2009 11:20 pm
- Location: New Zealand
- Name: ashscott
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by Anton_S » Fri Oct 10, 2014 9:46 am
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by pilou » Fri Oct 10, 2014 10:49 am
Cool function! But seems there is a glitch!  When I use these 2 menus! After the Record Animation, replay etc... Animation is stopped at the moment of the box must be "exploded" on the inclined plane! Can you verify this ? And also the white cross texture box "transparent" who is drawn!  This is the image of the result wished! glitchSketchy.jpg
Last edited by pilou on Fri Oct 10, 2014 1:50 pm, edited 1 time in total.
-

pilou
- Top SketchUcator
-
- Posts: 21310
- Joined: Wed Jan 23, 2008 10:33 pm
- Name: Pilou
- Operating system: Windows
- SketchUp version: 2017
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by ashscott » Fri Oct 10, 2014 10:54 am
Anton, I am stunned I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas? Frenchy: And also the white cross texture box "transparent" who is drawn
For some reason "Hidden Geometry" is getting turned on when I run an simulation the first time. Go >View>Hidden Geometry to turn it off.
-

ashscott
- Premium Member

-
- Posts: 488
- Joined: Sun Apr 26, 2009 11:20 pm
- Location: New Zealand
- Name: ashscott
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by pilou » Fri Oct 10, 2014 1:55 pm
Thx 
-

pilou
- Top SketchUcator
-
- Posts: 21310
- Joined: Wed Jan 23, 2008 10:33 pm
- Name: Pilou
- Operating system: Windows
- SketchUp version: 2017
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Anton_S » Fri Oct 10, 2014 5:26 pm
Pilou wrote:When I use these 2 menus! After the Record Animation, replay etc... Animation is stopped at the moment of the box must be "exploded" on the inclined plane! Can you verify this ?
The animation doesn't handle added and removed objects during simulation. What happens behind the scenes: When the body is about to be split, the body itself doesn't split, but rather two other bodies are added in similar form. The original body becomes hidden and set static, meanwhile the two added bodies take over the scene. When simulation resets the original body is unhidden, and the added split bodies are deleted. The animation tool is not complex. It does not record added and removed bodies during simulation.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by Anton_S » Fri Oct 10, 2014 5:30 pm
ashscott wrote:Anton, I am stunned I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas?
Thanks! I'd be impressed to see someone use my code 
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by pilou » Fri Oct 10, 2014 6:23 pm
It does not record added and removed bodies during simulation.
Ok! So, how do save the result of the normal result if you want to use it for something? For example I want use the brocken rocks for an exposition!  Now as soon has i want select them (broken rocks) the animation restart at the beginning! In the past I was making that without problem!  

-

pilou
- Top SketchUcator
-
- Posts: 21310
- Joined: Wed Jan 23, 2008 10:33 pm
- Name: Pilou
- Operating system: Windows
- SketchUp version: 2017
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Anton_S » Sun Oct 12, 2014 4:45 am
In the past when you selected a different tool SP didn't always deactivate properly, i.e. sometimes objects failed to be placed back to original locations, but now they do. I suppose, you relied on the bug.
One way to get all the split bodies is by playing simulation, pausing it at desired frame (i.e when you have broken rocks), and then save as another model. Open the new model, and you have the broken rocks!
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by gyrolen » Sun Oct 12, 2014 4:59 am
Anton , can you help.? I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014. Can you advise how to do it.? I have downloaded the *.rbz file, but where do you put it SU2014 does not seem to use rbz files anymore. Thanks, Len
-
gyrolen
-
- Posts: 2
- Joined: Wed Jan 23, 2013 6:06 am
- Name: Len Williams
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: product design
- Level of SketchUp: Intermediate
by Anton_S » Sun Oct 12, 2014 8:19 am
gyrolen wrote:Anton , can you help.? I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014. Can you advise how to do it.? I have downloaded the *.rbz file, but where do you put it SU2014 does not seem to use rbz files anymore. Thanks, Len
There are two ways you can do it: Way one: - Download SketchyPhysics_3.5.2.rbz
- Open SU2014 and navigate to (Menu) Window > Preferences.
- In the preferences window navigate to Extensions tab and select Install Extension... button
- From there, find your downloaded compressed file, and select open button, which will install the extension.
Way two: Use PluginStore extension. Follow installation steps here: http://sketchucation.com/resources/plug ... e-download
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by gyrolen » Sun Oct 12, 2014 11:42 am
Anton_S wrote:gyrolen wrote:Anton , can you help.? I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014. Can you advise how to do it.? I have downloaded the *.rbz file, but where do you put it SU2014 does not seem to use rbz files anymore. Thanks, Len
There are two ways you can do it: Way one: - Download SketchyPhysics_3.5.2.rbz
- Open SU2014 and navigate to (Menu) Window > Preferences.
- In the preferences window navigate to Extensions tab and select Install Extension... button
- From there, find your downloaded compressed file, and select open button, which will install the extension.
Way two: Use PluginStore extension. Follow installation steps here: http://sketchucation.com/resources/plug ... e-download
Thanks Anton ,your instructions worked fine, have got it going, now to learn how to use it. Len
-
gyrolen
-
- Posts: 2
- Joined: Wed Jan 23, 2013 6:06 am
- Name: Len Williams
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: product design
- Level of SketchUp: Intermediate
by Trobius » Sun Oct 12, 2014 5:53 pm
Anton_S wrote:Hello, William!
Yes, SP doesn't have these methods. The API is quite incomplete. I just added getLifetime, getLifeStart, and getLifeEnd.
Is there any other getter or setter functions you think shall be added before I post an update? Sorry, I can't think of any myself.
Sorry for taking so long to get back to you. Thank you for the info!
-
Trobius
-
- Posts: 3
- Joined: Mon Sep 15, 2014 1:23 am
- Name: ------
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by Trobius » Mon Oct 13, 2014 8:01 pm
Oh, actually I did think of something else that I would like to see:
Could you create a function which would allow you to retrieve the "parent" of an emitted object? (eg, toucher.getEmitter?)
-
Trobius
-
- Posts: 3
- Joined: Mon Sep 15, 2014 1:23 am
- Name: ------
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by pilou » Mon Oct 13, 2014 11:55 pm
I must miss something! One way to get all the split bodies is by playing simulation, pausing it at desired frame (i.e when you have broken rocks), and then save as another model. Open the new model, and you have the broken rocks!
The animation doesn't handle added and removed objects during simulation.
So the animation can never play after the beginning of the cutting! Try with this example and show me how you can save the broken rocks. (I have the last version 3.52)
-

pilou
- Top SketchUcator
-
- Posts: 21310
- Joined: Wed Jan 23, 2008 10:33 pm
- Name: Pilou
- Operating system: Windows
- SketchUp version: 2017
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Anton_S » Tue Oct 14, 2014 12:28 am
Pilou, I'm speaking about the simulation tool, not animation tool. Press the Physics Toggle Play button and wait till the body is cut. As soon as it cuts, press the Physics Toggle Play button once again to pause. From there on you can 'save as' the model, but don't press the reset button, until you do say the model as another model, for instance, cut2.skp
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by Anton_S » Tue Oct 14, 2014 12:34 am
--
Last edited by Anton_S on Tue Oct 14, 2014 2:44 am, edited 2 times in total.
-
Anton_S
- PluginStore Author

-
- Posts: 1216
- Joined: Tue Nov 23, 2010 9:15 pm
- Name: Anton
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to SketchyPhysics
|