Animation file output method and device

文档序号:9427 发布日期:2021-09-17 浏览:76次 中文

1. An output method of an animation file, the output method comprising:

receiving animation file arrangement indicating information, wherein the animation file arrangement indicating information is used for indicating that an initial animation file corresponding to a target skeleton in initial animation files stored in an initial folder is arranged, and the animation file arrangement indicating information carries a skeleton identification and target skeleton data of the target skeleton;

determining an initial animation file corresponding to the target skeleton according to the skeleton identification, and dividing the initial animation file corresponding to the target skeleton into one or more first selected sets according to the skeleton architecture of the target skeleton;

performing bone data processing on the initial animation file stored in each of the one or more first collections according to the target bone data to obtain one or more second collections for storing the target animation files;

outputting the one or more second selections into a target folder.

2. The method of claim 1, wherein partitioning the initial animation file corresponding to the target bone into one or more first collections according to the bone architecture of the target bone comprises:

establishing one or more third collections in the initial folder according to the bone architecture of the target bone;

dividing the initial animation file corresponding to the target skeleton into one or more third selection sets to obtain one or more fourth selection sets;

and modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

3. The method of claim 1, wherein the processing the initial animation file stored in each of the one or more first selections as a function of the target bone data comprises:

disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first collection from the previous skeleton according to the target skeleton data;

and carrying out zero-returning processing on the bone data of the initial animation file stored in each first selection set according to the target bone data.

4. The method of claim 3, wherein zeroing the skeletal data for the initial animation file stored for each first selection in accordance with the target skeletal data comprises:

acquiring bone displacement data and/or bone rotation data from target bone data carried by the animation file sorting indication information;

under the condition of acquiring the bone displacement data, performing bone displacement on the initial animation file stored in each first collection according to the bone displacement data;

and under the condition that the bone rotation data is obtained, performing bone rotation on the initial animation file stored in each first selection set according to the bone rotation data.

5. The method of claim 1, wherein after outputting the one or more second selections into a target folder, the method further comprises:

calling a file export plug-in to export the target animation file stored in the target folder into an action file in a first file format;

and converting the action file in the first file format into an action file in a second file format.

6. An output device of an animation file, comprising:

the receiving module is used for receiving animation file arrangement indicating information, wherein the animation file arrangement indicating information is used for indicating that an initial animation file corresponding to a target skeleton in initial animation files stored in an initial folder is arranged, and the animation file arrangement indicating information carries a skeleton identification and target skeleton data of the target skeleton;

the division module is used for determining an initial animation file corresponding to the target skeleton according to the skeleton identification and dividing the initial animation file corresponding to the target skeleton into one or more first selection sets according to the skeleton architecture of the target skeleton;

the processing module is used for carrying out bone data processing on the initial animation file stored in each of the one or more first collections according to the target bone data to obtain one or more second collections for storing the target animation file;

an output module to output the one or more second selections to a target folder.

7. The apparatus of claim 6, wherein the partitioning module comprises:

the establishing unit is used for establishing one or more third collections in the initial folder according to the bone architecture of the target bone;

the dividing unit is used for dividing the initial animation file corresponding to the target skeleton into one or more third selection sets to obtain one or more fourth selection sets;

and the modifying unit is used for modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

8. The apparatus of claim 6, wherein the processing module comprises:

the disconnection unit is used for disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first selection set from the previous-level skeleton according to the target skeleton data;

and the processing unit is used for carrying out zero setting processing on the bone data of the initial animation file stored in each first selection set according to the target bone data.

9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 6.

10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 6 by means of the computer program.

Background

In the current game animation production technology, after the production of an action module is finished, animation resources in a specific format need to be exported, and then the animation resources can be imported into an engine for use, and when large-area alternative role action resources are met (for example, a game hero may have 400+ actions). In the original export mode, files need to be opened one by one in max, the original point of an object needing to be exported is restored, and then bones needing to be exported are selected one by one to export resources, so that a large amount of file arrangement work needs to be manually carried out before the animation file is exported, and the efficiency is extremely low.

