![]() ![]() Help_text = Label(root,text = "Ready", font = ("Helvetica",14), wraplength = 200, compound = CENTER) ![]() Help_nfigure(text="Direction : anticlockwise") Totalframes = r * f # calculate number of screenshotsĪngleframe = (float(360)/totalframes)*d # calculates angle/screenshot R = rec_time.get() # calls current values Help_nfigure(text="This action needs a Selection") If sv = 1: # prepares selectVisible sampling: ensures basic selectionĬur_groups = mm.list_selected_groups(remote) Path = os.path.expanduser("~/documents/meshmixer/turntable") If sa = 1: # prepares record mode: cleaning output directory Help_nfigure(text="Pivots visible")ĭef ortho(): #switches perspective and orthogonal Help_nfigure(text="Pivots hidden")Ĭmd2.AppendSceneCommand_SetVisible(cur_objects) Mtype = cmd2.GetSceneCommandResult_GetObjectType(t_key,obj_type)Ĭmd2.AppendSceneCommand_SetHidden(cur_objects) T_key = cmd2.AppendSceneCommand_GetObjectType(cur_objects) If nfig('text') = 'HidePiv': #hide pivots Help_nfigure(text="See: Meshmixer/screenshots")ĭef hideP(): #sorts out and hides/shows pivots Scs.AppendSceneCommand_SaveScreenShot(os.path.expanduser("~/documents/meshmixer/screenshots/shot" + time.strftime("%d:%m:%y_%H:%M:%S") + ".jpg" )) Rec_time = DoubleVar()#target length of videoĭef scrs(): #single screeshot saved to file with time stamp Root.attributes("-topmost", True) # keeps root window in frontĬmd2.CameraControl_SetSpecificView(e,t,u) Root.geometry('%dx%d+%d+%d' % (w, h, x, y)) # set root window's size and position # calculate startup x and y coordinates for Tk root: documents/meshmixer/turntable (you need to create that directory turntable manually before). Hitting Turntable ( save checked) it saves screenshots (number is a result of Time x Fps) to. This code constructs a MMView application: Using mmApi you can grab several screenshots automatically. obj if you choose the ObjFormatWithPerVertexColor option in the export dialog's format dropdown) If you run EDIT/MakeSolid on a textured object: This tool transfers texture to per vertex color (which is stored in the. Note that there are third party applications which do not support several texture images for a single object. If you edit the object in some way which creates new faces in MM: MM saves the object with several texture images (the original texture as objectName_material_0 and objectName_GeneratedMat1 for added surfaces). Subsequent conversion of PNG files to MP4: ffmpeg -sameq -i myMovie-%10d.png myMovie.If there's a textured object loaded to MM the application exports the texture (image +mtl) along with the object. Output to separate PNG files: glc-play myMovie.glc -p 1 -o myMovie-%010d.png If you figure out useful combinations, please document them here. There are presumably other ways to invoke glc-play and/or mencoder to produce other video formats. You can read about more glc options here. Or using ffmpeg: glc-play test.glc -o -y 1 | ffmpeg -i -sameq -y video.mp4 glc -y 1 -o - | mencoder -demuxer y4m -ovc lavc -lavcopts vcodec=mjpeg -o. To encode video that can be played by Apple Quicktime and edited with iMovie, use glc-play together with mencoder and specify the Motion JPEG codec: Note that you must install lame and mencoder for encoding. glc video file has multiple video streams (multiple video windows open up when you play it), you can specify the video stream number that you want to encode with the "-v NUM" option. It is not playable by Apple Quicktime Player. mp4 file is playable by various software, including mplayer and vlc (on both Linux and OS X). E.g., if you ran glc-build.sh from ~/Desktop: This script is not installed anywhere, so you'll have to find it in the glc source tree, which was laid down wherever you ran glc-build.sh. glc file to something else, like an mp4, you can use the encode.sh script that came with the glc source that was downloaded during the glc installation step. Now you can playback these files with the glc playback tool. shift-F9 will record to a different file each time: "application_name-pid-.glc" Each time you start recording, it will append to that file. GLC will by default record into a file named "application_name-pid-0.glc". Now, start the application with glc wrapping it: Info : If you want to remove glc, execute: bashrc:Įxport LD_LIBRARY_PATH="$:/usr/lib" Info : You may need to add following lines to your. You should see some messages indicating installation, e.g.: ![]() ![]() In case downloading the tarballs fails, you can try changing the script to download them from here You'll be asked a series of questions it's recommended to hit Enter at each prompt, taking the default answer. First follow the Ubuntu steps under Other distributions at ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |