SketchyPhysics3.1

Moderator: CPhillips

SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 2:47 am

Here is the long awaited new version of SP. Hopefully this version will be much more stable under SU8.

http://code.google.com/p/sketchyphysics/downloads/list

Check out the Release Notes for changes:
http://code.google.com/p/sketchyphysics ... seNotes3_1

All the scripted events and commands. This list will get fleshed out over time.
http://code.google.com/p/sketchyphysics ... tFunctions


Mac version, more docs and examples to follow....

Updated Oct 7 2010
Changes:
http://code.google.com/p/sketchyphysics/wiki/SP31Oct7
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby phy » Tue Sep 28, 2010 3:04 am

SWEET!!!!!!!!! :berserk: :ecstatic:
0
Have A Good Day! ;)

phy 
 

Re: SketchyPhysics3.1

Postby Krisidious » Tue Sep 28, 2010 3:18 am

is this for SU7 too?
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 3:25 am

Yes it will run under SU7. Just change the location its installed to.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 3:28 am

Here is an example of something I just added recently. A script function that allows you to get a point along a Sketchup curve. It can be used for any number of things. In this case I use it to move bodies along a curve.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 3:31 am

Another curve example. This time the curve is used to set the position (via controller field) of a pair of pistons.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 3:35 am

This example shows off several features. Embedded sounds, destroying bodies during simulation, logging messages to the screen, camera following a target and lots of ontouch features.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 3:39 am

0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby mptak » Tue Sep 28, 2010 11:29 am

Yipee...Yapee...Yahooeee!
0

mptak 
 

Re: SketchyPhysics3.1

Postby mrmar975 » Tue Sep 28, 2010 1:16 pm

Thank you! I am a teacher using this for my robotics class. The design abilities and creativity I get to engage my students in is amazing, thanks to you. Much appreciated.
0

mrmar975 
 

Re: SketchyPhysics3.1

Postby dmondark » Tue Sep 28, 2010 1:46 pm

Standing by for the mac "version"...
8-)
0

dmondark 
 

Re: SketchyPhysics3.1

Postby hobbnob » Tue Sep 28, 2010 6:30 pm

How do we go about using the sound function? I tried using the playSound script but it didn't work.

Here's the file, please tell me what's wrong.
0
My WIP Thread:Here

hobbnob 
 

Re: SketchyPhysics3.1

Postby jblively » Tue Sep 28, 2010 6:52 pm



On the self Connecting Joints Example, can you add a name of a slider in there, so there can be a way to control the joints via the control panel?

ontouch{|t,s,p|
connect(t,"servo")
ontouch{}
}

I didn't see it in this Definition: connect(child,type="ball",min=0,max=0,accel=0,damp=0,breakingForce=0)

I'll never draw another dang joint again if this works ;-)
0

jblively 
 

Re: SketchyPhysics3.1

Postby Mr.K. » Tue Sep 28, 2010 8:02 pm

hobbnob wrote:How do we go about using the sound function? I tried using the playSound script but it didn't work.

Here's the file, please tell me what's wrong.

It seem you didn't embed the sound, which this function needs because it doesn't play it directly from file, but from embedded sound data.
What you do is go to Plugins -> SketchyPhysics -> Sound, and it should open up a simple UI to add/embed sound, and later on don't forget to save your model so the data get's saved with it.
0

Mr.K. 
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 10:16 pm

Turns out the break example will bugsplat SU8. I have a fix but I am going to wait and see if there are any other issues before I release a new version.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 10:54 pm

jblively wrote:
On the self Connecting Joints Example, can you add a name of a slider in there, so there can be a way to control the joints via the control panel?

ontouch{|t,s,p|
connect(t,"servo")
ontouch{}
}

I didn't see it in this Definition: connect(child,type="ball",min=0,max=0,accel=0,damp=0,breakingForce=0)

I'll never draw another dang joint again if this works ;-)


Thats a bit harder than it sounds. But I will look into it.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Tue Sep 28, 2010 11:18 pm

CPhillips wrote:
jblively wrote:I'll never draw another dang joint again if this works ;-)


Thats a bit harder than it sounds. But I will look into it.


Ah! Turns out to be easier than I thought. This will work in next version:

Code: Select all
!!!Example only. Will not work in Sept 27 version!!!
ontouch{|t,s,p|
   @jnt=connect(t,"servo",0,90)
   ontouch{}
}
ontick{
   if @jnt!=nil
      @jnt.controllerValue=slider("position")
   end
}

