ScriptSpot

Script

Video Capture Select Viewport

By Michele71 · 2010-03-14

Version
1.1
Date updated
2010-03-14
Votes
33
Description

This is a Script that allows to recording and Grab the active viewport during the work. You can select any viewport during recording. Veersion 1.1

Based on 'Create a Quick Preview' by Borislav 'Bobo' Petrov (www.scriptspot.com/bobo).

New in release version 1.1:
Revision code (work in progress)
Revision the Interface
Add save path button image "Output Save Path Image"
Add save path button video "Output Save Path Video"
Add checkbox uniquename file image "Uniquename File Image"

Video Capture Select Viewport v.1.1

 

 

 

 

 

 

Additional Info

Copy and Paste the folder "LogoVCSV" inside in the "ui" folder in directory xxx:\\Autodesk\3ds Max 2010\ui Intall Macroscript Normally. You can find it under the category Michele71_Tools Attention! During the recording video (.avi, .mov, .tga) there need of lot space on the Harddisk !! The defoult the file Video are stored in your running project folder in the Preview folder (es. C:\\\\3dsmax\Preview) The defoult the file Image are stored in your running project folder in the Preview folder(es.C:\\\\3dsmax\sceneassets\Image) --- Hoe Use Video Capture Select Viewport v.1.1: 1) Rollout Grab Image Select Viewport In Select File Image, you can choose the type of file for the image to save With Output Save Path Image, you choose the path of the save image In New Name Image, you can rename the image N.B. If you no choose path save, all the bitmap they are saved in the folder -Image- in the your running project folder. Check Open Image After Capture for open a clipboard of the image Uniquename allow the save the file image with number unique Use Capture Image to the grab the active viewport 2) Rollout Grab Video Select Viewport In Setting Video Capture, you can choose the type of file for the video" In New Video name, you can rename the video" N.B. All the video, they are saved in the folder -Preview- in the your running project folder. The video with the same name or do not name, they will be over-written In -Frame per Second-, you determine the frame of the registered video Check Open RamPlayer after Record to open RamPlayer Here you can see the video and save him in the format that you want Press button Play/Stop record To begin/stop the recording Warning: Record in .Avi requires a lot of space on the Harddisk! In group Time Caption you see the number of the frame during the recording and the past time Press the button Reset Time to reset the timer
Attachments

Tags: script, utility, image, funny, video

Comments (19)

Michele71 · 2010-04-21

@pifitas:
@harumscarum:

Thanks guys for your suggestions and encouragement! I'll see what I can do to meet your needs! Patience is the virtue of strong men;)

@Anubis:

You are right: In 64bit max2010 some things do not work well. I am confused because I have version 32 and 64 bits. Thanks for your suggestion and sorry :)

about the .mov file type export

alidur · 2011-03-01

Hi there,

First of all thanks for the script, it's such a precise and useful tool to work with. I am trying to capture a camera view walkthrough and besides avi and tga formats, I wasn't able to save in mov file. Each time I select it and click play/stop record; there comes up a max script warning window saying : "OPEN VIDEO IN QUICTIME". I didn't know what that means, if it requires to open a new file or warns me to close one, although no video is being open at that moment. Even though it seems like recording with the button red, there is no outcome at the destination folder.

Your help is greatly appreciated

Thanks,

Michele71 · 2011-03-01

Hi Alidur and thanks for using my script :)

The message "Open Video in QuickTime" tells you to open the saved file .mov, with the player QuickTime externally to the work area of 3dsMAx ;)

You normally, record the video and LATER, open the file .mov (it is situated in your saved folder)

That's all!

Tip: Recording in .Mov, allows you to create long video with less space busy on HD ;)

mov file type export -

alidur · 2011-03-01

Hey Michele,

Thanks for the response. I'd like to summarize what happens: I got that warning at the very first moment I press play/stop recording, then I click OK and it starts to do the recording. But when I stop it, as opposed to avi and tga formats, there is no video file in my destination folder.

Could it have been saving somewhere else or not saving .mov at all ?

Thanks again,

Ali

Michele71 · 2011-03-01

Yes Ali, you're rights!

If you use 3dsMax(2010/2011)64bit there is a problem, especially 3dsMax 2011. I must fix this problem...

I have tested with Max2010-64bit and it dont work, while with 32bit yes.

Which Max you uses?

mov file type export - 2