In view of the above problems, no effective solution has been proposed.

Disclosure of Invention

The application provides an output method and device of an animation file, which at least solve the technical problem that the output efficiency of the animation file is low in the related technology.

According to an aspect of an embodiment of the present application, there is provided an output method of an animation file, the output method including:

receiving animation file arrangement indicating information, wherein the animation file arrangement indicating information is used for indicating that an initial animation file corresponding to a target skeleton in initial animation files stored in an initial folder is arranged, and the animation file arrangement indicating information carries a skeleton identification and target skeleton data of the target skeleton;

determining an initial animation file corresponding to the target skeleton according to the skeleton identification, and dividing the initial animation file corresponding to the target skeleton into one or more first selected sets according to the skeleton architecture of the target skeleton;

performing bone data processing on the initial animation file stored in each of the one or more first collections according to the target bone data to obtain one or more second collections for storing the target animation files;

outputting the one or more second selections into a target folder.

Optionally, dividing the initial animation file corresponding to the target bone into one or more first collections according to the bone architecture of the target bone includes:

establishing one or more third collections in the initial folder according to the bone architecture of the target bone;

dividing the initial animation file corresponding to the target skeleton into one or more third selection sets to obtain one or more fourth selection sets;

and modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

Optionally, the processing the initial animation file stored in each of the one or more first selections according to the target bone data includes:

disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first collection from the previous skeleton according to the target skeleton data;

and carrying out zero-returning processing on the bone data of the initial animation file stored in each first selection set according to the target bone data.

Optionally, the zeroing the bone data of the initial animation file stored in each first selection set according to the target bone data comprises:

acquiring bone displacement data and/or bone rotation data from target bone data carried by the animation file sorting indication information;

under the condition of acquiring the bone displacement data, performing bone displacement on the initial animation file stored in each first collection according to the bone displacement data;

and under the condition that the bone rotation data is obtained, performing bone rotation on the initial animation file stored in each first selection set according to the bone rotation data.

Optionally, after outputting the one or more second selections into the target folder, the method further comprises:

calling a file export plug-in to export the target animation file stored in the target folder into an action file in a first file format;

and converting the action file in the first file format into an action file in a second file format.

According to another aspect of the embodiments of the present application, there is also provided an output device of an animation file, which is applied to an animation filing application, the output device including:

the receiving module is used for receiving animation file arrangement indicating information, wherein the animation file arrangement indicating information is used for indicating that an initial animation file corresponding to a target skeleton in initial animation files stored in an initial folder is arranged, and the animation file arrangement indicating information carries a skeleton identification and target skeleton data of the target skeleton;

the division module is used for determining an initial animation file corresponding to the target skeleton according to the skeleton identification and dividing the initial animation file corresponding to the target skeleton into one or more first selection sets according to the skeleton architecture of the target skeleton;

the processing module is used for carrying out bone data processing on the initial animation file stored in each of the one or more first collections according to the target bone data to obtain one or more second collections for storing the target animation file;

an output module to output the one or more second selections to a target folder.

Optionally, the dividing module includes:

the establishing unit is used for establishing one or more third collections in the initial folder according to the bone architecture of the target bone;

the dividing unit is used for dividing the initial animation file corresponding to the target skeleton into one or more third selection sets to obtain one or more fourth selection sets;

and the modifying unit is used for modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

Optionally, the processing module includes:

the disconnection unit is used for disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first selection set from the previous-level skeleton according to the target skeleton data;

and the processing unit is used for carrying out zero setting processing on the bone data of the initial animation file stored in each first selection set according to the target bone data.

Optionally, the processing unit is configured to:

acquiring bone displacement data and/or bone rotation data from target bone data carried by the animation file sorting indication information;

