Glc player download12/9/2023 ![]() ![]() Copy the code above and paste it to that empty window. In Python 2.7 IDLE create a new file (via menu>File/NewFile). Copy that folder to clipboard and paste it in. > In MM the bunny should be cut in half now. In Python 2.7 IDLE run the loaded code via menu>Run/RunModule. mm-api/distrib/python/test.py with Python 2.7 and run MM loading the default bunny. Go to the folder where you saved mmApi and browse to. To use python codes you need to install Python 2.7 from here. Think of it as a remote control for a running MM window. MmApi allows to send commands to MM and to receive stuff like tool parameters from MM. id (row = 8, column = 1, padx = 2, pady = 3) VisibCheck = Checkbutton(root, text="selectV", variable=sample) id (row = 7, column = 2, padx = 2, pady = 3) SlideFps = Scale(root, from_=2, to=60, orient=HORIZONTAL, variable = fps, label = "Fps" ) id (row = 7, column = 1, padx = 2, pady = 3) ToggleDir = ttk.Button(root, text=">", command=toggle) id (row = 7, column=0, padx = 2, pady = 3) SlideTime = Scale(root, from_=1, to=60, orient=HORIZONTAL, variable = rec_time, label ="Time" ) id (row = 6, column = 2, padx = 2, pady = 3) SaveCheck = Checkbutton(root, text="save", variable=save) ![]() Help_id (row = 0, columnspan = 3, padx = 2, pady = 3)īuttonFront = ttk.Button(root, text="Front", command = front)īid (row = 2, column = 1, padx = 2, pady = 3)īuttonRear = ttk.Button(root, text="Rear", command = rear)īid (row = 4, column = 1, padx = 2, pady = 3)īuttonTop = ttk.Button(root, text="Top", command = top)īid (row = 1, column = 1, padx = 2, pady = 3)īuttonBelow = ttk.Button(root, text="Below", command = below)īid (row = 3, column = 1, padx = 2, pady = 3)īuttonRight = ttk.Button(root, text="Right", command = right)īid (row = 2, column = 2, padx = 2, pady = 3)īuttonLeft = ttk.Button(root, text="Left", command = left)īid (row = 2, column = 0, padx = 2, pady = 3)īuttonShot = ttk.Button(root, text="Screensh.", command = scrs)īid (row = 5, column = 0, padx = 2, pady = 3)īuttonHideP = ttk.Button(root, text="HidePiv", command = hideP)īid (row = 5, column = 1, padx = 2, pady = 3)īuttonOrth = ttk.Button(root, text="Persp", command = ortho)īid (row = 5, column = 2, padx = 2, pady = 3)īuttonTurn = ttk.Button(root, text="Turntable", command = turn)īid (row = 6, column = 0, padx = 2, pady = 3)īuttonStop = ttk.Button(root, text="Stop", command = stop_turn, compound = CENTER )īid (row = 6, column = 1, padx = 2, pady = 3) Help_text = Label(root,text = "Ready", font = ("Helvetica",14), wraplength = 200, compound = CENTER) ![]() 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). If there's a textured object loaded to MM the application exports the texture (image +mtl) along with the object. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |