CN116091707A - Three-dimensional model arrangement method, device, terminal and medium based on maya - Google Patents

Three-dimensional model arrangement method, device, terminal and medium based on maya Download PDF

Info

Publication number
CN116091707A
CN116091707A CN202310369332.6A CN202310369332A CN116091707A CN 116091707 A CN116091707 A CN 116091707A CN 202310369332 A CN202310369332 A CN 202310369332A CN 116091707 A CN116091707 A CN 116091707A
Authority
CN
China
Prior art keywords
dimensional model
map
modified
target
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310369332.6A
Other languages
Chinese (zh)
Inventor
崔海东
刘敏
孙铭珂
于海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongjian Technology Co ltd
Original Assignee
Tongjian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongjian Technology Co ltd filed Critical Tongjian Technology Co ltd
Priority to CN202310369332.6A priority Critical patent/CN116091707A/en
Publication of CN116091707A publication Critical patent/CN116091707A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the field of three-dimensional model processing, and particularly discloses a three-dimensional model arranging method, device, terminal and medium based on maya, wherein a plurality of three-dimensional models are imported into maya software for combined arrangement to generate a model tree group; searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified; inputting a target attribute value of the attribute to be modified; executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values. According to the method, each attribute is not required to be manually modified independently, batch modification of the attribute is realized in a command mode, the efficiency of the three-dimensional model is greatly improved, errors are not easy to occur, and a basis is provided for standardizing the delivery flow of the three-dimensional model.

Description