under the condition of acquiring the bone displacement data, performing bone displacement on the initial animation file stored in each first collection according to the bone displacement data;

and under the condition that the bone rotation data is obtained, performing bone rotation on the initial animation file stored in each first selection set according to the bone rotation data.

Optionally, the apparatus further comprises:

a calling module, configured to, after outputting the one or more second collections into a target folder, call a file export plug-in to export the target animation file stored in the target folder into an action file in a first file format;

and the conversion module is used for converting the action file in the first file format into an action file in a second file format.

According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.

According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.

In the embodiment of the application, the method comprises the steps of receiving animation file sorting indication information, wherein the animation file sorting indication information is used for indicating that initial animation files corresponding to target bones in initial animation files stored in an initial folder are sorted; responding to the animation file sorting indication information, and dividing the initial animation files corresponding to the target bones in the initial animation files into one or more first selection sets according to the bone architecture of the target bones; performing bone data processing on the initial animation file stored in each of the one or more first collections to obtain one or more second collections storing target animation files; and one or more second collections are output to the target folder, and the initial animation file of the target skeleton is automatically divided into collections, skeleton data processing and other operations according to the content indicated in the animation file sorting indication information through the animation file sorting application, so that the sorted animation file is automatically output to the target folder, the purpose of batch sorting and outputting of the animation file is achieved, the technical effect of improving the output efficiency of the animation file is achieved, and the technical problem of low output efficiency of the animation file is solved.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

FIG. 1 is a schematic diagram of a hardware environment for an output method of an animation file according to an embodiment of the present application;

FIG. 2 is a flow chart of an alternative method of outputting an animation file according to an embodiment of the present application;

FIG. 3 is a schematic illustration of an application interface of an animation documentation application according to an embodiment of the present application;

FIG. 4 is a first schematic diagram of inputting information on an application interface according to an embodiment of the present application;

FIG. 5 is a second schematic diagram of inputting information on an application interface according to an embodiment of the present application;

FIG. 6 is a schematic diagram of an option partitioning according to an embodiment of the present application;

FIG. 7 is a schematic diagram of an alternative way of renaming selections in accordance with an embodiment of the present application;

FIG. 8 is a schematic illustration of a process of disconnecting bone according to an embodiment of the present application;

FIG. 9 is a schematic diagram of setting rotational parameters of bone data according to an embodiment of the present application;

FIG. 10 is a schematic illustration of an interface of a document export plug-in according to an embodiment of the present application;

FIG. 11 is a schematic diagram of an interface of a format conversion plug-in according to an embodiment of the present application;

FIG. 12 is a schematic diagram of an alternative animation file output device according to an embodiment of the application;

fig. 13 is a block diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

According to an aspect of an embodiment of the present application, an embodiment of a method for outputting an animation file is provided, which is applied to an animation filer application.

Alternatively, in the present embodiment, the above-described method for outputting an animation file may be applied to a hardware environment constituted by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services (such as game services, application services, etc.) for the terminal or a client installed on the terminal, and a database may be provided on the server or separately from the server for providing data storage services for the server 103, and the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for outputting the animation file according to the embodiment of the present application may be executed by the server 103, the terminal 101, or both the server 103 and the terminal 101. The terminal 101 may execute the method for outputting the animation file according to the embodiment of the present application by a client installed thereon.

Fig. 2 is a flowchart of an alternative method for outputting an animation file according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:

step S202, animation file arrangement indicating information is received, wherein the animation file arrangement indicating information is used for indicating that initial animation files corresponding to target bones in initial animation files stored in an initial folder are arranged;

step S204, responding to the animation file arrangement indication information, and dividing the initial animation files corresponding to the target bones in the initial animation files into one or more first selected sets according to the bone architecture of the target bones;

step S206, carrying out bone data processing on the initial animation file stored in each of the one or more first collections to obtain one or more second collections for storing target animation files;

step S208, outputting the one or more second selections to a target folder.