0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby CPhillips » Wed Sep 29, 2010 4:25 am

Updated the scripting reference. Not done yet, but more usable now.

http://code.google.com/p/sketchyphysics ... tFunctions
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby hobbnob » Wed Sep 29, 2010 6:12 pm

Well on the whole this is a very much improved release, K's advice for embedding sounds worked fine and I've also tried out the destroy function, very useful for so many things.
0
My WIP Thread:Here

hobbnob 
 

Re: SketchyPhysics3.1

Postby jblively » Wed Sep 29, 2010 6:14 pm

CPhillips wrote:
Ah! Turns out to be easier than I thought. This will work in next version:



Excellent!!!!!

Can't Wait :-)
0

jblively 
 

Re: SketchyPhysics3.1

Postby jblively » Wed Sep 29, 2010 9:59 pm

CPhillips wrote:Updated the scripting reference. Not done yet, but more usable now.

http://code.google.com/p/sketchyphysics ... tFunctions


WOW!

I know how it's not fun to doc (i've done my share) but I know we all will really appreciate this new format. Very readable and usable! Great Job!
0

jblively 
 

Re: SketchyPhysics3.1

Postby jaysax » Mon Oct 04, 2010 5:33 pm

CPhillips wrote:
Ah! Turns out to be easier than I thought. This will work in next version:

Code: Select all
!!!Example only. Will not work in Sept 27 version!!!
...




The SketchyPhysics google projects pages mention a Sept 30 version http://code.google.com/p/sketchyphysics/w/list but the listing (http://code.google.com/p/sketchyphysics/w/list) only appears to have a Sep 27 version.

Is that because you just updated the Sep27 version in place, or am I just having my own comprehension problem? If so, sorry!

Jay
0

jaysax 
 

Re: SketchyPhysics3.1

Postby CPhillips » Mon Oct 04, 2010 11:49 pm

Version delayed while I deal with a family issue.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby Davidfi1 » Thu Oct 07, 2010 9:14 am

Wonderful Work !!!
Thank you.

the http://forums.sketchucation.com/viewtopic.php?f=61&t=24201#p206890 bug is not fixed yet but it is not that interesting
0

Davidfi1 
 

Re: SketchyPhysics3.1

Postby CPhillips » Fri Oct 08, 2010 4:05 am

New version is up here:
http://code.google.com/p/sketchyphysics/downloads/list

Changes:
http://code.google.com/p/sketchyphysics/wiki/SP31Oct7

Once a few people verify it works I'll turn on the auto update feature.

Update:
I have enabled the autoupdate. Hopefully it works. Some of the first few people who downloaded may have to update again as I forgot to change the version.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby phy » Fri Oct 08, 2010 5:27 pm

CPhillips wrote:Update:
I have enabled the autoupdate. Hopefully it works. Some of the first few people who downloaded may have to update again as I forgot to change the version.

The auto update worked great.
0
Have A Good Day! ;)

phy 
 

Re: SketchyPhysics3.1

Postby jblively » Fri Oct 08, 2010 11:53 pm

CPhillips wrote:I have enabled the autoupdate. Hopefully it works.


Auto update works like a charm.

I have having a bit of troubles with the auto connecting Joints and the Slider. I can get the slider to show up, but I can't get it to react to the slide when I move it. I'm using a motor joint, maybe that's the issue?

I've attached a very simple sample, can you see what I might be doing wrong?


Here is the joint code I am using:

ontouch{|t,s,p|
@jnt=connect(t,"motor",0,0,1,0.5)
ontouch{}
}
ontick{
if @jnt!=nil
@jnt.controllerValue=slider("motor",0)
end
}


Thanks,

Joe
0

jblively 
 

Re: SketchyPhysics3.1

Postby CPhillips » Sat Oct 09, 2010 2:16 am

Ah, i forgot about the motor joint. Ill fix in next version.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.1

Postby jblively » Sat Oct 09, 2010 5:21 pm

CPhillips wrote:Ah, i forgot about the motor joint. Ill fix in next version.


Thanks! Thought I was going a little crazy!
0

jblively 
 

Re: SketchyPhysics3.1

Postby reddoor » Mon Oct 11, 2010 4:54 am

Hi,

Just having a little trouble loading this new version on Sketchup 8 Macintosh 10.5.8

I get this error on startup:

Error Loading File sketchyphysics.rb
dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib, 9): no suitable image found. Did find:
/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib: unknown required load command 0x80000022

Any suggestions?

Thanks
0

reddoor 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to SketchyPhysics

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: