Sketchy Physics and Ruby
-
Hello,
New to Ruby and SketchyPhyics. I've looked and looked...and I can access Sketchup entities and layers and such from Ruby, but what I really want to do is be able to change parameters of the joints in 'runtime' via a web dialog. For example to adjust the min/max of a joint. Does anyone know of a example or article that talks about this.
Also, is there a sketchyphysics API definition like the one that Sketchup has on google?
Thanks guys for the help!!!
Joe
-
Ruby was never meant to work directly with sp, but if yo uwant proper advice, ask either wacov or mr.k, none of which are on this forum, but on sketchup users instead, check my signature for the address
-
@ Alex, actually, Wacov is on Sketchucation.
You could ask him, he should know.
-
Sure he may be a member, but that does not mean he posts, which he doesn't
-
http://forums.sketchucation.com/memberlist.php?mode=viewprofile&u=11520 He actaully has posted...493 posts.
-
@unknownuser said:
He actaully has posted...493 posts.
That I have, but it's certainly been a while
I think it's possible, just difficult. From what I've found, you generally have to change the way SP works to achieve deep-down stuff like this, so it'll either only work on your machine, or it'll have to use LazyScript (the problem is the 'runtime' part... joints are initialized at the simulation start using their set attributes). I'll look into it a little further though, it'd be a useful feature to have
SP unfortunately doesn't have an API, and I think it'd be pretty hard to understand if it did
Advertisement