Automatic plug-in configuration method and device based on 3dsMax software, medium and equipment
By establishing a shared directory on the server and using the plug-in configuration script to automatically install the 3dsMax software plug-in, the problem of high large-scale cluster configuration requirements and high costs is solved, and the effects of automated configuration and cost reduction are achieved.
Patent Information
- Application Number
- CN202410715618.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, large-scale cluster 3dsMax software plug-in configuration requires a large amount of storage space and high costs, and the maintenance cost is high.
Create a shared directory on the server and automatically install and configure the 3dsMax software plug-in through the plug-in configuration script to reduce storage requirements and costs.
It realizes the automated configuration of 3dsMax plug-ins, reduces storage and maintenance costs, and improves the offline rendering efficiency of large-scale clusters.
Smart Images

Figure CN118567749A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cluster rendering computing, and in particular to a plug-in automatic configuration method based on 3dsMax software, a device, a medium and a device. Background Art
[0002] 3D Studio Max, often referred to as 3dsMax, is a 3D animation rendering and production software. In order to realize the multifunctional application of 3dsMax software, it is necessary to configure a variety of functional plug-ins for 3dsMax software. In the prior art, the plug-in configuration of 3dsMax software for large-scale clusters is usually achieved by pre-installing the plug-in on each host. However, due to the large number of 3dsMax plug-ins and plug-in versions, the required storage space will be very large, resulting in high costs, and the maintenance cost of using this method to configure the plug-in of 3dsMax software is too high. Summary of the invention
[0003] To this end, the present invention provides a method and device, medium, and equipment for automatic configuration of plug-ins based on 3dsMax software, aiming to solve the technical problems of large storage space and high cost when configuring plug-ins for 3dsMax software of large-scale clusters in the prior art.
[0004] To achieve the above objectives, the present invention adopts the following technical solutions:
[0005] According to a first aspect of the present invention, the present invention provides a plug-in automatic configuration method based on 3dsMax software, which is applied to an offline rendering cluster environment, and the method comprises:
[0006] A shared directory containing functional plug-ins is established on a server connected to a rendering host; 3dsMax software is installed on the rendering host;
[0007] Executing a plug-in configuration script command carrying the target plug-in identifier to install the target plug-in in the rendering host;
[0008] Based on the target plug-in, the rendering command is executed to complete the rendering task.
[0009] Furthermore, the shared directory containing the functional plug-in is established on the server connected to the rendering host, including:
[0010] Get at least one functional plugin;
[0011] Create a shared directory on the server connected to the rendering host;
[0012] The function plug-in of each version is stored in a corresponding folder using the plug-in name as the folder name.
[0013] Furthermore, before executing the plug-in configuration script command carrying the target plug-in identifier, the method further includes:
[0014] In response to a rendering command from a user, a desired target plug-in is determined.
[0015] Further, the executing the plug-in configuration script command carrying the target plug-in identifier includes:
[0016] Clean up all plugins in the render host;
[0017] Based on the target plug-in identifier, searching for a corresponding target plug-in from a shared directory of the server, and copying the target plug-in to a plug-in installation directory corresponding to the 3dsMax software in the rendering host;
[0018] Configure the plug-in installation environment variable to install the target plug-in in the rendering host.
[0019] Furthermore, before executing the rendering command, the method further includes:
[0020] After the target plug-in is installed on the rendering host, a plug-in configuration completion reminder is output.
[0021] According to a second aspect of the present invention, the present invention provides a plug-in automatic configuration device based on 3dsMax software, which is applied to an offline rendering cluster environment, and the device comprises:
[0022] A directory creation module, used to create a shared directory containing functional plug-ins on a server connected to a rendering host; the rendering host has 3dsMax software installed on it;
[0023] A plug-in installation module, used to execute a plug-in configuration script command carrying the target plug-in identifier to install the target plug-in in the rendering host;
[0024] The rendering execution module is used to execute rendering commands based on the target plug-in to complete the rendering task.
[0025] According to the third aspect of the present invention, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the automatic plug-in configuration method based on 3dsMax software as described in any one of the first aspect of the present invention.
[0026] According to a fourth aspect of the present invention, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the automatic plug-in configuration method based on 3dsMax software as described in any one of the first aspect of the present invention is implemented.
[0027] The present invention adopts the above technical solution and has at least the following beneficial effects:
[0028] Through the solution of the present invention, a shared directory containing functional plug-ins is established on a server connected to a rendering host; 3dsMax software is installed on the rendering host; a plug-in configuration script command carrying the target plug-in identifier is executed to install the target plug-in in the rendering host; based on the target plug-in, a rendering command is executed to complete the rendering task. Thus, by establishing a shared directory on the server, placing the corresponding plug-in according to the specified requirements; and executing the configuration plug-in script before executing the rendering command, 3dsMax automatically configures the plug-in.
[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A schematic diagram of a flow chart of a plug-in automatic configuration method based on 3dsMax software provided by an embodiment of the present invention is shown;
[0032] Figure 2 A schematic diagram of the structure of a plug-in automatic configuration device based on 3dsMax software provided by an embodiment of the present invention is shown;
[0033] Figure 3 A schematic diagram of the structure of a plug-in automatic configuration device based on 3dsMax software provided by another embodiment of the present invention is shown;
[0034] Figure 4 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0035] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0036] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0037] The embodiment of the present invention provides a method for automatically configuring a plug-in based on 3dsMax software, such as Figure 1 As shown, at least the following steps S101 to S103 may be included:
[0038] Step S101, establishing a shared directory containing functional plug-ins on a server connected to a rendering host; 3dsMax software is installed on the rendering host.
[0039] The plug-in automatic configuration method proposed in the embodiment of the present invention is applied to an offline rendering cluster environment. In order to realize cluster offline rendering, the embodiment of the present invention is provided with a shared server connected to multiple rendering hosts. The rendering host in the embodiment of the present invention is installed with 3dsMax software, so that the user can use 3dsMax software through the rendering host to perform rendering operations.
[0040] First, create a shared directory containing functional plug-ins on the server so that multiple rendering hosts can access the functional plug-in directory. Specifically, you can first obtain multiple functional plug-ins required by the 3dsMax software; create a shared directory on the server connected to the rendering host; use the plug-in name as the folder name, and store each version of the functional plug-in in the corresponding folder. In other words, the shared directory contains multiple folders, and the folder name is named after the functional plug-in contained in the folder. Since the same functional plug-in may contain multiple versions, the folder can also store multiple versions of the functional plug-in. In this way, a shared directory containing multiple functional plug-ins and their different versions is generated.
[0041] Step S102: execute a plug-in configuration script command carrying a target plug-in identifier to install the target plug-in in the rendering host.
[0042] The plug-in configuration script command in the embodiment of the present invention may be initiated based on a rendering command from a user. That is, the rendering host determines the target plug-in required for the rendering task in response to the rendering command from the user. Then, based on the target plug-in, the plug-in configuration script command carrying the target plug-in identifier is executed on the server.
[0043] Specifically, the plug-in configuration script command may be to execute the following steps: clean up all plug-ins in the rendering host; based on the target plug-in identifier, search for the corresponding target plug-in from the shared directory of the server, and copy the target plug-in to the plug-in installation directory corresponding to the 3dsMax software in the rendering host; configure the plug-in installation environment variable to install the target plug-in in the rendering host. Preferably, the target plug-in identifier may be the plug-in name.
[0044] In one example, the sample code for executing the plugin configuration script command is:
[0045] 3dsmaxcmd.exe -u "c: / script / plugin.ms" "vray3.6.0"
[0046] Among them, "plugin.ms" is the preset plug-in configuration script, and "vray3.6.0" is the target plug-in to be installed. The plug-in configuration script is used to perform: clean up all plug-ins in the rendering host, copy the corresponding plug-in from the storage to the plug-in installation directory corresponding to the machine 3dsMax, and configure the environment variables to achieve the effect of plug-in installation. After executing the above command, that is, after the target plug-in is installed on the rendering host, the output plug-in configuration completion reminder.
[0047] Step S103, executing the rendering command based on the target plug-in to complete the rendering task.
[0048] After the target plug-in is installed on the rendering host and the plug-in configuration is completed, the rendering command from the user can be executed and the target plug-in can be used to perform the corresponding rendering task. In this way, automatic plug-in configuration and rendering of large-scale clusters in an offline environment can be achieved.
[0049] The embodiment of the present invention provides a method for automatically configuring plug-ins based on 3dsMax software, including establishing a shared directory containing functional plug-ins on a server connected to a rendering host; installing 3dsMax software on the rendering host; executing a plug-in configuration script command carrying a target plug-in identifier to install the target plug-in in the rendering host; executing a rendering command based on the target plug-in to complete the rendering task. Through the present invention, a shared directory is established on the server, and corresponding plug-ins are placed according to the specified requirements; and the configuration plug-in script is executed before the rendering command is executed to realize the automatic configuration of 3dsMax plug-ins.
[0050] Further, as Figure 1 The specific implementation of the present invention provides a plug-in automatic configuration device based on 3dsMax software, which is applied to an offline rendering cluster environment, such as Figure 2 As shown, the apparatus may include: a directory establishing module 210 , a plug-in installing module 220 , and a rendering executing module 230 .
[0051] The directory establishment module 210 can be used to establish a shared directory containing functional plug-ins on a server connected to a rendering host; the rendering host has 3dsMax software installed on it;
[0052] The plug-in installation module 220 may be used to execute a plug-in configuration script command carrying a target plug-in identifier to install the target plug-in in the rendering host;
[0053] The rendering execution module 230 may be used to execute rendering commands based on the target plug-in to complete the rendering task.
[0054] Alternatively, if Figure 3 As shown, another embodiment of the present invention provides a plug-in automatic configuration device based on 3dsMax software, which also includes: a command receiving module 240 and a configuration reminder module 250.
[0055] The command receiving module 240 may be used to determine the required target plug-in in response to a rendering command from a user before executing the plug-in configuration script command carrying the target plug-in identifier.
[0056] The configuration reminder module 250 may be used to output a reminder of the completion of the plug-in configuration after the target plug-in is installed on the rendering host.
[0057] Optionally, the directory establishing module 210 may also be used to obtain at least one functional plug-in;
[0058] Create a shared directory on the server connected to the rendering host;
[0059] Use the plugin name as the folder name and save each version of the functional plugin into the corresponding folder.
[0060] Optionally, the plug-in installation module 220 may also be used to clean up all plug-ins in the rendering host;
[0061] Based on the target plug-in identifier, search for the corresponding target plug-in from the shared directory of the server, and copy the target plug-in to the plug-in installation directory corresponding to the 3dsMax software in the rendering host;
[0062] Configure the plugin installation environment variables to install the target plugin on the render host.
[0063] It should be noted that for other corresponding descriptions of the functional modules involved in the automatic configuration device for plug-ins based on 3dsMax software provided in the embodiment of the present invention, please refer to Figure 1 The corresponding description of the method shown will not be repeated here.
[0064] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the plug-in automatic configuration method based on 3dsMax software in any of the above embodiments are implemented.
[0065] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 4 As shown, the computer device may include a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit may communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the steps of the plug-in automatic configuration method based on 3dsMax software in the above embodiment.
[0066] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.
[0067] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
[0068] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.
[0069] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.
Claims
1. A plug-in automatic configuration method based on 3dsMax software, characterized in that: Applied to an offline rendering cluster environment, the method includes: A shared directory containing functional plug-ins is established on a server connected to a rendering host; 3dsMax software is installed on the rendering host; Executing a plug-in configuration script command carrying the target plug-in identifier to install the target plug-in in the rendering host; Based on the target plug-in, the rendering command is executed to complete the rendering task.
2. The method according to claim 1, characterized in that: The step of establishing a shared directory containing functional plug-ins on a server connected to the rendering host includes: Get at least one functional plugin; Create a shared directory on the server connected to the rendering host; The function plug-in of each version is stored in a corresponding folder using the plug-in name as the folder name.
3. The method according to claim 1, characterized in that Before executing the plug-in configuration script command carrying the target plug-in identifier, the method further includes: In response to a rendering command from a user, a desired target plug-in is determined.
4. The method according to claim 1, characterized in that: The executing of the plug-in configuration script command carrying the target plug-in identifier includes: Clean up all plugins in the render host; Based on the target plug-in identifier, searching for a corresponding target plug-in from a shared directory of the server, and copying the target plug-in to a plug-in installation directory corresponding to the 3dsMax software in the rendering host; Configure the plug-in installation environment variable to install the target plug-in in the rendering host.
5. The method according to any one of claims 1 to 4, characterized in that: Before executing the rendering command, the method further includes: After the target plug-in is installed on the rendering host, a plug-in configuration completion reminder is output.
6. A plug-in automatic configuration device based on 3dsMax software, characterized in that: Applied to an offline rendering cluster environment, the device comprises: A directory creation module, used to create a shared directory containing functional plug-ins on a server connected to a rendering host; the rendering host has 3dsMax software installed on it; A plug-in installation module, used to execute a plug-in configuration script command carrying the target plug-in identifier to install the target plug-in in the rendering host; The rendering execution module is used to execute rendering commands based on the target plug-in to complete the rendering task.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the plug-in automatic configuration method based on 3dsMax software according to any one of claims 1 to 5.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for automatically configuring a plug-in based on 3dsMax software as claimed in any one of claims 1 to 5 is implemented.