Through the steps S202 to S208, the initial animation file of the target skeleton is automatically divided, selected, processed by skeleton data, and the like according to the content indicated in the animation file sorting instruction information by the animation file sorting application, so that the sorted animation file is automatically output to the target folder, and the purpose of batch sorting output of the animation file is achieved, thereby achieving the technical effect of improving the output efficiency of the animation file, and further solving the technical problem of low output efficiency of the animation file.

Optionally, in this embodiment, the above-mentioned output method of the animation file may be applied, but not limited to, an animation filing application, which may be, but not limited to, deployed as a plug-in, an applet, an application program, and the like. Such as: the animation file sorting function can be packaged into plug-ins to be deployed in an application for making animation, and the plug-ins with the animation file sorting function can be called to sort the animation files in batches after the animation is made, so that the animation files can be exported subsequently.

In the technical solution provided in step S202, the initial folder stores a large number of created initial animation files, the initial animation files may be, but are not limited to, animation files of a plurality of bones of the virtual model, and the animation file arrangement instruction information may specify bones that need to be arranged, that is, specify that the initial animation files corresponding to the target bones are arranged.

Optionally, in this embodiment, the virtual model may be divided into a plurality of bones, such as: the virtual character model may be, but is not limited to, to include: body skeleton (body), head skeleton (head), hair skeleton (hair), face skeleton (face), eye skeleton (eye), and the like.

In the above step S202, the animation filing instruction information may be received, but not limited to, by:

s11, receiving a call request, wherein the call request is used for requesting to call the animation file tidying application;

s12, displaying an application interface in response to the call request, wherein the application interface is used to input animation filer information, and the animation filer information includes: the storage path of the folder, the skeleton identification of the skeleton, the selection name and the skeleton data;

and S13, under the condition that target operation executed on the application interface is detected, determining that the animation file arrangement indicating information is received, wherein the animation file arrangement indicating information carries a storage path of the initial folder, a bone identifier of the target bone, a selection name corresponding to the target bone and target bone data.

Optionally, in this embodiment, the animation filing application may be, but is not limited to, invoked by an invocation request, and the invoked process may also be understood as a starting process of the animation filing application, such as: double-clicking the icon of the animation documentation application may confirm that a call request is received.

Optionally, in this embodiment, the animation filing application may, but is not limited to, instruct the user to input information required when the animation filing application runs by providing an application interface for inputting animation filing information such as a storage path of a folder, a bone identification of a bone, a collection name, and bone data. Such as: fig. 3 is a schematic diagram of an application interface of an animation filing application according to an embodiment of the present application, and as shown in fig. 3, a user may input animation filing information such as a storage path of a folder (a storage path of an initial folder), a bone identifier of a bone (information for dividing a selection), a selection name (information for renaming the selection), and bone data (information for performing a zeroing process on disconnected information and bone data) on the application interface as needed. The folder name in which the exported file is saved may be set by default or may be input by the user.

Optionally, in this embodiment, the input content of the storage path of the folder on the application interface may be, but is not limited to, input of the storage path of the initial folder, that is, the initial animation file that needs to be reorganized may be stored in the initial folder and then provided to the animation file reorganization application for processing. Such as: FIG. 4 is a schematic diagram of information input on an application interface according to an embodiment of the present application, where as shown in FIG. 4, a path of a max folder (i.e., an initial folder) that needs to export an animation resource may be created as E: \ ceshi \ 2. The folder name in which the exported file is saved (i.e., the folder name of the target folder) may be the default NewMax. And if the HairsFolder option is selected, the output files can be stored according to the number of the hair in different folders.

