Working on new scripting system.
-
Almost all of the new stuff is outlined in this thread. Mostly it is the new scripting system which should make a lot of new stuff possible.
Beyond that there is the ability to set object density and maybe adjustments to how stiff some joints are.
-
Can we get SP3 X April 6 even if it's not done? I'm pretty sure many of us here would like to see new features. Please, CPhillips.
-
We can't pressure him too much. This is a big project. Besides, we won't be getting it soon, because he is probably still debugging and working out all the little errors. We would probably just have what we have now,and a few of the new features, but with a whole lot of problems.
-
Sigh, I guess a little pressure is warranted. Its been a while since a release. Ill work on an interim release but no promises.
-
Thank you! I'm guessing most of the features outlined in this topic will be in it.
-
I have a script problem.
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options" if results=["Motor"] then @@motor=1 end
. I can't figure it out. It might be related to Sketchyphysics. The motor that retrieves @@ motor will spin regardless of input. I can't control it!
-
@unknownuser said:
I have a script problem.
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options" > if results=["Motor"] then @@motor=1 > end >
. I can't figure it out. It might be related to Sketchyphysics. The motor that retrieves @@ motor will spin regardless of input. I can't control it!
You put 'if results=["motor"]. it should be ==, not =. When you put =, it sets @@motor to 1. if you change it to ==, it will work properly.
-
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options"
if results=="Motor" then @@motor=1;end
if results=="Thruster" then @@thruster=1;end
Still won't work. -
@unknownuser said:
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options"
if results=="Motor" then @@motor=1;end
if results=="Thruster" then @@thruster=1;end
Still won't work.then do this:
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options"
if results[0]=="Motor" then @@motor=1;end
if results[0]=="Thruster" then @@thruster=1;end -
Shoot! It's not working after all. It had worked(I thought anyway).
-
results=UI.inputbox ["Drive Options"], [""], ["Motor|Thruster"], "Drive Options" if results=="Motor" then @@motor=1;else;@@motor=0;end if results=="Thruster" then @@thruster=1;else;@@thruster=0;end
This worked fine for me.
-
Thank you, •BTM. Now I have another question for Chris Phillips. How can I stop the sim using script? I have an idea for a safety script for very laggy model sims that would make good use of it. I can set a timer to stop the sim automatically after 5 or 10 seconds if things get out of hand, or if I made a bad mistake.(like forgetting to set a message box to appear only once, not every frame.)Would be pretty useful. I might try to form it into a plugin, if I can.
-
Not yet. But I could probably add that without too much trouble.
-
Do you use python or ruby?
-
Ruby, it works through the SketchUp API
-
Shit guys we need documentation.
Like, mega documentation.
I'd be happy to contribute once I've gotten back up to date with everything here, there's just been a lot of change since I was last active.
-
Oh, Yeah, I forgot. I dont know whether this has been asked before, but when will SPIV be released? Could you (CPhillips) post a sample part of the script?
Thx -
I so badly want to use SP properly, anyone know of tutorials that start from stupid and go all the way to genius?
Easy to follow stuff, like video would be an advantage.
-
I'm with you Solo. I'd say right now I'm a Sketchyphysics dunce. Not completely illiterate, but definitely spending more time staring at the corner with a cone hat than keeping up with the class. I've gone through the Wiki and if anyone has any great tutorials to share that would certainly rock.
-
Chris, is there any deadline for the release date of SPIV? You once said that connecting joints was going to be a snap. How are you going to do that?
Advertisement