alidur · 2011-03-01

Or is it something about the mov codec (I'm using vista 64), since it's Macos originated. I installed quicktime pro but still doesn't seem to capture any mov file ?

Michele71 · 2011-03-01

Max2011 has this problem (any file .mov don't work). I am aware of this problem on some forums...

The script has been tested with XP Professional 32bit and with Max2010 32bit it work well.

I must do more experiment and see how to fix it ;)

I am using 3dsmax 2010 - 64bit.

alidur · 2011-03-01

So it's max 2010 - 64 bit. Should I be trying 32bit to do it or you come with the solution soon ? :)
otherwise, I think I should try a screen recording or smth ? what do you suggest ?

thanks,

ali

Michele71 · 2011-03-01

I suggest you use my script for short recordings (just small steps)and Image snapshot. Try a screen rec. for big recording screen ;) (try to see this free rec sceen Camstudio )

pifitas · 2010-04-21

SUGGESTIONS

Hi again Michele

I was trying script and noticed is records (captures) what 3ds max is showing, not "saving each frame". I mean:

I have a complex scene, wich consumes a lot of memory, and is doesn't run smoothly whitin max, PLAY animation freezes, shows geometry as box and so on...

so, if I use script, it "records" a poor animation, even, I have to press PLAY under animation for start recording, and STOP script once animation finish otherwise it continues recording. Result: not smooth/fluid preview from what it records

My suggestion (question)is: Can you make script in fact CAPTURE EACH FRAME for animation, without depending on PLAYING ANIMATION? something like: savin frame 001, 002, 003, 004 etc...
otherwise script works similar to any CAPTURE WINDOW PROGRAM (camtasia).

I think posibility to save frame by frame, even if it takes a while for recording will result in a better (and real) preview from animation.

And, like I said: since it is only a preview, output format can be also JPG or whatever format (must inlude settings for save), this way we will have 300 frames in 20-30 MB instead 200-300 MB in AVI, TGA or MOV file (s).

Hope you can help us.
I don't know anything from script, and dont want to buggin you. Sorry, but your script makes me think a lot about it. It's a must-have option endeed...

Anyway, I really apreciate your job and all support for us
THANK YOU MAN!!! :) God bless you.

harumscarum · 2010-04-20

i tried 2009 and 2011.. it is possible that only 2010 works.
hope it could be fixed as well as shortcut option added.
thank you very much for efforts! )

harumscarum · 2010-04-17


not working under win7x64 and max2009-2011
i remember its previous versions - thank you very much for this script!
is it possible to add shortcut for CaptureImage button in Customize/Michele71
please )

Michele71 · 2010-04-18

Strange... I have 3dsmax2010 on Windows7 Home Premium 64bit and the script work well... The ActiveX, is the control to Windows Player!
For the ShortCut, I see the possible make it...

Anubis · 2010-04-18

Hi Michele, the ActiveX is for 32-bit versions of 3dsmax, to work on 64-bit versions of 3dsmax, you need dotNet instead. I hope this help.

Michele71 · 2010-04-19

Hi Anubis :)

Yes, but my 3dsmax2010 is 64bit vertion and work well (Win7 64bit).... I hope the fix the problem...;)

Hello!

Michele71 · 2010-04-10

Hi pifitas

The script it is a macroscript

Installation :

Normal procedure installation for MacroScript.
In Max, run macroscript "Video Capture Select Viewport1.1".
Go to Custumize > Custumize User Interface.. > Menu
Under tab Category, find "M71_Tools".
Create new menu in list "Menus" and Drag and Drop the new menu in the "Main Menu Bar". Drag and drop "Video Capture Select Viewport" in new menu.

In respect of a Vray camera does not know why I have not tried it...I do not have Vray

pifitas · 2010-04-11

Hello again

yeah I've already done that that way:

Run Script
Customize user interfase
Tab Menus - Michelle71_tools - Capture_Select_Viewport and drag it to any tool bar

Then, just click on tool but nothing happens. I tried with standar as well vray camera, also animated them...

there is any chance to make it work under max2008 x64 please? there is a must have script :)

god bless you man

Michele71 · 2010-04-11

I have sent you a message... please look ;)

pifitas · 2010-04-10

Hi

I just installed, then run srcipt, but nothing happen main window is not showed.

I'm using 3ds max 2008 x64.
Ps. does it works with vray cameras?

thank you