Optionally, in this embodiment, the input content of the bone identifier of the bone on the application interface may be, but is not limited to, input the bone identifier of the target bone, the bone identifier of the target bone may be a name of a total bone to be identified, the name of the total bone may be a default name, or the name may be replaced according to different project requirements. Such as: fig. 5 is a schematic diagram of information input on an application interface according to an embodiment of the present application, and as shown in fig. 5, if an animation filing application is required to finish an initial animation file of a hair skeleton, a skeleton identifier b _ hair _ trunk of the hair skeleton may be input in the input content of the skeleton identifier of the skeleton. The skeleton identification is used for identifying which skeleton level other objects need to be put into the same name selection. Fig. 6 is a schematic diagram of a selection partition according to an embodiment of the present application, and as shown in fig. 6, the animation filing application may put objects under its hierarchy into a selection of the same name according to a skeleton identifier b _ hair _ trunk input on an application interface, for example: other objects at the b _ hair _ trunk level include b _ hair _01, b _ hair _02, … …, b _ hair _28, all of which are placed in the same collection of names.

As an alternative embodiment, receiving the invocation request includes:

s21, opening an initial animation file in the initial folder;

s22, detecting the starting operation of the animation file tidying application on the display interface of the initial animation file;

s23, determining that the call request is received when the start operation is detected.

Optionally, in this embodiment, the start button of the animation filing application may be, but is not limited to, deployed in an application that manufactures the initial animation file, opening one initial animation file in the initial folder may start the application that manufactures the initial animation file, and a start operation may be performed on the animation filing application on a presentation interface displayed in the application that manufactures the initial animation file.

In the technical solution provided in step S204, the bone architecture of the target bone may be determined by the bone connection relationship of the model, such as: how the individual hairs in the hair skeleton are connected.

In the above step S204, the following process may be adopted to divide the selection set, but not limited to:

s31, establishing one or more third collections in the initial folder according to the skeleton architecture of the target skeleton;

s32, dividing the initial animation file corresponding to the target skeleton in the initial animation file into one or more third selection sets to obtain one or more fourth selection sets;

and S33, modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

Optionally, in this embodiment, the name of each of the plurality of third selections may be different. Such as: hairSet1, hairSet2, and the like. And the name of the first selection set is the name of the selection set which accords with a preset format, and the name of the selection set which accords with the naming rule of the file batch export plug-in of the animation file. Such as: fig. 7 is a schematic diagram of an alternative selection renaming manner according to an embodiment of the present application, and as shown in fig. 7, created hairSet1, hairSet2, and the like are renamed to hair.

In the technical solution provided in step S206, the bone data processing may include, but is not limited to: disconnection of bone connection and zeroing of bone data, etc.

In the above step S206, the bone data processing may be performed in, but not limited to, the following manner:

s41, disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first collection from the skeleton at the upper level;

s42, the initial animation file stored in each first selection set is subjected to the skeleton data zeroing process.

Optionally, in this embodiment, the selection and the skeleton that need to be disconnected may be configured, but not limited to, on the application interface of the above-described animation filer application. For example: fig. 8 is a schematic diagram of a bone disconnection process according to an embodiment of the present application, and as shown in fig. 8, a connection relationship of b _ hair _ trunk, which is a bone in a hair selection set, is disconnected from a bone at a previous stage on an application interface.

As an alternative embodiment, the zeroing process for the bone data may be, but is not limited to, the following:

s51, obtaining bone displacement data and/or bone rotation data from the animation file arrangement indication information;

s52, under the condition that the bone displacement data are obtained, performing bone displacement on the initial animation file stored in each first collection according to the bone displacement data;

and S53, when the bone rotation data is acquired, performing bone rotation on the initial animation file stored in each first selection set according to the bone rotation data.

Optionally, in the present embodiment, the bone displacement data and/or the bone rotation data may be set, but not limited to, on an application interface of the animation filer application. For example: fig. 9 is a schematic diagram of setting rotation parameters of bone data according to an embodiment of the application, and as shown in fig. 9, the bone displacement data of the bone b _ hair _ trunk is set to be 0, and the bone rotation data is set to be x180y-90z 0. The bone displacement data and the bone rotation data may be arranged according to the derivation requirements of the project.