Three-dimensional model arrangement method, device, terminal and medium based on maya
Technical Field
The invention relates to the field of three-dimensional model processing, in particular to a maya-based three-dimensional model arrangement method, a maya-based three-dimensional model arrangement device, a maya-based three-dimensional model arrangement terminal and a maya-based three-dimensional model arrangement medium.
Background
Along with the rapid development of cities, new urban construction and new infrastructure construction also have new demands on large-scale three-dimensional modeling, and in the rapid development process of real-scene three-dimensional modeling at present, the real-world three-dimensional modeling comprises more vivid simulation of real-world human, object and motion forms in a computer environment, and various properties such as shapes, materials, names and the like of models in a three-dimensional space are researched. Along with the continuous improvement of the number and the quality of the models, the three-dimensional models, including model attributes, are more required to be processed efficiently and rapidly. And when interfacing with a developer, forming a model delivery specification helps to improve the efficiency of processing three-dimensional models.
At present, due to the continuous improvement of the quantity and quality of the three-dimensional model, when the three-dimensional model is docked with a developer to deliver the three-dimensional model, if the attributes such as the ID, the map size and the like of the model are not standard or are not processed, partial code error reporting can occur, and an operator generally processes the problems in a mode of manually modifying the attributes, so that the attributes such as the material, the name and the like of the three-dimensional model are unified and meet the requirements. However, the number of general models is large, the quality requirement is high, the monomeric modification is extremely wasteful of manpower and time, the efficiency is low, errors are easy to occur, and the requirement of efficiently and rapidly processing the three-dimensional model cannot be met. Therefore, it is necessary to solve the problem of batch processing and modification of the three-dimensional model attribute to improve the processing efficiency, thereby providing a basis for standardizing the three-dimensional model delivery flow.
Disclosure of Invention
In order to solve the problems, the invention provides a three-dimensional model arrangement method, a device, a terminal and a medium based on maya, which are used for importing a plurality of three-dimensional models into maya (three-dimensional modeling and animation software) software, realizing batch arrangement of attributes of the three-dimensional models based on the maya software, improving the processing efficiency of the three-dimensional models, being not easy to make mistakes and providing a basis for standardizing the delivery flow of the three-dimensional models.
In a first aspect, the present invention provides a maya-based three-dimensional model arrangement method, including the following steps:
importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
inputting a target attribute value of the attribute to be modified;
executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
Further, the attribute to be modified comprises a three-dimensional model ID, a map name and a material ball name;
correspondingly, the method specifically comprises the following steps:
searching a three-dimensional model ID in the model tree group according to the three-dimensional model ID characteristics and selecting the three-dimensional model ID;
inputting a target three-dimensional model ID value, wherein the target three-dimensional model ID value comprises a serial number;
executing a batch modification command, sequentially modifying the selected three-dimensional model IDs based on the sequence of all three-dimensional model IDs selected in the model tree group by taking the sequence number in the target three-dimensional model ID value as a reference, and adding 1 to the sequence number in the three-dimensional model ID value once each modification;
searching the map names in the model tree group according to the map name characteristics and selecting;
inputting a target map name, wherein the target map name comprises a serial number;
executing a batch modification command, sequentially modifying the selected map names based on the sequence of all map names selected in the model tree group by taking the sequence number in the target map name as a reference, and adding 1 to the sequence number in the map name once each modification;
searching the material ball names in the model tree group according to the material ball name characteristics and selecting;
inputting a target material ball name, wherein the target material ball name comprises a serial number;
and executing a batch modification command, sequentially modifying the selected material ball names based on the sequence numbers of all the selected material ball names in the model tree group by taking the sequence numbers in the target material ball names as references, and adding 1 to the sequence numbers in the material ball names once each modification.
Further, the method comprises the following steps:
and after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software.
Further, the attribute to be modified further comprises a map size;
correspondingly, the method specifically comprises the following steps:
searching the dimension of the map in the model tree group according to the dimension characteristic of the map and selecting;
inputting a target map size;
executing a batch modification command to modify the selected map size to a target map size;
and replacing the map file with the modified map size with the map file with the non-uniform size.
Further, the method comprises the following steps:
and carrying out automatic texture mapping on the modified mapping.
In a second aspect, the present invention provides a maya-based three-dimensional model finishing device, comprising,
model importing module: importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
the target attribute selection module: searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
the target attribute value input module: inputting a target attribute value of the attribute to be modified;
attribute modification module: executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
Further, the attribute to be modified comprises a three-dimensional model ID, a map name, a material ball name and a map size;
correspondingly, the target attribute selection module is used for searching the three-dimensional model ID in the model tree group and selecting according to the three-dimensional model ID characteristic, searching the map name in the model tree group and selecting according to the map name characteristic, searching the material ball name in the model tree group and selecting according to the material ball name characteristic, and searching the map size and selecting according to the map size characteristic;
the target attribute value input module is used for inputting a target three-dimensional model ID value, inputting a target map name, inputting a target material ball name and inputting a target map size; the object three-dimensional model ID value, the object map name and the material ball name all comprise serial numbers;
the attribute modification module is used for executing batch modification commands, taking the serial number in the ID value of the target three-dimensional model as a reference, and sequentially modifying the selected three-dimensional model ID based on the sequence of all the three-dimensional model IDs selected in the model tree group, wherein the serial number in the ID value of the three-dimensional model is added with 1 every time of modification; executing a batch modification command, sequentially modifying the selected map names based on the sequence of all map names selected in the model tree group by taking the sequence number in the target map name as a reference, and adding 1 to the sequence number in the map name once each modification; executing a batch modification command, and sequentially modifying the selected material ball names based on all the selected material ball names in the model tree group by taking the serial number in the target material ball name as a reference, wherein the serial number in the material ball name is added with 1 every time the selected material ball names are modified; and executing a batch modification command, modifying the selected map size into a target map size, and replacing the map files with the modified map sizes with the map files with non-uniform sizes.
Further, the device also comprises a device for detecting the position of the object,
and a cache cleaning module: after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software;
a texture mapping module: and carrying out automatic texture mapping on the modified mapping.
In a third aspect, a technical solution of the present invention provides a terminal, including:
a memory for storing a maya-based three-dimensional model collation program;
a processor for implementing the steps of the maya-based three-dimensional model collation method as recited in any one of the preceding claims when executing the maya-based three-dimensional model collation program.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a maya-based three-dimensional model organizing program, which when executed by a processor, implements the steps of the maya-based three-dimensional model organizing method as described in any one of the above.
Compared with the prior art, the three-dimensional model arranging method, device, terminal and storage medium based on maya provided by the invention have the following beneficial effects: after a plurality of three-dimensional models are imported into maya software, three-dimensional model attributes needing to be modified are selected, target attribute values are input according to modification requirements, and then all selected attributes are modified in batches based on the target attribute values. According to the method, each attribute is not required to be manually modified independently, batch modification of the attribute is realized in a command mode, the efficiency of the three-dimensional model is greatly improved, errors are not easy to occur, and a basis is provided for standardizing the delivery flow of the three-dimensional model.
Drawings
For a clearer description of embodiments of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description that follow are only some embodiments of the present application, and that other drawings may be obtained from these drawings by a person of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic flow chart of a three-dimensional model arranging method based on maya according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a three-dimensional model arrangement device based on maya according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Aiming at the problems that the attributes are easy to cause problems when the current three-dimensional model is delivered, manual monomer modification is needed, the efficiency is low and errors are easy to occur, the invention provides a three-dimensional model arrangement method based on maya, which can carry out batch processing on the attributes of the three-dimensional model, such as batch processing of three-dimensional model names, batch modification of sizes and names of mapping textures, batch naming of material balls and the like, realize batch processing of the attributes of the three-dimensional model, and improve the three-dimensional modeling efficiency.
Fig. 1 is a schematic flow chart of a three-dimensional model arranging method based on maya according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps.
S1, importing a plurality of three-dimensional models into maya software to be combined and tidied, and generating a model tree group.
It should be noted that the model tree group is a tool for recording the model construction process, and it will appear in maya "outline view window", contains a list of all models in the current view, and displays the information of the models in a tree-like manner. The information of the model includes ID, map, material ball, etc.
S2, searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute.
S3, inputting a target attribute value of the attribute to be modified.
S4, executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
According to the method, a plurality of three-dimensional models are firstly imported into maya software, the attribute needing to be modified is selected, then a target attribute value can be input into a dialog box, a command for modifying in batches is executed, the selected attribute is modified without artificial monomer modification, the modification efficiency is improved, the three-dimensional modeling efficiency is further improved, errors are not prone to occurrence, and a basis is provided for the standard delivery of the three-dimensional models.
In order to further understand the technical solution of the present invention, a specific embodiment is provided below for further detailed description of the present invention, in which modification of the three-dimensional model name, map name, material ball name, and map size is implemented. Firstly, importing all three-dimensional models into maya for integration treatment, then naming IDs, material balls and maps of the three-dimensional models in batches through a self-writing plug-in a script editor, then modifying the sizes of the textures of the maps in batches to ensure consistent sizes of the maps, finally, automatically mapping the modified textures, and then exporting delivery.
This embodiment specifically includes the following steps.
And SS1, importing the three-dimensional model into maya software for combination and arrangement to generate a model tree group.
The three-dimensional models are introduced into the maya software in a plurality, and the three-dimensional models are simultaneously introduced into the maya software to perform a combination and arrangement process, thereby generating a model tree group of all the three-dimensional models.
The model tree group contains a list of all three-dimensional models in the current view, and displays information of the three-dimensional models in a tree-like manner.
SS2, modify the three-dimensional model ID.
In this particular embodiment, the three-dimensional model name, i.e., the three-dimensional model ID, is first modified.
And SS201, searching the three-dimensional model ID in the model tree group according to the three-dimensional model ID characteristic and selecting.
It should be noted that this step may be implemented by a command, or may be selected manually, and when the command is implemented, the three-dimensional model ID is automatically found in the model tree group by adding the characteristic of the three-dimensional model ID to the command.
SS202 inputs a target three-dimensional model ID value, which contains a sequence number.
A target three-dimensional model ID value, i.e., the three-dimensional model ID value after the modification of the first three-dimensional model ID, is entered in the dialog. The target three-dimensional model ID value contains a sequence number, and when the three-dimensional model ID value is modified in batches, each three-dimensional model ID is modified in sequence according to the sequence number.
For example, the three-dimensional model ID naming rule is a sequence number added to the initial of the model name, such as ylhg_001, wherein ylhg_001 is input in a dialog box, a batch processing command is executed, and the model tree group is automatically ordered according to the sequence number in the name, so that later model data binding and development are facilitated.
And SS203, executing a batch modification command, and sequentially modifying the selected three-dimensional model IDs based on the sequence of all three-dimensional model IDs selected in the model tree group by taking the sequence number in the target three-dimensional model ID value as a reference, wherein the sequence number in the three-dimensional model ID value is added with 1 every time the three-dimensional model IDs are modified.
It should be noted that, the staff member inputs a target three-dimensional model ID value as the value of the three-dimensional model ID of the first one of the selected all three-dimensional model IDs in the dialog box, then adds 1 to the number of the three-dimensional model ID of the second one of the selected all three-dimensional model IDs on the basis of the target three-dimensional model ID value, adds 1 to the number of the three-dimensional model ID of the third one of the selected all three-dimensional model IDs on the basis of the second three-dimensional model ID value, and so on, and modifies the values of all the selected three-dimensional model IDs. For example, the target three-dimensional model ID value is YLHG_001, then the value of the first three-dimensional model ID is modified to YLHG_001, the value of the second three-dimensional model ID is modified to YLHG_002, and the value of the third three-dimensional model ID is modified to YLHG_003. It should be noted that, each three-dimensional model ID is displayed in a tree form in the model tree group, and each three-dimensional model ID is modified in turn according to the tree ordering.
SS3, modify the map name.
After the three-dimensional model ID is modified, the map name is modified. Specifically, the steps SS301 to SS303 are as follows.
And SS301, searching the map names in the model tree group according to the map name characteristics and selecting.
SS302, input a target map name, the target map name contains a sequence number.
And SS303, executing a batch modification command, sequentially modifying the selected map names based on the sequence of all the map names selected in the model tree group by taking the sequence number in the target map name as a reference, wherein the sequence number in each modified map name is increased by 1.
And the method is the same as the modification of the ID of the three-dimensional model, firstly, selecting the map name to be modified, then, inputting a target map name, wherein the name comprises a serial number, and sequentially modifying each selected map name by the model tree group according to the serial number in the target map name. The map naming convention may sequence the capital letter T plus the initial letter of the model name, e.g., t_ylhg_001. The first is named t_ylhg_001, the second is named t_ylhg_002, the third is named t_ylhg_003, and so on.
And SS4, modifying the names of the material balls.
And after the map name is modified, modifying the name of the material ball. Specifically, the method comprises the following steps SS401 to SS403.
And SS401 searches the model tree group for the names of the material balls according to the characteristics of the names of the material balls and selects the names of the material balls.
SS402, inputs a target ball name, which contains a sequence number.
And SS403, executing a batch modification command, and sequentially modifying the selected material ball names based on the sequence of all the selected material ball names in the model tree group by taking the sequence number in the target material ball name as a reference, wherein the sequence number in the material ball name is added with 1 each time of modification.
And the model tree group sequentially modifies the names of all the selected material balls according to the serial numbers in the target material ball names. The texture ball naming convention may be the initial addition of a capital letter M plus a model name, such as M_YLHG_001, the first texture ball being named M_YLHG_001, the second texture ball being named M_YLHG_002, the third texture ball being named M_YLHG_003, and so on.
SS5, modifying the dimension of the map.
After the various names of the three-dimensional model are modified, the dimension of the map is modified in batches, and the method specifically comprises the following steps SS 501-SS 504.
And SS501, searching the map size in the model tree group according to the map size characteristic and selecting.
SS502, input a target map size.
SS503, executing the batch modification command, modifies the selected map size to the target map size.
SS504, replacing the map file with the modified map size with the map file with the non-uniform size.
And the method comprises the steps of inputting a target map size into a dialog box after the target to be modified is selected, executing a batch modification command, modifying the selected map size into the target map size, and finally replacing the map files with non-uniform sizes. In some embodiments, the target map size may be an integer power of 2 (e.g., 512 x 512 or 1024 x 1024, etc.), thereby ensuring that the uploading of the model to the internet platform material is not problematic. It should be noted that all model maps are required to maintain a target size.
And SS6, after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software.
The history cache refers to the old three-dimensional model ID, map name, and texture ball name.
SS7, automatically mapping the modified map.
And the modified model map package is subjected to texture automatic mapping again, and the previous model material balls are replaced uniformly, so that the memory quantity of the model map is reduced.
It can be understood that the above-mentioned steps are only execution steps of an embodiment, and in fact, the user may select the sequence of attribute modification according to the need, or may select the operation of history cache cleaning after each named attribute is modified, where the execution sequence does not affect the batch modification process of the attribute.
After all the attributes to be modified are modified, integrating all the modified models, cleaning the historical cache data, and exporting fbx and other formats to upload to the Internet platform.
The embodiment of the invention provides a maya-based three-dimensional model arranging device corresponding to the method, and the embodiment of the invention further provides a maya-based three-dimensional model arranging method based on the maya-based three-dimensional model arranging method described in the embodiment.
Fig. 2 is a schematic block diagram of a three-dimensional model arrangement device based on maya according to an embodiment of the present invention, and as shown in fig. 2, the device 200 includes: a model import module 201, a target attribute selection module 202, a target attribute value input module 203, and an attribute modification module 204.
Model import module 201: and importing a plurality of three-dimensional models into maya software to be combined and tidied, so as to generate a model tree group.
The target attribute selection module 202: searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute.
Target attribute value input module 203: and inputting a target attribute value of the attribute to be modified.
Attribute modification module 204: executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
Optionally, in some embodiments, the attributes to be modified include a three-dimensional model ID, a map name, a texture ball name, and a map size.
In these embodiments, the target attribute selection module 202 is configured to search the model tree group for a three-dimensional model ID and select according to the three-dimensional model ID characteristic, search the model tree group for a map name and select according to the map name characteristic, search the model tree group for a material ball name and select according to the material ball name characteristic, and search the map size and select according to the map size characteristic.
The target attribute value input module 203 is configured to input a target three-dimensional model ID value, input a target map name, input a target material ball name, and input a target map size; the ID value of the target three-dimensional model, the name of the target map and the name of the material ball all comprise serial numbers.
The attribute modification module 204 is configured to execute a batch modification command, and based on the sequence number in the target three-dimensional model ID value as a reference, modify the selected three-dimensional model IDs in sequence based on the sequence of all three-dimensional model IDs selected in the model tree group, where each time the sequence number in the three-dimensional model ID value is modified, 1 is added; executing a batch modification command, sequentially modifying the selected map names based on the sequence of all map names selected in the model tree group by taking the sequence number in the target map name as a reference, and adding 1 to the sequence number in the map name once each modification; executing a batch modification command, and sequentially modifying the selected material ball names based on all the selected material ball names in the model tree group by taking the serial number in the target material ball name as a reference, wherein the serial number in the material ball name is added with 1 every time the selected material ball names are modified; and executing a batch modification command, modifying the selected map size into a target map size, and replacing the map files with the modified map sizes with the map files with non-uniform sizes.
Optionally, in some embodiments, the apparatus 200 further comprises a cache cleaning module 205 and a texture mapping module 206.
Cache cleaning module 205: and after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software.
Texture mapping module 206: and carrying out automatic texture mapping on the modified mapping.
The maya-based three-dimensional model arranging device of the present embodiment is used to implement the foregoing maya-based three-dimensional model arranging method, and thus the specific embodiments in the device can be seen as the example part of the foregoing maya-based three-dimensional model arranging method, so that the specific embodiments thereof may refer to the descriptions of the examples of the respective parts and will not be further described herein.
In addition, since the maya-based three-dimensional model arrangement device of the present embodiment is used to implement the foregoing maya-based three-dimensional model arrangement method, the effects thereof correspond to those of the foregoing method, and will not be described herein.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, including: a processor 310, a memory 320 and a communication unit 330. The processor 310 is configured to implement the maya-based three-dimensional model organizing procedure stored in the memory 320, and further includes the steps of:
importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
inputting a target attribute value of the attribute to be modified;
executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
According to the method, after a plurality of three-dimensional models are imported into maya software, three-dimensional model attributes needing to be modified are selected, target attribute values are input according to modification requirements, and then all selected attributes are modified in batches based on the target attribute values. According to the method, each attribute is not required to be manually modified independently, batch modification of the attribute is realized in a command mode, the efficiency of the three-dimensional model is greatly improved, errors are not easy to occur, and a basis is provided for standardizing the delivery flow of the three-dimensional model.
The terminal 300 includes a processor 310, a memory 320, and a communication unit 330. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 320 may be used to store instructions for execution by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 320, when executed by processor 310, enables terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 320, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 310 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 330 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The invention also provides a computer storage medium, which can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (random access memory, RAM) and the like.
A computer storage medium stores a maya-based three-dimensional model arrangement program that when executed by a processor performs the steps of:
importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
inputting a target attribute value of the attribute to be modified;
executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
According to the method, after the three-dimensional model is imported into maya software, three-dimensional model attributes needing to be modified are selected, target attribute values are input according to modification requirements, and then all selected attributes are modified in batches based on the target attribute values. According to the method, each attribute is not required to be manually modified independently, batch modification of the attribute is realized in a command mode, the efficiency of the three-dimensional model is greatly improved, errors are not easy to occur, and a basis is provided for standardizing the delivery flow of the three-dimensional model.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing disclosure is merely illustrative of the preferred embodiments of the invention and the invention is not limited thereto, since modifications and variations may be made by those skilled in the art without departing from the principles of the invention.

