SP3x Apr3 version.
-
SP3x is an experimental version of SketchyPhysics. At this point is is very much the same as the main version and all models made with SP3x should work fine in RC1 (and 3.0). But it exposes a few features for the hard core model creator. Specifically in the scripting area.
There will be a Win SP3.0 release soon. Mac may take a big longer because we are still having WebDialog problems. Safari blows btw.
The change from this version from the RC1 are:
Exposed onTick and onTouch fields for bodies.
Fixed camera FOV not being saved. This change will also be in 3.0.Win installer.
http://sketchyphysics2.googlecode.com/files/SetupSketchyPhysics3x-Apr2.exeMac and Win in a zip.
http://sketchyphysics2.googlecode.com/files/SP3x-Apr5-MacAndWin.zipDetails on the events and script commands in next post.
-
i downloaded it and when i open SU a box pops up with "Error Loading File sketchyphysics.rb
unknown error" -
Hmm. Wonder what I broke. Can you do this. Load sketchup. Skip the error. Open the Ruby console under the windows menu. And then type this into the bottom part.
load 'sketchyphysics.rb'
and post the error it prints.
Thanks
Chris -
Ah, I think I found the problem. I updated it. Let me know if it still errors.
-
sorry, I am out of time to write up the script commands tonight. But here is a sample that demos a few of them.
-
...So, once again, no mac yet?
-
Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
DW i resloved it in the end -
@unknownuser said:
...So, once again, no mac yet?
You always have to wait for everything on mac. My dad has one and it really annoyed me cos my pc at home wouldn't run sketchy physics and there was no sketchy physics on mac. At least i have my laptop now. not the best processor but more than enough RAM to make up for it. -
Are we allowed to post this version?
-
Oh, yes and please could you post a zip file of this? Thanks.
-
@unknownuser said:
...So, once again, no mac yet?
Sorry, I had trouble with the PC version and ran out of time. I will post it tonight.
-
@unknownuser said:
Are we allowed to post this version?
It should be ok. Just be aware some things could change.
I will outline some of the hazards in my script post. I will finish that tonight. Its too nice a day here to spend indoors.
-
Can you use your own sound files?
-
@unknownuser said:
Can you use your own sound files?
Nope! That was the problem I discovered soon after I got sound working. I cant possibly include a decent library of sounds, for one thing they are just too big.
What I am going to do instead is make it possible to embed .WAV files into the Sketchup model. That way you can put whatever sounds (or music) you want in. AND the copyright issue isn't my problem anymore.
-
How should i achieve this?
-
You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it
-
@unknownuser said:
You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it
Thats right. But I'll get the embedded sound working asap.
-
@frediivx said:
Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
DW i resloved it in the endhow, i can't get it to work
-
its: playsound("gunshot.wav");100
the;100 represents the value of the emitter's strength. -
would playsound('gunshot.wav');-(a)*500 work?
Advertisement