In the technical solution provided in step S208, the storage path and the folder name of the target folder may be default, or may be set by the user on the application interface.

As an alternative embodiment, after the step S208, the method further includes:

s61, calling a file export plug-in to export the target animation file stored in the target folder into an action file in a first file format;

s62, converting the action file in the first file format into an action file in a second file format.

Optionally, in this embodiment, the action files may be obtained by performing a batch export operation on the target animation files stored in the target folder through a file export plug-in, where the action files exported by the file export plug-in are all files in the first file format. The first file format may be, but is not limited to, the ANIPRE file format. Fig. 10 is a schematic diagram of an interface of a file export plug-in according to an embodiment of the present application, and as shown in fig. 10, a path of a target folder may be selected in a source directory, an output directory may be selected, or may be default, a name of an export selection set may be selected as a hair, and an animation file in the target folder may be exported to an action file in an anipe format after a batch export button is clicked.

Optionally, in this embodiment, the format of the action file may be converted, but is not limited to, by a format conversion plug-in, and the second file format may be, but is not limited to, an anim file format. The format conversion plug-in may convert the ANIPRE action file to an anim action file via the skelpre file. Fig. 11 is a schematic diagram of an interface of a format conversion plug-in according to an embodiment of the present application, and as shown in fig. 11, a p06_ f2_ body _ store _ talk, anipre action file may be converted into a p06_ f2_ body _ store _ talk, anim action file through a p06_ f2_ body _001+. skelpre file.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

According to another aspect of the embodiments of the present application, there is also provided an output apparatus of an animation file for implementing the above output method of an animation file, which is applied to an animation filing application. Fig. 12 is a schematic diagram of an alternative animation file output device according to an embodiment of the present application, and as shown in fig. 12, the device may include:

a receiving module 122, configured to receive animation file arrangement instruction information, where the animation file arrangement instruction information is used to instruct to arrange an initial animation file corresponding to a target bone in initial animation files stored in an initial folder;

a dividing module 124, configured to divide, in response to the animation file sorting indication information, an initial animation file corresponding to the target bone in the initial animation file into one or more first selection sets according to a bone architecture of the target bone;

a processing module 126, configured to perform bone data processing on the initial animation file stored in each of the one or more first collections to obtain one or more second collections in which the target animation file is stored;

an output module 128 for outputting the one or more second selections to a destination folder.

It should be noted that the receiving module 122 in this embodiment may be configured to execute the step S202 in this embodiment, the dividing module 124 in this embodiment may be configured to execute the step S204 in this embodiment, the processing module 126 in this embodiment may be configured to execute the step S206 in this embodiment, and the output module 128 in this embodiment may be configured to execute the step S208 in this embodiment.

It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.

Through the above modules, the initial animation file of the target skeleton is automatically divided, selected, processed by skeleton data and the like according to the content indicated in the animation file sorting indication information through the animation file sorting application, so that the sorted animation file is automatically output to the target folder, the purpose of batch sorting and outputting of the animation file is achieved, the technical effect of improving the output efficiency of the animation file is achieved, and the technical problem of low output efficiency of the animation file is solved.

As an alternative embodiment, the receiving module includes:

the receiving unit is used for receiving a calling request, wherein the calling request is used for requesting to call the animation file tidying application;

a display unit, configured to respond to the call request and display an application interface, where the application interface is used to input animation file arrangement information, and the animation file arrangement information includes: the storage path of the folder, the skeleton identification of the skeleton, the selection name and the skeleton data;

and the determining unit is used for determining that the animation file arrangement indicating information is received under the condition that target operation executed on the application interface is detected, wherein the animation file arrangement indicating information carries a storage path of the initial folder, a bone identifier of the target bone, a selection name corresponding to the target bone and target bone data.

As an alternative embodiment, the receiving unit is configured to:

opening an initial animation file in the initial folder;

detecting the starting operation of the animation file arrangement application on the display interface of the initial animation file;

