CN118194825A - Data conversion method, device, storage medium and computer equipment - Google Patents
Data conversion method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN118194825A CN118194825A CN202410612767.3A CN202410612767A CN118194825A CN 118194825 A CN118194825 A CN 118194825A CN 202410612767 A CN202410612767 A CN 202410612767A CN 118194825 A CN118194825 A CN 118194825A
- Authority
- CN
- China
- Prior art keywords
- function
- data
- converted
- information
- software
- 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.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 125
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 230000006870 function Effects 0.000 claims abstract description 228
- 238000009877 rendering Methods 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 17
- 238000006467 substitution reaction Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 claims description 11
- 239000000463 material Substances 0.000 claims description 9
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a data conversion method, a data conversion device, a storage medium and computer equipment, which comprise the following steps: displaying a UI panel at the start software; the starting software comprises maya software and/or houdini software; responding to data conversion operation of a user on a UI panel, and acquiring a plurality of objective functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is the data of the file type of the maya software corresponding to the target model; constructing a flow frame according to a plurality of objective functions; converting the model data to be converted through a flow frame to obtain target model data; the target model data is data of file types of houdini software corresponding to the target model; the software runs the object model data at houdini, performs model rendering based on the object model data to display the object model displayed by the software at houdini. The application can improve the conversion efficiency of data and reduce the labor cost.
Description
Technical Field
The present application relates to the field of data conversion technologies, and in particular, to a data conversion method, apparatus, storage medium, and computer device.
Background
In recent years, various processes are presented in the aspect of film and television, and in the traditional film and television animation, the animation process based on maya is also presented, but the original maya function is difficult to meet the requirement of special effect production, and houdini is dominant in the field of special effects, so most special effect operators have transformed to houdini software to produce special effect; however, after some special effects are completed, if the data is to be output back to maya for rendering, then converted to houdini data. In the prior art, manual operation is often required for converting maya data into houdini data, so that the defects of low efficiency and high labor cost exist.
Disclosure of Invention
The application aims to provide a data conversion method, a data conversion device, a storage medium and computer equipment, which overcome the defects and shortcomings in the prior art.
A first aspect of an embodiment of the present application provides a data conversion method, including:
Displaying a UI panel at the start software; the starting software comprises maya software and/or houdini software;
Responding to data conversion operation of a user on a UI panel, and acquiring a plurality of objective functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to a target model;
constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model;
And running the target model data at houdini by the software, and performing model rendering according to the target model data to display the target model at houdini by the software.
Further, the step of obtaining a plurality of objective functions from a pre-constructed function library according to the conversion parameters and the model data to be converted corresponding to the data conversion operation includes:
Analyzing the model data to be converted to obtain a plurality of pieces of information to be converted, wherein the plurality of pieces of information to be converted comprise geometric information and/or animation information and/or material information;
Searching the function library according to the information to be converted and the conversion parameters to obtain the corresponding objective functions.
Further, the step of constructing a flow framework according to the plurality of objective functions includes:
Determining the execution sequence of the plurality of objective functions according to the information relation of the plurality of information to be converted;
And constructing the flow framework according to the plurality of objective functions and the execution sequence.
Further, the step of converting the model data to be converted through the flow frame to obtain target model data includes:
converting the model data to be converted through the flow frame to obtain converted model data and a data loading sequence;
And obtaining the target model data according to the converted model data and the data loading sequence.
Further, the step of searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions includes:
Searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object;
And generating a function customization reminder according to the marked object, and displaying the function customization reminder to remind a user to add a new function to the function library or modify the function stored in the function library.
Further, the step of generating a function customization reminder according to the mark object further includes:
If the input type is the same as the type of the marked object in the function library, determining a function of which the input value range does not comprise the object value of the marked object as a marked function, and generating a first function customization reminding according to the marked object and the corresponding marked function; the first function customization reminding is used for reminding a user to modify the marking function stored in the function library;
otherwise, generating a second function customization reminder according to the mark object; the second function customization reminder is used for reminding a user to add a new function to the function library.
Further, the step of searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions includes:
Searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object;
Acquiring a plurality of history functions, and history to-be-converted information and history conversion parameters corresponding to each history function; the history function is an objective function acquired in the past, the history information to be converted is information to be converted corresponding to the history function, and the history conversion parameter is a conversion parameter corresponding to the history function;
Constructing a topology structure chart according to the historical information to be converted and the historical conversion parameters as topology nodes;
Determining a topological node closest to the marked object as a transfer node according to the topological structure diagram, and determining a corresponding history function as a first substitution function according to the history to-be-converted information and the history conversion parameter corresponding to the transfer node;
acquiring information differences and parameter differences of the marked objects and the transit node, and searching the function library according to the information differences and the parameter differences to obtain a second substitution function;
And obtaining an objective function corresponding to the marked object according to the first substitution function and the second substitution function.
A second aspect of an embodiment of the present application provides a data conversion apparatus, including:
The panel display module is used for displaying the UI panel when the software is started; the starting software comprises maya software and/or houdini software;
The target function acquisition module is used for responding to the data conversion operation of a user on the UI panel, and acquiring a plurality of target functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to a target model;
the data conversion module is used for constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model;
And the target model data operation module is used for operating the target model data in the houdini software, and performing model rendering according to the target model data so as to display the target model in the houdini software.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the data conversion method as described above.
A fourth aspect of the embodiments of the present application provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the data conversion steps of the method as described above when executing the computer program.
Compared with the prior art, the method and the device respond to the data conversion operation of the UI panel displayed by the starting software by a user, acquire a plurality of objective functions from the pre-constructed function library according to the conversion parameters and the model data to be converted corresponding to the data conversion operation, so as to construct a flow frame, then convert the model data to be converted through the flow frame to obtain the target model data, and then run the target model data through houdini software, so that the manual operation of converting maya data into houdini data can be reduced, the conversion efficiency of the data is improved, and the labor cost is reduced.
In order that the application may be more clearly understood, specific embodiments thereof will be described below with reference to the accompanying drawings.
Drawings
Fig. 1 is a flowchart of a data conversion method according to an embodiment of the present application.
Fig. 2 is a schematic block diagram of a data conversion device according to an embodiment of the application.
1. A panel display module; 2. an objective function acquisition module; 3. a data conversion module; 4. and the target model data operation module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all 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 application, are intended to be within the scope of the embodiments of the present application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. In the description of the present application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination".
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Referring to fig. 1, a flowchart of a data conversion method according to an embodiment of the application includes:
S1: displaying a UI panel at the start software; the start-up software includes maya software and/or houdini software.
The startup software may be maya software and/or houdini software with plug-in modules, where the maya software and houdini software are respectively installed with plug-in modules, specifically, the plug-in module installed by the maya software is a maya end module, and the plug-in module installed by the houdini software is a houdini end module. The UI interface is an operation interface for starting the software plug-in module, when the starting software is maya software, the UI interface is an operation interface corresponding to a maya end module, and when the dynamic software is houdini software, the UI interface is an operation interface corresponding to a houdini end module.
The UI interface includes a plurality of function buttons, which are typically used in the UI panel to trigger or control specific operations or functions in the data conversion flow. These buttons can affect the way and the outcome of the data conversion, especially for different types of data (e.g. models, materials, lights). Functional buttons and controls in the UI panel may directly affect the process and results of the data conversion. By operating the function keys in the UI panel, the user can select to perform a specific operation, adjust parameter settings, specify a file path, and the like, thereby affecting the conversion manner and result of the data. For example, the user may select to import a model file through buttons in the UI panel, and select whether to perform geometry optimization, whether to apply a preset material, etc. during the import process, and these selections directly affect the result of importing the model. In general, the function buttons and UI panels can directly affect the manner and outcome of data conversion, particularly with respect to different types of data. By operating the function buttons and controls in the UI panel, the user can achieve flexible control and customization of the data conversion process to meet specific needs.
S2: responding to data conversion operation of a user on a UI panel, and acquiring a plurality of objective functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to the target model.
The preset function library is used for storing functions for processing maya data, such as functions for converting maya data into houdini data through geometric conversion, animation conversion, material conversion and the like, the stored functions can be expanded or customized by a user, and the preset function library can comprise a VEX function library, a Python script library, houdini DIGITAL ASSETS and the like. Wherein, maya data value refers to data supporting a file format opened by maya software, houdini data refers to data supporting a file format opened by houdini software.
Specifically, step S2 may include:
S21: and analyzing the model data to be converted to obtain a plurality of pieces of information to be converted, wherein the plurality of pieces of information to be converted comprise geometric information and/or animation information and/or material information.
The to-be-converted information is to-be-converted information of maya data, namely, the corresponding geometric information is maya geometric information, the animation information is maya animation information, and the material information is maya material information.
S22: searching the function library according to the information to be converted and the conversion parameters to obtain the corresponding objective functions.
The objective function may include, among other things, a function that converts maya geometry information to Houdini geometry information, and/or a function that converts maya animation information to Houdini animation information, and/or a function that converts maya texture information to Houdini texture information. And the conversion parameter is a function parameter for influencing the conversion result, which is selected or edited by the user through a function button on the UI panel.
S3: constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model.
Wherein, step S3 may include:
s311: and determining the execution sequence of the plurality of objective functions according to the information relation of the plurality of information to be converted.
S312: and constructing the flow framework according to the plurality of objective functions and the execution sequence.
The user can influence the execution sequence by setting information relationship, such as processing light or model materials. The flow framework may indicate the execution order of the respective objective functions according to the execution order, for example: the lamplight is only actually existing in the scene and is used for illumination, and only when rendering is carried out, the lamplight and the model loader can carry out sampling calculation on the surface; the description here uses light as the switching logic: for example, there is a light a in the maya scene, and the light a itself has many attributes (location, rotation, scaling, light intensity, color, shading, etc.), which are the result of compiling the underlying code of the maya software, then it needs to be converted to houdini (the underlying code of houdini is completely different from maya), all the attribute information of the light needs to be converted to hoduini recognizable codes through the codes of the function library of maya, then the codes are parsed out at houdini, and thus the light of maya can be converted to houdini.
S4: and running the target model data at houdini by the software, and performing model rendering according to the target model data to display the target model at houdini by the software.
The houdini software may run the target model data by opening or loading after the houdini software is started, or may select houdini software as the opening mode of the target model data, so that the houdini software runs the target model data.
In one possible embodiment, the step S3: the step of converting the model data to be converted through the flow frame to obtain target model data comprises the following steps:
s321: and converting the model data to be converted through the flow frame to obtain converted model data and a data loading sequence.
S322: and obtaining the target model data according to the converted model data and the data loading sequence.
The converted model data is houdini data, and because the converted model data may include data of a plurality of attributes, for example, light may include attribute data of position, rotation, scaling, light intensity, color, shade, and the like, when the houdini software runs the target model data, each attribute data in the target model data may be loaded according to the data loading sequence.
In one possible embodiment, the step S22: searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions, wherein the step comprises the following steps:
S2211: searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object.
If the information to be converted is associated with the conversion parameter, the function library is required to be searched according to the information to be converted and the conversion parameter, and when the functions in the function library cannot simultaneously correspond to the information to be converted and the conversion parameter, the information to be converted and the conversion parameter serve as a mark object. When the information to be converted is not associated with the conversion parameter, the function library is searched only according to the information to be converted or the conversion parameter, and when the function in the function library cannot be used for the information to be converted or the conversion parameter, the information to be converted or the conversion parameter is used as a mark object.
S2212: and generating a function customization reminder according to the marked object, and displaying the function customization reminder to remind a user to add a new function to the function library or modify the function stored in the function library.
The function customization reminding can be any reminding mode such as popup reminding, message column reminding, information reminding or mail reminding. The function customization reminder includes information about the tagged object to facilitate a user in quickly determining the tagged object to add a function or modify a function based on the tagged object.
In one possible embodiment, the step S2212: the step of generating a function customization reminder according to the tagged object further comprises:
If the input type is the same as the type of the marked object in the function library, determining a function of which the input value range does not comprise the object value of the marked object as a marked function, and generating a first function customization reminding according to the marked object and the corresponding marked function; the first function customization reminding is used for reminding a user to modify the marking function stored in the function library;
otherwise, generating a second function customization reminder according to the mark object; the second function customization reminder is used for reminding a user to add a new function to the function library.
Wherein the object value is a numerical value indicating the object. When the input type of the function is the same as the type of the mark object and the input value range does not include the object value of the mark object, the mark object is not supported in terms of the value, so that the function is determined to be the mark function, the user can be reminded of modifying the corresponding mark function according to the mark object through the first function customization, and the user can be reminded of needing to add the function through the second function customization, so that the judging time for judging that the function needs to be modified or the judging time for adding the function is saved, and the function customization efficiency is improved.
In one possible embodiment, the step S22: searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions, wherein the step comprises the following steps:
S2221: searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object.
S2222: acquiring a plurality of history functions, and history to-be-converted information and history conversion parameters corresponding to each history function; the history function is an objective function obtained in the past, the history information to be converted is information to be converted corresponding to the history function, and the history conversion parameter is a conversion parameter corresponding to the history function.
S2223: and constructing a topology structure chart according to the historical information to be converted and the historical conversion parameters as topology nodes.
The topology structure diagram can be constructed by taking the attribute of the information to be converted as an X-axis coordinate, taking the numerical value of the information to be converted as a Y-axis coordinate and converting the parameter as a Z-axis coordinate. For example, taking information to be converted of lamplight as an example, the information to be converted of lamplight can be taken as different X-axis coordinates according to the attributes of position, rotation, scaling, lamplight intensity, color, shadow and the like, the corresponding numerical value is taken as a Y-axis coordinate, the magnification factor, the reduction factor and the like in the conversion parameters are taken as Z-axis coordinates, that is, each magnification factor and each reduction factor are taken as a Z-axis coordinate, wherein the magnification factor and the reduction factor are respectively a positive value area and a negative value area of the Z-axis coordinate, and the larger the magnification factor is, the farther the Z-axis origin is.
S2224: and determining a topological node closest to the marked object as a transit node according to the topological structure diagram, and determining a corresponding history function as a first substitution function according to the history information to be converted and the history conversion parameter corresponding to the transit node.
The topological node closest to the marked object is the topological node with the shortest distance calculated according to a preset distance formula, and the preset distance formula can be as follows:
Wherein/> To mark the distance of an object from a topological node,/>The distance between the object and the topological node on the X axis is marked; /(I)The distance between the object and the topological node on the Y axis is marked; /(I)The distance between the object and the topological node on the Z axis is marked; /(I)The weight coefficient of the X axis; /(I)The weight coefficient of the Y axis; /(I)The weight coefficient of the Z axis; wherein/>、/>And/>Are all absolute values,/>. The influence of the distance between the topological nodes with the same type of information to be converted and the marked object can be improved, and the topological nodes with the same type of information to be converted can be used as the transit nodes closest to the marked object.
S2225: and acquiring information differences and parameter differences of the marked object and the transit node, and searching the function library according to the information differences and the parameter differences to obtain a second substitution function.
If the second alternative function cannot be searched from the function library, the topology node closest to the marker object next can be determined as a transit node, so that a new first alternative function, a new information difference and a new parameter difference are obtained, and then the function library is searched according to the new information difference and the new parameter difference until the second alternative function is obtained by searching.
S2226: and obtaining an objective function corresponding to the marked object according to the first substitution function and the second substitution function.
The first replacing function and the second replacing function can be used as target functions corresponding to the marking objects, for example, the first replacing function and the second replacing function can be used as target functions corresponding to the marking objects.
Compared with the prior art, the method and the device respond to the data conversion operation of the UI panel displayed by the starting software by a user, acquire a plurality of objective functions from the pre-constructed function library according to the conversion parameters and the model data to be converted corresponding to the data conversion operation, so as to construct a flow frame, then convert the model data to be converted through the flow frame to obtain the target model data, and then run the target model data through houdini software, so that the manual operation of converting maya data into houdini data can be reduced, the conversion efficiency of the data is improved, and the labor cost is reduced.
Referring to fig. 2, a second aspect of the embodiment of the present application provides a data conversion device, including:
The panel display module 1 is used for displaying the UI panel when the software is started; the starting software comprises maya software and/or houdini software;
The target function acquisition module 2 is used for responding to the data conversion operation of a user on the UI panel, and acquiring a plurality of target functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to a target model;
The data conversion module 3 is used for constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model;
And the target model data operation module 4 is used for operating the target model data in the houdini software, and performing model rendering according to the target model data so as to display the target model in the houdini software.
It should be noted that, in the data conversion device according to the second embodiment of the present application, only the division of the above functional modules is used for illustration when the data conversion method is executed, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the data conversion device provided by the second embodiment of the present application belongs to the same concept as the data conversion method of the first embodiment of the present application, which represents a detailed implementation process, and is not described herein again.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the data conversion method as described above.
A fourth aspect of the embodiments of the present application provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the steps of the data conversion method as described above when executing the computer program.
The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (10)
1. A method of data conversion, comprising:
Displaying a UI panel at the start software; the starting software comprises maya software and/or houdini software;
Responding to data conversion operation of a user on a UI panel, and acquiring a plurality of objective functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to a target model;
constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model;
And running the target model data at houdini by the software, and performing model rendering according to the target model data to display the target model at houdini by the software.
2. The data conversion method according to claim 1, wherein the step of obtaining a plurality of objective functions from a pre-constructed function library according to conversion parameters and model data to be converted corresponding to the data conversion operation includes:
Analyzing the model data to be converted to obtain a plurality of pieces of information to be converted, wherein the plurality of pieces of information to be converted comprise geometric information and/or animation information and/or material information;
Searching the function library according to the information to be converted and the conversion parameters to obtain the corresponding objective functions.
3. The data conversion method according to claim 2, wherein the step of constructing a flow frame from the plurality of objective functions includes:
Determining the execution sequence of the plurality of objective functions according to the information relation of the plurality of information to be converted;
And constructing the flow framework according to the plurality of objective functions and the execution sequence.
4. The data conversion method according to claim 3, wherein the step of converting the model data to be converted by the flow frame to obtain target model data includes:
converting the model data to be converted through the flow frame to obtain converted model data and a data loading sequence;
And obtaining the target model data according to the converted model data and the data loading sequence.
5. The data conversion method according to claim 2, wherein the step of searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions includes:
Searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object;
And generating a function customization reminder according to the marked object, and displaying the function customization reminder to remind a user to add a new function to the function library or modify the function stored in the function library.
6. The data conversion method of claim 5, wherein the step of generating a function custom reminder based on the tagged object further comprises:
If the input type is the same as the type of the marked object in the function library, determining a function of which the input value range does not comprise the object value of the marked object as a marked function, and generating a first function customization reminding according to the marked object and the corresponding marked function; the first function customization reminding is used for reminding a user to modify the marking function stored in the function library;
otherwise, generating a second function customization reminder according to the mark object; the second function customization reminder is used for reminding a user to add a new function to the function library.
7. The method of claim 5, wherein the step of searching the function library according to the plurality of information to be converted and the conversion parameters to obtain the corresponding plurality of objective functions includes:
Searching the function library according to the plurality of information to be converted and the conversion parameters, and marking the information to be converted and/or the conversion parameters which do not correspond to all the functions in the function library to obtain a marked object;
Acquiring a plurality of history functions, and history to-be-converted information and history conversion parameters corresponding to each history function; the history function is an objective function acquired in the past, the history information to be converted is information to be converted corresponding to the history function, and the history conversion parameter is a conversion parameter corresponding to the history function;
Constructing a topology structure chart according to the historical information to be converted and the historical conversion parameters as topology nodes;
Determining a topological node closest to the marked object as a transfer node according to the topological structure diagram, and determining a corresponding history function as a first substitution function according to the history to-be-converted information and the history conversion parameter corresponding to the transfer node;
acquiring information differences and parameter differences of the marked objects and the transit node, and searching the function library according to the information differences and the parameter differences to obtain a second substitution function;
And obtaining an objective function corresponding to the marked object according to the first substitution function and the second substitution function.
8. A data conversion apparatus, comprising:
The panel display module is used for displaying the UI panel when the software is started; the starting software comprises maya software and/or houdini software;
The target function acquisition module is used for responding to the data conversion operation of a user on the UI panel, and acquiring a plurality of target functions from a pre-constructed function library according to conversion parameters corresponding to the data conversion operation and model data to be converted; the model data to be converted is data of a file type of the maya software corresponding to a target model;
the data conversion module is used for constructing a flow frame according to the plurality of objective functions; converting the model data to be converted through the flow frame to obtain target model data; the target model data is data of a file type of the houdini software corresponding to the target model;
And the target model data operation module is used for operating the target model data in the houdini software, and performing model rendering according to the target model data so as to display the target model in the houdini software.
9. A computer-readable storage medium storing a computer program, characterized in that: the computer program implementing the steps of the data conversion method according to any one of claims 1 to 7 when executed by a processor.
10. A computer device, characterized by: comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the steps of the data conversion method according to any one of claims 1 to 7 when the computer program is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410612767.3A CN118194825B (en) | 2024-05-17 | 2024-05-17 | Data conversion method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410612767.3A CN118194825B (en) | 2024-05-17 | 2024-05-17 | Data conversion method, device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118194825A true CN118194825A (en) | 2024-06-14 |
CN118194825B CN118194825B (en) | 2024-07-23 |
Family
ID=91401003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410612767.3A Active CN118194825B (en) | 2024-05-17 | 2024-05-17 | Data conversion method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118194825B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130111326A1 (en) * | 2011-10-26 | 2013-05-02 | Kimber Lockhart | Enhanced multimedia content preview rendering in a cloud content management system |
US9177418B1 (en) * | 2013-03-15 | 2015-11-03 | Lockheed Martin Corporation | System and method for converting computer aided design data into a three dimensional model |
CN114612592A (en) * | 2022-05-12 | 2022-06-10 | 广州美术学院 | Foreground rendering plug-in based on Maya and rendering method thereof |
CN115564903A (en) * | 2022-12-05 | 2023-01-03 | 阿里巴巴(中国)有限公司 | Three-dimensional scene asset data processing method and device, electronic equipment and storage medium |
US20230143568A1 (en) * | 2021-11-11 | 2023-05-11 | Microsoft Technology Licensing, Llc | Intelligent table suggestion and conversion for text |
-
2024
- 2024-05-17 CN CN202410612767.3A patent/CN118194825B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130111326A1 (en) * | 2011-10-26 | 2013-05-02 | Kimber Lockhart | Enhanced multimedia content preview rendering in a cloud content management system |
US9177418B1 (en) * | 2013-03-15 | 2015-11-03 | Lockheed Martin Corporation | System and method for converting computer aided design data into a three dimensional model |
US20230143568A1 (en) * | 2021-11-11 | 2023-05-11 | Microsoft Technology Licensing, Llc | Intelligent table suggestion and conversion for text |
CN114612592A (en) * | 2022-05-12 | 2022-06-10 | 广州美术学院 | Foreground rendering plug-in based on Maya and rendering method thereof |
CN115564903A (en) * | 2022-12-05 | 2023-01-03 | 阿里巴巴(中国)有限公司 | Three-dimensional scene asset data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN118194825B (en) | 2024-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992304B (en) | Method and device for generating display interface | |
CN105511873B (en) | User interface control display method and device | |
KR101494844B1 (en) | System for Transforming Chart Using Metadata and Method thereof | |
CN110751724B (en) | City three-dimensional model building method and device, computer equipment and storage medium | |
CN102426519B (en) | Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof | |
JP2009163742A (en) | Object oriented method of structuring software step program | |
CN110704043A (en) | Special effect implementation method and device, electronic equipment and storage medium | |
CN111414166A (en) | Code generation method, device, equipment and storage medium | |
KR20180100276A (en) | Apparatuses, systems, and methods for providing a visual program for machine vision systems | |
CN110363839A (en) | Model rendering method, apparatus, computer equipment and storage medium | |
CN108287718B (en) | Special effect editing method and device based on game engine | |
CN112948039A (en) | Page display method, device, equipment and storage medium | |
CN110347458A (en) | Button control display method and device, storage medium and interactive intelligent panel | |
CN113010169A (en) | Method and apparatus for converting UI diagram into code file | |
CN118194825B (en) | Data conversion method, device, storage medium and computer equipment | |
CN110531968B (en) | Method for automatically extracting web front-end function code to generate independent template | |
CN117453713A (en) | SQL sentence generation method, device and storage medium for multi-type database | |
CN112861267A (en) | Ship MBD information reuse method, system, medium and terminal | |
CN115904377A (en) | Front-end page control method and device, electronic equipment and storage medium | |
CN115794063A (en) | Three-dimensional model processing method and device and electronic equipment | |
CN115564857A (en) | Video production method and related equipment | |
US10055811B2 (en) | System and method for generating interactive 2D projection of 3D model | |
CN112346961B (en) | Method and device for debugging client | |
CN113052983A (en) | Customizable indoor three-dimensional scene editing method, device and system and storage medium | |
US8842130B1 (en) | Automated color authoring |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |