SketchyReplay with scenes (pages)

Moderator: CPhillips

SketchyReplay with scenes (pages)

Postby studifreund » Mon Mar 21, 2011 8:03 pm

Hello everybody,

i have got a problem. When I like to make a video of my animation with SketchyReplay, the view is allways the same. I would like to have the Scenes of SketchUp (View>animation>scenes) as the point of where I can watch my animation.

I am trying to change the sketchyreplay.rb, but I don't come along with it. Is here anyone who know how to change the script?

My idea is following:
First the animation changes from frame to frame with the command "nextFrame". At this moment the view shoult change, too. It's the second step. I think it's the class "page", which describes the view of the scenes I mentioned above. How can I add this in sketchyreplay.rb? The third steo is to save the view as a file.

My problem is step two. Who can help me?



Otherwise, does anyone of you have a PlugIn which can make pictures of the animation using the scenes? Twilight - the rendering software - is much too slow. The animation needed be rendered. Just snapshots of the animation will do.

Hope, anyone can help me.
0

studifreund 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Tue Mar 22, 2011 12:08 pm

If I understand this correctly you want the camera/view to move with the recorded animation?
So the page transition is not strictly necessary?

I did make a small modification to SketchyReplay that records the camera along with the model, and you can then go to Plugins -> SketchyReplay -> Export animation, to export frames as models or images.
I'll upload it if that is the sort of thing you are looking for.
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby studifreund » Tue Mar 22, 2011 10:09 pm

Hey Mr.K.

I think it's just the thing I was trying to talk about. ;)
But what do you mean with page transition? How did you make the transition? Did you use the camera of the scenes?

I'll be gladfull if you could send me your "sketchyreplay.rb". You can also send it by email. Therefor I would give you my adress via pm.
0

studifreund 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Wed Mar 23, 2011 6:24 am

Attached the files, but here are a couple of things to know:
- the files are from SketchyPhysics 3.2, if you don't have that version get it first
- this modification will always record the camera, so if you want to go back you need the old files
- backup your SketchyPhysics3 folder, so if things don't work you can go back

If you got all that then extract this into your Sketchup/Plugins/SketchyPhysics3/ folder.
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Wed Jun 15, 2011 8:52 pm

Good job Mr.K. But would it be possible to modify the sketchyreplay function so that it changes the camera position according to sketchup scenes. So you would be able to set some scenes and than export your recorded animation with the camera moving from scene to scene. and also to be able to specify how many sp frames it needs for each scene transition. and if you already modified sp files and you know whats what maybe you would know if its possible to make the joints less rubber-like?
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Thu Jun 16, 2011 6:13 am

Actually made a small script you can use for that too:
http://sketchup.google.com/3dwarehouse/details?mid=3b5f693f76f5df15dfda4e320b343f5c

Copy the yellow box into your models and it should do the trick.

The flexing joints are how the underlying Newton physics engine works, I don't think it can actually be fixed with scripts, so the only way to really fix this is making the objects bigger to increase the connection strength
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Thu Jun 16, 2011 1:29 pm

Mr.K. wrote:Actually made a small script you can use for that too:
http://sketchup.google.com/3dwarehouse/details?mid=3b5f693f76f5df15dfda4e320b343f5c

Copy the yellow box into your models and it should do the trick.

The flexing joints are how the underlying Newton physics engine works, I don't think it can actually be fixed with scripts, so the only way to really fix this is making the objects bigger to increase the connection strength

I've tried that yellow box before and it doesnt work with sketcghyreplay. it only moves the czmera while animation is being played. And with the joints i really don't know. but cphilips mentioned somewhere before that there is a value in that pphysics engine for joint strenght and that it isnt set to maximum. This thing is really anoying because adding weight only helps a tiny bit, the stretching remains almost the same.
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Thu Jun 16, 2011 2:21 pm

The idea is to record while SP is running the scene transition script and then using that animation for exports and such.
Edit: seems I was a bit hasty, for some reason the recording will only replay minor parts of the camera move when combined with scene transition, not sure what's going on there

I'm not familiar with the details of the physics engine settings, I might dig into that someday.
The added weight usually needs to go overboard(bigger is better), and make sure all joints are as close to the connected object as possible
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Thu Jun 16, 2011 5:21 pm

