File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -600,7 +600,16 @@ def _(payload: dict) -> MCPResult:
600600 return MCPResult (success = True , data = {"queued_node" : node_id })
601601 else :
602602 # Render all nodes in queue
603- win .render_to_video ()
603+ import tempfile
604+ from pathlib import Path
605+ temp_dir = Path (tempfile .gettempdir ()) / "EfficientManim_Session"
606+ config = {
607+ "fps" : 30 ,
608+ "resolution" : (1280 , 720 ),
609+ "quality" : "m" ,
610+ "output_path" : str (temp_dir ),
611+ }
612+ win .render_to_video (config )
604613 return MCPResult (
605614 success = True , data = {"message" : "Render triggered." }
606615 )
Original file line number Diff line number Diff line change @@ -600,7 +600,16 @@ def _(payload: dict) -> MCPResult:
600600 return MCPResult (success = True , data = {"queued_node" : node_id })
601601 else :
602602 # Render all nodes in queue
603- win .render_to_video ()
603+ import tempfile
604+ from pathlib import Path
605+ temp_dir = Path (tempfile .gettempdir ()) / "EfficientManim_Session"
606+ config = {
607+ "fps" : 30 ,
608+ "resolution" : (1280 , 720 ),
609+ "quality" : "m" ,
610+ "output_path" : str (temp_dir ),
611+ }
612+ win .render_to_video (config )
604613 return MCPResult (
605614 success = True , data = {"message" : "Render triggered." }
606615 )
You can’t perform that action at this time.
0 commit comments