Claims (10)

1. A three-dimensional model arrangement method based on maya is characterized by comprising the following steps:
importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
inputting a target attribute value of the attribute to be modified;
executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
2. The maya-based three-dimensional model organizing method according to claim 1, wherein the attributes to be modified include three-dimensional model ID, map name, and material ball name;
correspondingly, the method specifically comprises the following steps:
searching a three-dimensional model ID in the model tree group according to the three-dimensional model ID characteristics and selecting the three-dimensional model ID;
inputting a target three-dimensional model ID value, wherein the target three-dimensional model ID value comprises a serial number;
executing a batch modification command, sequentially modifying the selected three-dimensional model IDs based on the sequence of all three-dimensional model IDs selected in the model tree group by taking the sequence number in the target three-dimensional model ID value as a reference, and adding 1 to the sequence number in the three-dimensional model ID value once each modification;
searching the map names in the model tree group according to the map name characteristics and selecting;
inputting a target map name, wherein the target map name comprises a serial number;
executing a batch modification command, sequentially modifying the selected map names based on the sequence of all map names selected in the model tree group by taking the sequence number in the target map name as a reference, and adding 1 to the sequence number in the map name once each modification;
searching the material ball names in the model tree group according to the material ball name characteristics and selecting;
inputting a target material ball name, wherein the target material ball name comprises a serial number;
and executing a batch modification command, sequentially modifying the selected material ball names based on the sequence numbers of all the selected material ball names in the model tree group by taking the sequence numbers in the target material ball names as references, and adding 1 to the sequence numbers in the material ball names once each modification.
3. The maya-based three-dimensional model organizing method according to claim 2, further comprising the steps of:
and after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software.
4. A maya-based three-dimensional model organizing method according to claim 2 or 3, wherein the properties to be modified further comprise map dimensions;
correspondingly, the method specifically comprises the following steps:
searching the dimension of the map in the model tree group according to the dimension characteristic of the map and selecting;
inputting a target map size;
executing a batch modification command to modify the selected map size to a target map size;
and replacing the map file with the modified map size with the map file with the non-uniform size.
5. The maya-based three-dimensional model organizing method according to claim 4, further comprising the steps of:
and carrying out automatic texture mapping on the modified mapping.
6. A three-dimensional model arrangement device based on maya is characterized by comprising,
model importing module: importing a plurality of three-dimensional models into maya software to be combined and arranged to generate a model tree group;
the target attribute selection module: searching the attribute to be modified in the model tree group according to the attribute characteristic to be modified and selecting the attribute to be modified;
the target attribute value input module: inputting a target attribute value of the attribute to be modified;
attribute modification module: executing the batch modification command, and modifying the attribute values of all the selected attributes to be modified based on the input target attribute values.
7. The maya-based three-dimensional model organizing device of claim 6, wherein the attributes to be modified comprise three-dimensional model ID, map name, material ball name, and map size;
correspondingly, the target attribute selection module is used for searching the three-dimensional model ID in the model tree group and selecting according to the three-dimensional model ID characteristic, searching the map name in the model tree group and selecting according to the map name characteristic, searching the material ball name in the model tree group and selecting according to the material ball name characteristic, and searching the map size and selecting according to the map size characteristic;
the target attribute value input module is used for inputting a target three-dimensional model ID value, inputting a target map name, inputting a target material ball name and inputting a target map size; the object three-dimensional model ID value, the object map name and the material ball name all comprise serial numbers;
the attribute modification module is used for executing batch modification commands, taking the serial number in the ID value of the target three-dimensional model as a reference, and sequentially modifying the selected three-dimensional model ID based on the sequence of all the three-dimensional model IDs selected in the model tree group, wherein the serial number in the ID value of the three-dimensional model is added with 1 every time of modification; executing a batch modification command, sequentially modifying the selected map names based on the sequence of all map names selected in the model tree group by taking the sequence number in the target map name as a reference, and adding 1 to the sequence number in the map name once each modification; executing a batch modification command, and sequentially modifying the selected material ball names based on all the selected material ball names in the model tree group by taking the serial number in the target material ball name as a reference, wherein the serial number in the material ball name is added with 1 every time the selected material ball names are modified; and executing a batch modification command, modifying the selected map size into a target map size, and replacing the map files with the modified map sizes with the map files with non-uniform sizes.
8. The maya-based three-dimensional model finishing device of claim 7, further comprising,
and a cache cleaning module: after the three-dimensional model ID, the map name and the material ball name are modified, cleaning a history cache in maya software;
a texture mapping module: and carrying out automatic texture mapping on the modified mapping.
9. A terminal, comprising:
a memory for storing a maya-based three-dimensional model collation program;
a processor for implementing the steps of the maya-based three-dimensional model collation method according to any one of claims 1-5 when executing the maya-based three-dimensional model collation program.
10. A computer-readable storage medium, wherein a maya-based three-dimensional model organizing program is stored on the readable storage medium, which when executed by a processor, implements the steps of the maya-based three-dimensional model organizing method according to any one of claims 1-5.
CN202310369332.6A 2023-04-10 2023-04-10 Three-dimensional model arrangement method, device, terminal and medium based on maya Pending CN116091707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310369332.6A CN116091707A (en) 2023-04-10 2023-04-10 Three-dimensional model arrangement method, device, terminal and medium based on maya

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310369332.6A CN116091707A (en) 2023-04-10 2023-04-10 Three-dimensional model arrangement method, device, terminal and medium based on maya