well yes. but still theres no way you can make things like double wishbone suspension because if you add weight the joints will still stretch a bit so the wheel will not stay straight upright, and the additional weight would make the matter even worse. I know you can add 64 other joints and objects to make it work but it only complicates the whole thing and still is far from perfect. And you see, the thing i do most with SP is tanks like this: http://www.youtube.com/user/shareck#p/a/u/0/9HQ_BjE8Lhk and while in this example it seems to work OK, in most cases the stretching of joints makes the tracks behave like they're made of rubber and thus to make the tank turn is a very tricky task. I figured out some walkarounds to make things work but if somebody could make them bloody joints stiffer i would be more than happy.
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Fri Jun 17, 2011 10:45 am

I know the joint flexing peril, and I wanted a stiffening feature for a long time but I just don't know how to do that.

Did figure out what's wrong with page transition + sketchy replay tho, sketchyreplay has an optimization feature where data will stop recording if no object moves, so if yo want it to record nonstop you need to add a simple block on a motor or something that will just move all the time.
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Fri Jun 17, 2011 1:37 pm

Ok. Thats grand. But still i would like to be able to use different workflow. Let me explain this. It would be ideal if i could record animation with sketchyreplay (so that i drive a car around a track for example). Than i would play the animation setting up scenes every x number of frames so that the camera follows the car. Than i would export the aanimation using sketchyreplay export function and what i would like to achieve is the animation with physics objects and moving camera.
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Sat Jun 18, 2011 7:21 am

Ah I see, well I got to tell you that would take alot of work.
Essentially you would need to rewrite the entire skechyreplay script, maybe someday I'll get into that but for now it's a bit too much for my schedule.

For now I suggest using that page transition script, or the numerous object following scripts while you record the animation.
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Sun Jun 19, 2011 1:11 am

i wasnt trying to push you. the idea of camera following objects may work well.
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby shareck » Wed Jul 13, 2011 2:00 pm

just want to share a video showing the sketchyreplay camera recording in action.
http://www.youtube.com/watch?v=bVbaSl-mqCg
in this video, first thing you see is a twilight render that uses a number of scenes to animate the camera, next is video with a camera set to follow a trolley and track the tank, and last is a camera attached to the tank.
This is all thanks to you Mr. K.
0

shareck 
 

Re: SketchyReplay with scenes (pages)

Postby Mr.K. » Thu Jul 14, 2011 11:54 am

Awesome clip mate, I'm glad my scripts were good for something :)
0

Mr.K. 
 

Re: SketchyReplay with scenes (pages)

Postby AnujSuper9 » Tue Feb 14, 2012 3:51 am

This is cool stuff! I stumbled across this thread looking for a similar thing. I made a domino setup and I was hoping that I could set the scene transitions to occur at certain times to focus on various parts of the contraption. I'm guessing I would have to set this by the number of frames.

Anyway, I tried these files, set up some scene transitions, I figured even if the timing was wrong, it would do both. Anyway, it didn't work. I'm using SP3.2, and copied the scripts into the SP folder. Is there something else I am supposed to do?
0

AnujSuper9 
 

Re: SketchyReplay with scenes (pages)

Postby Starki » Mon Jan 28, 2013 2:10 pm

Mr.K. wrote:
I did make a small modification to SketchyReplay that records the camera along with the model, and you can then go to Plugins -> SketchyReplay -> Export animation, to export frames as models or images.
I'll upload it if that is the sort of thing you are looking for.


Hey, thanks Mr.K! I downloaded yellow box, made few scenes and replaced that script, and sketchy animation with controllable camera works! I exported frames as models, because I want to render them. Now I have around 700 .skp files(11 gigs) and don't know how to import them in indigo automatically, only manually one by one. I didn't have problem with static camera sketchy animations where it creates series of .igi files which I can import into indigo all at once and let indigo render for few hours. So my question is how to do it here, how to make 700 indigo scenes out of these .skp files? or any other ideas maybe..
I am not an experienced sketchup user, so sorry if it's a dumb question :oops:
0

Starki 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to SketchyPhysics

Who is online

Users browsing this forum: No registered users and 4 guests