Method for quickly analyzing library files used by anima plug-in in 3dsmax scene
Patent Information
- Application Number
- CN202310406618.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2043-04-06
AI Technical Summary
该插件会自动链接本地的动画资产库文件,但是该插件没有提供资产收集的api接口或方法,因此在3ds max中也无法去获取到使用的动画任务库 ,只能获取到使用的工程文件,因此不利于资产迁移进行云端渲染
(1) 能够快速且全面地分析到3dsmax场景文件中由anima插件所制作的动画工程和对应的库文件,方便进行3d数字资产的管理。
Smart Images

Figure CN116382807B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3ds Max application technology, and in particular to a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene. Background Technology
[0002] The Anima plugin is for creating animated characters in 3ds Max scenes. While it automatically links to local animation asset libraries, it lacks an API or method for asset collection. Therefore, it cannot access the animation asset library directly in 3ds Max, only the project files, hindering asset migration for cloud rendering.
[0003] Therefore, existing technologies have shortcomings and need to be improved. Summary of the Invention
[0004] The technical problem to be solved by this invention is to provide a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene, so that users can quickly collect and migrate Anima 3D digital assets and facilitate cloud rendering.
[0005] The technical solution of the present invention is as follows: a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene is provided, which is applied to 3ds Max asset management and cloud rendering; including the following steps.
[0006] S1: Obtain a list of objects created by the Anima plugin through the standard interface provided by 3ds Max. Each object represents an Anima project. The model type of the objects created by the Anima plugin is animascene\anima2scen.
[0007] S2: Obtain the corresponding project path from the object, and use the Anima plugin's built-in project packaging method to package it, obtaining a packaged file with the .anipack extension. This packaged file contains the Anima project files and information used by the object. However, this operation cannot package the corresponding library files. Therefore, the following steps are required to obtain the library files.
[0008] S3: Using a script provided by 3ds Max, the subscene.ani file in the Anima project is parsed to obtain all nodes of the Anima project. Each node's TagName contains a set of model files and other motion definition files. These files are defined under the node's model attribute. All model names are obtained, and all model names under each node are parsed to get the path of each model. All model paths are concatenated to obtain the complete path, which is the library file. Then, the library file is written to the database. The script used is either a MaxScript script or a .NET script.
[0009] S4: For the list of objects created by the Anima plugin obtained in step S1, traverse the other objects and execute steps S2 and S3 to obtain the complete paths of all Anima projects and corresponding library files used in this scene. S5: Write the complete path of the library file obtained from each traversal to the database to achieve direct management of it, or to batch package the complete paths of these library files to achieve the purpose of rapid migration.
[0010] Furthermore, in step S3, the specific steps for parsing all model names under each node and constructing the complete path of the library file by concatenating each model name are as follows: After obtaining all model names, combine each model name with the animation library root path defined when the Anima plugin is installed to obtain the path of each model. Organizing all these paths together gives all the library files used by the Anima project.
[0011] By employing the above approach, this invention provides a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene, which has the following technical effects: (1) It can quickly and comprehensively analyze the animation projects and corresponding library files created by the Anima plugin in the 3ds Max scene file, which facilitates the management of 3D digital assets.
[0012] (2) It facilitates the migration of 3ds Max scenes and digital assets for subsequent cloud rendering.
[0013] (3) It provides an interface for managing Anima digital assets, which is an important part of the 3ds Max asset management system.
[0014] (4) The invention is more versatile because it does not rely on the functionality of the Anima plugin itself, but instead directly establishes a set of rules to parse the Anima project file to obtain the corresponding library file. Attached Figure Description
[0015] Figure 1 This is a flowchart of a method according to an embodiment of the present invention. Detailed Implementation
[0016] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0017] Please see Figure 1 This embodiment provides a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene, applicable to 3ds Max asset management and cloud rendering; it includes the following steps.
[0018] S1: Obtain a list of objects created by the Anima plugin through the standard interface provided by 3ds Max. Each object represents an Anima project. The model type of the objects created by the Anima plugin is animascene\anima2scen.
[0019] S2: Obtain the corresponding project path from the object, and use the project packaging method provided by the Anima plugin to package it, resulting in a package file with the extension .anipack. This package file contains the Anima project files and information used by the object.
[0020] S3: Using a script provided by 3ds Max, the subscene.ani file in the Anima project is parsed to obtain all nodes of the Anima project. Each node's TagName contains a set of model files and other motion definition files. These files are defined under the node's model attribute. All model names are obtained, and all model names under each node are parsed to get the path of each model. All model paths are concatenated to obtain the complete path, which is the library file. Then, the library file is written to the database. The script used is either a MaxScript script or a .NET script.
[0021] S4: For the list of objects created by the Anima plugin obtained in step S1, traverse the other objects and execute steps S2 and S3 to obtain the complete paths of all Anima projects and corresponding library files used in this scene. S5: Write the complete path of the library file obtained from each traversal to the database to achieve direct management of it, or to batch package the complete paths of these library files to achieve the purpose of rapid migration.
[0022] In this embodiment, the specific steps for parsing all model names under each node and constructing the complete path of the library file by concatenating each model name in step S3 are as follows: After obtaining all model names, combine each model name with the animation library root path defined when the Anima plugin is installed to obtain the path of each model. Organizing all these paths together gives all the library files used by the Anima project.
[0023] In summary, this invention provides a method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene, which has the following technical effects: (1) It can quickly and comprehensively analyze the animation projects and corresponding library files created by the Anima plugin in the 3ds Max scene file, which facilitates the management of 3D digital assets.
[0024] (2) It facilitates the migration of 3ds Max scenes and digital assets for subsequent cloud rendering.
[0025] (3) It provides an interface for managing Anima digital assets, which is an important part of the 3ds Max asset management system.
[0026] (4) The invention is more versatile because it does not rely on the functionality of the Anima plugin itself, but instead directly establishes a set of rules to parse the Anima project file to obtain the corresponding library file.
[0027] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene, characterized in that, Includes the following steps: S1: Obtain a list of objects created by the Anima plugin through the standard interface provided by 3ds Max. Each object represents an Anima project. S2: Obtain the corresponding project path from the object, and use the project packaging method built into the Anima plugin to package it, resulting in a package file with the extension .anipack. This package file contains the Anima project files and information used by the object. S3: Using the script provided by 3ds Max, the subscene.ani file in the Anima project is parsed to obtain all nodes of the Anima project. Each node name, TagName, contains a set of model files and other motion definition files. These files are defined under the model attribute of the node. All model names are obtained, and all model names under each node are parsed to get the path of each model. All model paths are concatenated to obtain the complete path, which is the library file. Then the library file is written to the database. S4: For the list of objects created by the Anima plugin obtained in step S1, traverse the other objects and execute steps S2 and S3 to obtain the complete paths of all Anima projects and corresponding library files used in this scene. S5: Write the complete path of the library file obtained from each traversal to the database to achieve direct management of it, or to batch package the complete paths of these library files to achieve the purpose of rapid migration; In step S3, the specific steps for parsing all model names under each node and constructing the complete path of the library file by concatenating each model name are as follows: After obtaining all model names, combine each model name with the animation library root path defined when the Anima plugin is installed to obtain the path of each model. Organizing all these paths together gives all the library files used by the Anima project. It is used for 3ds Max asset management and cloud rendering.
2. The method for quickly analyzing the library files used by the Anima plugin in a 3ds Max scene according to claim 1, characterized in that, In step S3, the script is a MaxScript script or a DotNet script.
Citation Information
Patent Citations
3D scene asset rapid analysis and migration method
CN114036128A