[Plugin] Camera Recorder v1.7.2 UPDATED May 23, 2013
-
- Added the ability to export frames to scenes
- Script now remembers user settings from SketchUp session to session
This plugin will record your navigation movements and export them as a series of images. You can then put them together into a movie using something like Quicktime Pro.
[flash=1024,768:2c2bgonf]http://www.youtube.com/v/8d90--LV9FI&hd=1&fs=1[/flash:2c2bgonf]
It is installed in Plugins > Chris Fullmer Tools > Camera Recorder
It also installs a toolbar - sorry to everyone who has toolbar frustrations.Usage:
Start recording
Navigate around the model
Stop Recording
Erase recording if it is not what you wanted.
Export recording if you want to keep it.
Play animation if you want to see what was recorded before exporting
Draw Points - adds construction points to the model that represent the camera and target for each frame. There is no way to edit these yet.Exporting asks you to paste in a folder path, an image basename, and select either jpg or png.
I'll try to get a video put up soon that explains it better.
The export folder MUST EXIST already. This plugin will not create a folder for you, and it does not check if it exists. If it does not exist, the script will not export the images succesfully.
UPDATES v 1.5 Nov. 11, 2009
-
Fixed the lag bug that occured in the beginning of each recording
-
Added more user feedback when buttons are pressed in the wrong order
-
Added the abilty to control image output height, width and anti-aliasing
-
Added better file names so that more software will correctly order the image frames
-
Added a recording playback button, so that recordings can be played back before exporting.
-
Added a tool to place constructions points at the location of each frame, with another construction point where the camera is pointing.
-
Added some new icons, but they still need help.
UPDATES v 1.7 Nov. 19, 2009 -
Added the ability to export frames to scenes
-
Script now remembers user settings from SketchUp session to session
1.7.2 2013-23-2013
- Extension Class Compatibility
Chris
4255
-
Chris, I appreciate very much that you chose to hang around with us instead of accepting that job in the NASA.
Thank you!
UPDATE: Here's my first try with it:
-
Cool, glad it worked.
And Nasa....if only they offered me a job! That would be cool.
In the script, I think I have noticed that it lags in the very beginning, no matter how fast I start navigating after pressing the record button.
That might be a bug I'll need to look into.
Chris
-
Chris
Thanks - this tool is a great idea...
I noticed the initial 'lag' too - if you know how long it is then why not simply ignore the first NNN frames ?
I know you name the images with an integer +e.to_s and increment it... but if you added a suffix to the image name, e.g. and then use
.next
to increment the string... then the files sort by name properly...img_name=img_name+"0000" ### inside do loop... img_full_name = File.join( imgfolder, img_name+"."+img_type ) imag_name=img_name.next ### makes "image0000" into "image0001" etc etc ###...
-
Thanks Chris for sticking with Camera Recorder. This will be a ruby that I will use a lot as it will be a great way of taking am SU model to the iPhone.
Mike
-
This script is exactly what i need. Was considering 3D pdf plugin but this will work even better for what i do
thanks so much for all your hard work
-
@Everyone - Thanks! This was a fun script to write. Glad you like it so far.
@TIG - Good to know about the .next method. I have not used that before. That would make for better filenames. I know quicktime is smart enough to figure out my file names, but I don't think Photoshop is (unless CS4 finally figured it out).
So that will be a good fix. And I'll have to look into the initial lag. I'm not sure if it is always the same amount of lag.
Thanks for looking at this one,
Chris
PS - the icons are just placeholders. But I don't know when I'll have time to make decent new ones. If someone wants to make a few, feel free. Otherwise you'll all have to live with the ugly ones I put in.
-
great little tool. now at last I can put my space navigator to some real use
I especially like the fact, that the plugin only saves the camera position and orientation, but ignores layer visibility, shadow settings etc. thus one can switch off everything that slows down the model, record the camera motoin, then switch on all the fancy stuff and export the animation.
I have got two ideas to make this tool truely powerful (kwistenbiebel would love it):
-
option to export the camera motion as a path - camera path and target path, either with a vertex for every frame or as a 'smoothed' version via splines...
-
a replay button to review the camera motion, ideally with the option to take changes to the camera path into account
like that one could create an animation (e.g. with space navigator) intuitively and then refine it manually by accessing the camera path...
-
-
Great Modelhead, thanks! I'll include those in the next release.
As for exporting the path, etc. Yes, that would be cool. I can export the path easy enough. Its just creating an intuitive, useful way to edit it, and then have the plugin recognize it to update the recording. So I'll keep thinking about it.
And a replay button is in order here I think. I'll see if I can get that included in the next release also.
Thanks for the comments and encouragement folks.
Also, a big thanks to Jim for a bit of help with the folders and paths!
Chris
-
Here's some button pngs - they'll need renaming...Recorder Icons.zip
-
Metro Goldwyn Maeyer
-
Well its coming along pretty well so far. I've got the filename improvements implemented - thanks for the code TIG!
I've got it so it can replay the animation in SU. I fixed the pause at the beginning of the animation. I even made it export a series of construction points for the location and target of each frame.
But I still don't have a great way to make it so that you can alter the animation by moving the construction points. I have some ideas, but most seem like overkill so far.
Anyhow, we'll see if I come up with something that works before bedtime. Hopefully I'll have a new version posted, with a video within 6 or 7 hours.
Chris
-
Dang!!
Thanks a bunch, this is why SU still rocks.
-
wow, that sounds brilliant, Chris. can't wait for the update! (would you mind posting the date of the update in the title of this thread? that makes it easier to check).
about the path editing thing: it probably doesn't make too much sense to edit the position points one by one (if you've got 24 fps, that would mean a lot of work).
one solution might be to employ fredo's cubic bezier curve (with the necessity of installing that plugin though) and place control vertexes at a chosen interval (like once per second, setting the precision of the curve to fill in 24 edges between the control points).
that would of course result in a smoothing of the path and might lead to unwanted results, when the camera motion changed speed quickly at some point (because then the bezier curve will create weird loops).maybe there could be different options (the smoothed path output via cubic bezier curve or a true path output with every vertex unchanged (e.g. polyline)).
would definitely be interesting to see the influence of the smoothing process on the final output. might make the whole animation a bit nicer (like steady shot with physical camera). on the other hand one might lose the particular feeling of the 'handmade' animation...
I have to say I am really excited about this plugin! thank you so much Chris, for doing this
-
Yeah, all those thoughts about path smoothing are going through my head too. How to smooth it, but not too much, but a little.....etc.
Well for now I've added an option to show construction points at each frame and target. Its interesting to see for sure.
I don't know how to make the recorded path editable in a useful way...I'll keep thinking though.
Chris
-
UPDATED Nov 11, 2009
UPDATES v 1.5- Fixed the lag bug that occured in the beginning of each recording
- Added more user feedback when buttons are pressed in the wrong order
- Added the abilty to control image output height, width and anti-aliasing
- Added better file names so that more software will correctly order the image frames
- Added a recording playback button, so that recordings can be played back before exporting.
- Added a tool to place constructions points at the location of each frame, with another construction point where the camera is pointing.
- Added some new icons, but they still need help.
As promised, I got a chance to update this script tonight. The icons are silly. I added more icons to the toolbar since Modelhead and TIG provided some icons, so their packs didn't quite work entirely. So its a mish-mash of icons for now.
-
Wow. You're steaming!
(p.s. maybe update the thread title to reflect 1**.5**?)
-
@thomthom said:
Wow. You're steaming!
(p.s. maybe update the thread title to reflect 1**.5**?)
Thanks Thom, Title updated! I've had a little down time at work and free time at night, so I've been able to spend some time on this. Its been fun to write.
I also made a video right now, but it is still processing on youtube. So in the morning I'll try to get it posted to the first post in the thread. Or it might be up in an hour or so if anyone wants to see it beofre I post it:
-
hey Chris. I am afraid, the buttons of the toolbar end up blank.
the zip file, you posted contains a ruby file called 'clf_center_on_origin.rb' and a folder with the Camera Recorder files.
within this folder there is the camera recorder ruby, several images and an empty folder called 'images'.
but no matter, where I placed the images (within the images folder. or the images folder directly in the plugins folder) it doesn't seem to be working -
Brilliant. Thanks! You know I've been ranting about the lack of animation tools in SU. What a great start.
Create curves looks very interesting. A lot of potential there.
Could you add a w,a,s,d key flying/walking camera tool since the walk tool is so bad?
Also adjustable playing speed to watch it in slowmotion for finding problems or quirks.
Another way of getting precise camera movement would be to be able to position the camera for "key" frames and then have the script to add the inbetweens based on a given speed (meter/second). As I said LOTS of possibilities there...
Advertisement