determining that the call request is received in a case where the start operation is detected.

As an alternative embodiment, the dividing module includes:

the establishing unit is used for establishing one or more third collections in the initial folder according to the bone architecture of the target bone;

the dividing unit is used for dividing the initial animation file corresponding to the target skeleton in the initial animation file into one or more third selection sets to obtain one or more fourth selection sets;

and the modifying unit is used for modifying the option names of the one or more fourth options into option names in a preset format to obtain the one or more first options.

As an alternative embodiment, the processing module comprises:

the disconnection unit is used for disconnecting the connection relation of the skeleton corresponding to the initial animation file stored in each first selection set from the skeleton at the upper level;

and the processing unit is used for carrying out zero setting processing on the bone data of the initial animation file stored in each first selection set.

As an alternative embodiment, the processing unit is configured to:

acquiring bone displacement data and/or bone rotation data from the animation file finishing indication information;

under the condition of acquiring the bone displacement data, performing bone displacement on the initial animation file stored in each first collection according to the bone displacement data;

and under the condition that the bone rotation data is obtained, performing bone rotation on the initial animation file stored in each first selection set according to the bone rotation data.

As an alternative embodiment, the apparatus further comprises:

a calling module, configured to, after outputting the one or more second collections into a target folder, call a file export plug-in to export the target animation file stored in the target folder into an action file in a first file format;

and the conversion module is used for converting the action file in the first file format into an action file in a second file format.

It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.

According to another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the above-described output method of an animation file.

Fig. 13 is a block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 13, the electronic device may include: one or more processors 1301 (only one of which is shown), a memory 1303, and a transmission 1305, as shown in fig. 13, the electronic apparatus may further include an input-output device 1307.

The memory 1303 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for outputting an animation file in the embodiment of the present application, and the processor 1301 executes various functional applications and data processing by running the software programs and modules stored in the memory 1303, that is, implementing the method for outputting an animation file. Memory 1303 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1303 may further include memory remotely located from the processor 1301, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The transmitting device 1305 is used for receiving or sending data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmitting device 1305 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1305 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.

Among them, the memory 1303 is used to store an application program, in particular.

The processor 1301 may call the application program stored in the memory 1303 through the transmission means 1305 to perform the following steps:

receiving animation file sorting indication information, wherein the animation file sorting indication information is used for indicating that initial animation files corresponding to target bones in the initial animation files stored in an initial folder are sorted;

responding to the animation file sorting indication information, and dividing initial animation files corresponding to the target bones in the initial animation files into one or more first selected sets according to the bone architecture of the target bones;

performing bone data processing on the initial animation file stored in each of the one or more first collections to obtain one or more second collections storing target animation files;

outputting the one or more second selections into a target folder.

By adopting the embodiment of the application, the scheme for outputting the animation file is provided. The initial animation file of the target skeleton is automatically divided, selected, processed and the like according to the content indicated in the animation file sorting indication information through the animation file sorting application, so that the sorted animation file is automatically output to the target folder, the purpose of batch sorting and outputting of the animation file is achieved, the technical effect of improving the output efficiency of the animation file is achieved, and the technical problem that the output efficiency of the animation file is low is solved.

Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.

It will be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration, and the electronic device may be a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 13 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program for instructing hardware associated with an electronic device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the storage medium may be a program code for executing an output method of an animation file.

Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.

Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:

receiving animation file sorting indication information, wherein the animation file sorting indication information is used for indicating that initial animation files corresponding to target bones in the initial animation files stored in an initial folder are sorted;

responding to the animation file sorting indication information, and dividing initial animation files corresponding to the target bones in the initial animation files into one or more first selected sets according to the bone architecture of the target bones;

performing bone data processing on the initial animation file stored in each of the one or more first collections to obtain one or more second collections storing target animation files;

outputting the one or more second selections into a target folder.

Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.

Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.

In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:动态图像播放方法、装置、计算机设备和可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!