Method for Real-time Linking Maya to UE5 for Screen Capture
Through the real-time link between Maya and UE5, the screen shooting function of UE5 is realized, solving the problem that UE5 cannot preview rendering effects in real time, and providing real-time preview rendering effects for animation production.
Patent Information
- Application Number
- CN202211720025.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-12-30
AI Technical Summary
UE5 cannot realize the screen shooting function, resulting in the inability to preview the rendering effect in real time, and it needs to be implemented through other software.
Real-time link between Maya and UE5, send task commands through Maya, render and save screenshots by UE5, Maya synthesizes videos and adds subtitle information to complete the screen shooting function.
Real-time link between Maya and UE5 is realized, and the rendering effect can be previewed in real time in the early stage of the animation production process, and the method is simple and easy to implement.
Smart Images

Figure CN116489265B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of three-dimensional asset production, and particularly relates to a method for Maya to be linked to UE5 for screen recording in real time. Background Art
[0002] Currently, UE5 (Unreal Engine 5) does not have a screen recording function, only a screenshot function. To achieve the screen recording function, it can only be realized through other software, resulting in the inability to preview the rendering effect of UE5 in real time. Summary of the Invention
[0003] The purpose of the present invention is to solve the deficiencies existing in the above background art and provide a method for Maya to be linked to UE5 for screen recording in real time.
[0004] The technical solution adopted by the present invention is: a method for Maya to be linked to UE5 for screen recording in real time, including the following steps:
[0005] S001, Maya receives the input asset file data and executes the screen recording start command based on the received data;
[0006] S002, Maya plays the current frame and sends a task instruction to UE5;
[0007] S003, UE5 renders the current frame according to the task instruction and saves the screenshot of the current frame page after rendering. After UE5 completes the rendering of the current frame and the task of saving the screenshot after rendering, it sends a completion signal to Maya;
[0008] S004, after Maya receives the completion signal, it starts playing the next frame and repeats steps S002 - S003 until all frames are rendered and the task of saving the screenshot after rendering is completed;
[0009] S005, Maya synthesizes the saved pictures into a video and adds the corresponding subtitle information to complete the screen recording function.
[0010] Further, the asset file data includes the start frame, the end frame, and camera information.
[0011] Further, before Maya sends a task instruction to UE5, it first detects whether the UE5 plugin is successfully loaded and whether the port communication between Maya and UE5 is successfully linked. After detecting that the UE5 plugin is successfully loaded and the port communication between Maya and UE5 is successfully linked, the task instruction is sent.
[0012] Further, after Maya receives the completion signal, it calculates the next frame based on the current frame and compares the next frame with the end frame. If the next frame is greater than the end frame, it means that the rendering and screenshot saving of all frames are completed; otherwise, it means that the rendering and screenshot saving of all frames are not completed.
[0013] Furthermore, after completing the rendering of all frames and the task of saving screenshots after rendering, Maya adds corresponding subtitle information based on the camera information in the asset file data. If the camera changes, the camera focal length of each obtained frame is first added to the corresponding frame of the picture; if the camera does not change, the pictures are first synthesized into a video, and then the corresponding subtitle information is added to the synthesized video.
[0014] The beneficial effects of the present invention are:
[0015] Through the real-time link between Maya and UE5 in the present invention, Maya plays the corresponding frame and sends commands, UE5 completes the rendering and screenshot processing of the corresponding frame, and finally synthesizes the video and adds subtitle information to complete the screen capture function. The method is simple and easy to implement. Through this method, relevant production personnel can preview the rendering effect in real time at the initial stage of the animation production process. Description of the Drawings
[0016] Figure 1 It is a flowchart of the present invention. Detailed Embodiments
[0017] The following further describes the detailed embodiments of the present invention with reference to the drawings. It should be noted here that the description of these embodiments is for helping to understand the present invention, but does not constitute a limitation to the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0018] As Figure 1 shown, the present invention provides a method for Maya to be real-time linked to UE5 for screen capture, including the following steps:
[0019] S001, Maya receives the input asset file data, including data such as the start frame, end frame, camera data (currently active camera and camera animation), etc.
[0020] S002, Maya executes the screen capture command and plays the current frame, obtains data such as the camera focal length of the current frame, and sends the obtained data and task instructions to UE5. UE5 receives the task instructions, determines whether the plugin is loaded completely. If not, it loads the corresponding plugin; it also needs to detect whether the port communication between Maya and UE5 is successfully linked.
[0021] S003, The UE5 receives the task instruction, renders the corresponding frame according to the data sent by Maya, takes a screenshot of the rendered frame, saves it in the specified folder with the frame name, and after the saving is completed, sends the current completion signal to Maya.
[0022] S004, Maya receives the task instruction signal completed by the UE5, calculates the next frame based on the current frame, and compares the next frame with the end frame obtained previously. If the next frame is larger than the end frame, it means that the current asset file has completed the rendering and screenshot saving of all frames. If the opposite is true, it means that the asset has not completed the rendering and screenshot saving of all frames, then Maya needs to continue playing the next frame and send the corresponding task instruction to the UE5.
[0023] S005, After all the frame screenshots are saved, if the camera has animation, first add the relevant information of the camera to the picture, and then synthesize the pictures into a video according to the serial numbers. If the camera has no animation, first synthesize the pictures into a video, and then add the corresponding subtitle information.
[0024] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. The content not detailedly described in this specification belongs to the prior art well-known to those skilled in the art.
Claims
1. A method for real-time linking Maya to screen capture in UE5, characterized in that, It includes the following steps: S001, Maya receives the input asset file data and executes the screen capture start command based on the received data; S002, Maya plays the current frame and sends a task instruction to UE5; S003, UE5 renders the current frame according to the task instruction and saves the screenshot of the current frame page after rendering. After UE5 completes the rendering of the current frame and the task of saving the screenshot after rendering, it sends a completion signal to Maya; S004, After Maya receives the completion signal, it starts playing the next frame, and repeats steps S002 - S003 until the rendering of all frames and the task of saving the screenshots after rendering are completed; S005, Maya synthesizes the saved pictures into a video and adds the corresponding subtitle information to complete the screen capture function.
2. The method of real-time linking Maya to screen capture in UE5 according to claim 1, wherein: The asset file data includes the start frame, end frame, and camera information.
3. The method for real-time linking Maya to screen capture in UE5 according to claim 1, wherein: Before Maya sends a task instruction to UE5, it first checks whether the UE5 plugin is successfully loaded and whether the port communication between Maya and UE5 is successfully linked. After it is detected that the UE5 plugin is successfully loaded and the port communication between Maya and UE5 is successfully linked, the task instruction is sent.
4. The method of real-time linking Maya to screen capture in UE5 according to claim 1, characterized in that: After Maya receives the completion signal, it calculates the next frame based on the current frame, and compares the next frame with the end frame. If the next frame is greater than the end frame, it means that the rendering of all frames and the screenshot saving are completed; otherwise, it means that the rendering and screenshot saving of all frames are not completed.
5. The method for real-time linking Maya to screen capture in UE5 according to claim 1, wherein: After the rendering of all frames and the task of saving the screenshots after rendering are completed, Maya adds the corresponding subtitle information based on the camera information in the asset file data. If the camera changes, the camera focal length of each obtained frame is first added to the picture of the corresponding frame; If the camera does not change, the pictures are first synthesized into a video, and then the corresponding subtitle information is added to the synthesized video.
Citation Information
Patent Citations
Virtual camera shooting method and device, electronic equipment and storage medium
CN112565555A
Method and apparatus for realizing boot animation of virtual reality system
US10043302B2