Publications (1)

Publication Number Publication Date
CN116091707A true CN116091707A (en) 2023-05-09

Family

ID=86187295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310369332.6A Pending CN116091707A (en) 2023-04-10 2023-04-10 Three-dimensional model arrangement method, device, terminal and medium based on maya

Country Status (1)

Country Link
CN (1) CN116091707A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600700A (en) * 2015-10-20 2017-04-26 星际空间(天津)科技发展有限公司 Three-dimensional model data processing system
CN115422621A (en) * 2022-08-19 2022-12-02 安徽巨一科技股份有限公司 Method, system, device and storage medium for modifying colors of digital-analog parts in batch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600700A (en) * 2015-10-20 2017-04-26 星际空间(天津)科技发展有限公司 Three-dimensional model data processing system
CN115422621A (en) * 2022-08-19 2022-12-02 安徽巨一科技股份有限公司 Method, system, device and storage medium for modifying colors of digital-analog parts in batch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵磊主编: "MAYA 2012入门到精通", 呼和浩特:远方出版社, pages: 163 - 394 *

Similar Documents

Publication Publication Date Title
CN102930580A (en) Data frame animation
CN111599013B (en) Method for quickly constructing three-dimensional scene of transformer substation and related device
CN111598987B (en) Skeleton processing method, device, equipment and storage medium of virtual object
CN110413510A (en) A kind of data processing method, device and equipment
CN107315729A (en) For the data processing method of chart, medium, device and computing device
CN113791765A (en) Resource arranging method, device and equipment of cloud service and storage medium
CN112465141A (en) Model compression method, model compression device, electronic device and medium
CN115600644A (en) Multitasking method and device, electronic equipment and storage medium
CN114265657A (en) Method and device for displaying page of applet
CN113470092A (en) Terrain rendering method and device, electronic equipment and storage medium
CN112669418A (en) Model rendering method and device
CN116091707A (en) Three-dimensional model arrangement method, device, terminal and medium based on maya
CN109657209A (en) Replacement method, device, equipment and the computer storage medium of content of text
CN114564925A (en) Report generation method and device, electronic equipment and readable storage medium
CN115816831A (en) Cloud-based control 3D printer power consumption reduction method, device, equipment and medium
CN115098082A (en) Production line script generation method, system, equipment and medium based on Jenkins plug-in
CN114769072A (en) High-speed injection valve control method and device, electronic equipment and storage medium
CN115170765A (en) Model processing system, method and device
CN113420883A (en) Method and device for quantum programming frame to adapt to quantum computer
CN112416488A (en) User portrait implementation method and device, computer equipment and computer readable storage medium
CN111338624A (en) Data processing method and related equipment
CN111652281A (en) Information data classification method and device and readable storage medium
CN112445711A (en) Test method for generating simulation test scene based on visual dragging of Web page
CN113704418A (en) Customer service robot system, related method, device and equipment
CN116501452B (en) Model processing method, simulation platform, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230509

RJ01 Rejection of invention patent application after publication