Animation processing method, device, computer equipment and storage medium

By automatically analyzing and visualizing animation parameters, the communication problems between animation designers and engineers are solved, the accuracy and efficiency of animation code writing is improved, the communication cost is reduced, and the animation effect is ensured is high.

CN111951355BActive Publication Date: 2025-01-17DOUYIN VISION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010773901.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-04
Publication Date
2025-01-17
Estimated Expiration
2041-01-17

AI Technical Summary

Technical Problem

During the animation development and acceptance process, due to the differences in professional cognition, animation effects and designers have different expectations, which have increased communication and modification costs.

Method used

By obtaining the target animation object in execution, determining the animation type, and using visualization tools to extract and display animation parameter information, the automatic parsing and visualization of animation parameters is realized, reducing communication costs and improving code writing accuracy.

Benefits of technology

Automatic analysis of animation parameters improves the accuracy of code writing, reduces the communication cost between animation designers and engineers, improves communication efficiency, and ensures high restoration of animation effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111951355B_ABST
    Figure CN111951355B_ABST
Patent Text Reader

Abstract

The present disclosure provides an animation processing method, apparatus, computer equipment and storage medium, wherein the method comprises: first obtaining a target animation object being executed, determining the animation type corresponding to the target animation object, and then based on the parameter type to be parsed corresponding to the animation type, using a visualization tool to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object, and finally displaying the extracted animation parameter information through the visualization tool. In this way, the embodiment of the present disclosure can automatically parse out relevant animation parameters for the animation object being executed, and the parsed relevant animation parameters can be directly presented to the motion effect designer, and can be used by the engineer for animation code writing, thereby saving the communication cost between the motion effect designer and the engineer and improving the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of animation technology, and in particular to an animation processing method, device, computer equipment and storage medium. Background Art

[0002] The motion effect in an application, also known as the animation effect, refers to the dynamic performance of the relevant views in the application, for example, an icon moves from position A to position B. Motion effects need to be designed, and different animation effects can be presented by using different animation parameters.

[0003] Since the dynamic characteristics of motion effects are more complex and difficult to describe than static characteristics, the development and acceptance costs of motion effects are relatively high. Usually, after designing the animation preview effect, the designer will provide the animation preview effect to the engineer for animation code design. However, the engineer may not understand the professional terms of motion effect design provided by the designer in the annotation information, resulting in a difference between the realized animation effect and the preview effect provided by the designer. Summary of the invention

[0004] The embodiments of the present disclosure at least provide an animation processing method, apparatus, computer equipment and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides an animation processing method, including:

[0006] Obtaining the target animation object being executed, and determining the animation type corresponding to the target animation object;

[0007] Based on the parameter type to be parsed corresponding to the animation type, using a visualization tool to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object;

[0008] The extracted animation parameter information is displayed through the visualization tool.

[0009] In an optional implementation, obtaining the target animation object being executed includes:

[0010] The target animation object being executed is obtained by monitoring the animation adding event of the view layer of the view.

[0011] In an optional implementation, based on the to-be-parsed parameter type corresponding to the animation type, a visualization tool is used to extract animation parameter information corresponding to the to-be-parsed parameter type from the target animation object, including:

[0012] If the animation type is basic animation or keyframe animation, extracting animation curve parameter information from the target animation object using the visualization tool;

[0013] If the animation type is physical animation, the visualization tool is used to extract the physical parameter information of the animation from the target animation object.

[0014] In an optional implementation, obtaining the target animation object being executed includes:

[0015] Obtain at least one target animation object corresponding to at least one view;

[0016] The displaying of the parsed animation parameter information through the visualization tool includes:

[0017] Clustering the animation parameter information of the target animation object obtained by parsing according to the view information corresponding to the target animation object to generate a clustering result, wherein the clustering result includes a view list, an animation list as a next level of the view list, and animation details as a next level of the animation list; the animation details include animation parameter information;

[0018] The animation parameter information is displayed according to the clustering result.

[0019] In an optional implementation, displaying the animation parameter information according to the clustering result includes:

[0020] Displaying the view list;

[0021] In response to a selection operation on target view information in the view list, displaying an animation list associated with the target view information;

[0022] In response to a selection operation on a target animation in the animation list, animation parameter information of the target animation is displayed.

[0023] In an optional implementation, after displaying the animation list associated with the target view information, the method further includes:

[0024] In response to a deletion operation on the target view information, the target view information and the animation list and animation details associated with the target view information are deleted.

[0025] In an optional implementation, after displaying the extracted animation parameter information through the visualization tool, the method further includes:

[0026] In response to the animation parameter information saving instruction, the animation parameter information is saved in a curve preset library; or,

[0027] In response to the animation parameter information adjustment instruction, the animation parameter information is adjusted, and the adjusted animation parameter information is saved in a curve preset library.

[0028] In a second aspect, the present disclosure also provides an animation processing device, including:

[0029] An animation type identification module, used to obtain the target animation object being executed and determine the animation type corresponding to the target animation object;

[0030] A parsing module, configured to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object using a visualization tool based on the parameter type to be parsed corresponding to the animation type;

[0031] The display module is used to display the parsed animation parameter information through the visualization tool.

[0032] In a possible implementation, the animation type identification module, when acquiring the target animation object being executed, is used to:

[0033] The target animation object being executed is obtained by monitoring the animation adding event of the view layer of the view.

[0034] In a possible implementation manner, the parsing module, when extracting animation parameter information corresponding to the parameter type to be parsed from the target animation object using a visualization tool based on the parameter type to be parsed corresponding to the animation type, is used to:

[0035] If the animation type is basic animation or keyframe animation, extracting animation curve parameter information from the target animation object using the visualization tool;

[0036] If the animation type is physical animation, the visualization tool is used to extract the physical parameter information of the animation from the target animation object.

[0037] In a possible implementation, the animation type identification module, when acquiring the target animation object being executed, is used to:

[0038] Obtain at least one target animation object corresponding to at least one view;

[0039] The displaying of the parsed animation parameter information through the visualization tool includes:

[0040] Clustering the animation parameter information of the target animation object obtained by parsing according to the view information corresponding to the target animation object to generate a clustering result, wherein the clustering result includes a view list, an animation list as a next level of the view list, and animation details as a next level of the animation list; the animation details include animation parameter information;

[0041] The animation parameter information is displayed according to the clustering result.

[0042] In a possible implementation, when displaying the animation parameter information according to the clustering result, the display module is used to:

[0043] Displaying the view list;

[0044] In response to a selection operation on target view information in the view list, displaying an animation list associated with the target view information;

[0045] In response to a selection operation on a target animation in the animation list, animation parameter information of the target animation is displayed.

[0046] In a possible implementation manner, the animation processing device further includes a deletion module, which is used to:

[0047] In response to a deletion operation on the target view information, the target view information and the animation list and animation details associated with the target view information are deleted.

[0048] In a possible implementation manner, the animation processing device further includes a storage module, which is used to:

[0049] In response to the animation parameter information saving instruction, the animation parameter information is saved in a curve preset library; or,

[0050] In response to the animation parameter information adjustment instruction, the animation parameter information is adjusted, and the adjusted animation parameter information is saved in a curve preset library.

[0051] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect or any possible implementation of the first aspect are performed.

[0052] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned animation processing method are executed.

[0053] The animation processing method, apparatus, computer equipment and storage medium provided by the embodiments of the present disclosure first obtain the target animation object being executed, then determine the animation type corresponding to the target animation object, and then based on the parameter type to be parsed corresponding to the animation type, use a visualization tool to extract the animation parameter information corresponding to the parameter type to be parsed from the target animation object, and finally display the parsed animation parameter information through a visualization tool. In this way, the relevant animation parameters can be automatically parsed for the animation object being executed, and the parsed relevant animation parameters can be directly presented to the motion effect designer, and can be used by the engineer for animation code writing, thereby improving the accuracy of code writing, saving the communication cost between the motion effect designer and the engineer, and improving communication efficiency.

[0054] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0056] Figure 1 A flowchart of an animation processing method provided by an embodiment of the present disclosure is shown;

[0057] Figure 2 A schematic diagram showing the inheritance relationship between several types of animations in the animation processing method provided by the embodiment of the present disclosure;

[0058] Figure 3 A schematic diagram of the animation analysis result displayed by the embodiment of the present disclosure is shown;

[0059] Figure 4a A schematic diagram of a view list displayed in an embodiment of the present disclosure is shown;

[0060] Figure 4b A schematic diagram of an animation list associated with the target view information displayed in an embodiment of the present disclosure is shown;

[0061] Figure 4c A schematic diagram of an animation group list displayed in an embodiment of the present disclosure is shown;

[0062] Figure 5 A schematic diagram of an animation processing device 500 provided in an embodiment of the present disclosure is shown;

[0063] Figure 6 A schematic diagram of a computer device 600 provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0065] The research found that:

[0066] Due to the different professional knowledge of animation-related information between motion designers and engineers, in the process of pursuing high-fidelity product development, motion designers and engineers spend a lot of energy in the cycle of understanding, communication, modification and verification.

[0067] Based on the above research, the disclosed embodiments provide an animation processing method, device, computer equipment and storage medium, which can automatically parse and visualize animation parameter information during the execution of animation objects, so that motion designers can intuitively see the automatically parsed animation parameters through visualization tools. Based on this, motion designers can point out animation problems from the professional perspective of engineers during communication with engineers, greatly reducing the cost of communication between the two parties. In addition, engineers can directly use the parsed animation parameter information for code design, which greatly reduces the probability of errors and can better restore the animation design effect of motion designers.

[0068] The discovery and solution process of the above-mentioned problems are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure for the above-mentioned problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0069] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0070] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0071] To facilitate understanding of this embodiment, the animation processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the animation processing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the animation processing method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0072] The animation processing method provided by the embodiment of the present disclosure is described below by taking the execution subject as a terminal device as an example.

[0073] Embodiment 1

[0074] See also Figure 1 FIG. 1 is a flowchart of an animation processing method provided in Embodiment 1 of the present disclosure, wherein the method comprises steps S101 to S103, wherein:

[0075] S101: Acquire a target animation object being executed, and determine an animation type corresponding to the target animation object.

[0076] In a specific implementation, a listening node may be added in the view layer of the view to listen to the animation adding event, and then obtain the target animation object being executed.

[0077] Here, in some operating systems, animations are added to the view layer when they are executed, so if you can listen to the animation adding event in the layer, you can get the target animation object being executed. Specifically, you can add a preset category to the view layer, which contains a method for adding animation to the layer. You can replace this method with a listening method through method replacement. The listening method is a method set for listening to the target animation object and executing the animation parameter parsing process. Therefore, you can listen to the target animation object and execute the animation parameter parsing process through the listening method in the added category.

[0078] In a specific implementation, since there are many types of animations, different animation types require different animation parameter information to be parsed, so it is necessary to first identify the target animation object to determine the animation type to which it belongs.

[0079] To further understand the animation types, several possible animation types are described below.

[0080] like Figure 2 The following is a schematic diagram of the inheritance relationship between several types of animations, where:

[0081] like Figure 2 In the left branch, physical animation (CASpringAnimation) does not have a corresponding animation curve. Generally, it is necessary to analyze physical parameters such as mass, stiffness, damping, and initial velocity.

[0082] Physical animation inherits from basic animation (CABasicAnimation); basic animation and keyframe animation (CAKeyframeAnimation) are animations with corresponding animation curves, which are usually represented by a third-order Bezier curve. A third-order Bezier curve has two control points, which can represent a third-order Bezier curve. Each control point has two coordinate parameters, x and y, so four key parameters are needed to represent the animation curve. In addition, basic animation and keyframe animation also have animation parameter information such as starting point coordinates, end point coordinates, animation duration, and key frames in the animation.

[0083] Here, the difference between keyframe animation and basic animation is that basic animation only has an initial state and an end state, while keyframe animation can have multiple control states. Furthermore, in terms of display effects, keyframe animation can display animation effects such as vibration, swaying, zooming in and out, while basic animation cannot display the above animation effects due to the lack of control states between the initial state and the end state.

[0084] Basic animation and keyframe animation inherit from the abstract class animation (CAPropertyAnimation), that is, the abstract class animation is the parent class of basic animation and keyframe animation; abstract class animation has no corresponding instance and cannot be used directly alone in practical applications, so there is no need to perform the animation parameter parsing process.

[0085] In addition to the above animation types, there are other types of animations, such as transition animation (CATransition), which is used for transitions between different pages. The processing process of the transitions is not involved in the embodiments of the present disclosure.

[0086] An animation group (CAAnimationGroup) is a combination of multiple animations, that is, multiple animations executed simultaneously will be assembled into an animation group, and the animation parameters of each animation in the combination can be parsed separately.

[0087] Here, the animation group is a combination design pattern that can uniformly control the animation behaviors within the animation group, that is, the various animation effects in the animation group can be executed concurrently. When parsing the animation group, each animation object in the animation group is identified separately to confirm the animation type to which it belongs, so as to extract the animation parameter information according to the parameter type to be parsed corresponding to the determined animation type.

[0088] The common base class of the above CAPropertyAnimation, CATransition, and CAAnimationGroup is the abstract base class (CAAnimation), and there is no corresponding instance, so there is no need to parse it.

[0089] S102: Based on the to-be-parsed parameter type corresponding to the animation type, extract animation parameter information corresponding to the to-be-parsed parameter type from the target animation object using a visualization tool.

[0090] Here, the target animation object contains various animation parameter information used to render the corresponding animation effect. After the animation type is determined, the animation parameter information under the parameter type to be parsed corresponding to the animation type can be extracted from the target animation object.

[0091] As mentioned above, if the animation type is basic animation or keyframe animation, the parameter type to be parsed belongs to the curve parameter type. In this case, the visualization tool is used to extract the curve parameter information of the animation from the target animation object, such as the information of the two control points mentioned above.

[0092] If the animation type is a physical animation, the parameter type to be parsed belongs to the physical parameter type. At this time, the visualization tool is used to extract the physical parameter information of the animation from the target animation object, such as the above-mentioned physical parameters such as mass, stiffness, damping, initialVelocity, etc.

[0093] S103: Displaying the extracted animation parameter information through the visualization tool.

[0094] In a specific implementation, the parsed animation parameter information can be displayed to the motion effect designer through a visualization tool. Based on the displayed animation parameter information, the motion effect designer can determine whether each animation parameter information meets expectations and can adjust the animation parameter information.

[0095] In addition, the disclosed embodiment can encapsulate the parsed animation parameter information on the engineer side to form a curve preset library. The engineer side extracts the animation parameter information of the relevant animation from the curve preset library and writes the animation code based on the animation parameter information. The engineer can also interact with the motion effect designer based on the animation parameter information in the curve preset library and make corresponding modifications to the animation code according to the feedback from the motion effect designer.

[0096] like Figure 3 As shown, it is a schematic diagram of the animation analysis results displayed by the embodiment of the present disclosure. Among them, the types (type) include: difference animation (interpolation) and physical animation, and the attributes (attribute) represent the attributes of the execution animation, such as transparency, position, height, etc. For example, if an animation is added to the transparency, the corresponding graphic will gradually become lighter or darker. The initial value (start) and the end value (end) are the initial value and end value of the attribute. The animation duration (duration) is the duration of the animation. The curve name (curve) is easeInOut, which can be defined by the motion designer.

[0097] These animation analysis results are sent to the code engineer side, where they are packaged into a curve preset library. After that, the engineer can directly find the corresponding animation parameter information based on the curve name provided by the motion designer, and then write the corresponding animation code.

[0098] In addition, in the specific implementation, since the business application scenarios of the App are relatively complex and involve many animations, directly listing all the parameter information of all animations will result in a very large amount of information. On the one hand, the display page space is limited, and on the other hand, it is not conducive to user viewing.

[0099] Based on this, the embodiment of the present disclosure performs multi-level clustering on the APP analysis results, and performs hierarchical display when displaying the animation analysis results. The specific process is as follows:

[0100] After obtaining at least one target animation object corresponding to at least one view, for each target animation object, determine the animation type corresponding to the target animation object, and parse the animation parameter information of the target animation object based on the animation type; after obtaining the animation parameter information of each target animation object, cluster the parsed animation parameter information of the target animation object to generate a clustering result, wherein the clustering result includes a hierarchical relationship between a view list, an animation list, and animation details; wherein each view information in the view list is associated with an animation list, each animation list is associated with animation details of at least one animation, and the animation details include animation parameter information; then, according to the clustering result, display the animation parameter information.

[0101] Here, a view is like a function button in an APP. For example, the address book icon at the bottom of a social software is a view. Click the address book icon and it turns green. At this time, an animation of the icon turning green is executed. There are many views in an APP, and each view corresponds to many animations. The disclosed embodiment clusters the animation analysis results according to the view. Each view corresponds to an animation list. There are one or more animations in an animation list. When displaying, the view list is displayed first, and there are one or more views in the view list. After the user selects the target view information based on the view list, the animation list related to the target view information is displayed, and the like is expanded in sequence. On the one hand, this reduces the amount of information that the user browses at one time, making it easier for the user to find information, and on the other hand, it solves the problem of insufficient display space on the page.

[0102] Specifically, according to the clustering results, the process of displaying animation parameter information can be:

[0103] First, the view list is displayed, such as Figure 4a As shown;

[0104] Here, in order to avoid the problem of a large amount of view list data due to long-term monitoring, the embodiment of the present disclosure adds a clearing function. Figure 4a As shown, a deletion symbol "×" is added in the upper right corner. Specifically, in response to a deletion operation on the target view information, the target view information and the animation list and animation details associated with the target view information may be deleted.

[0105] Afterwards, the user (usually a motion designer) can select a target view in the view list to view and process the relevant animation parameters;

[0106] At this time, in response to the selection operation of the target view information in the view list, the animation list associated with the target view information is displayed, such as Figure 4b As shown;

[0107] Then, in response to the selection operation of the target animation in the animation list, the animation parameter information of the target animation is displayed. For example, if the user selects target animation 2, the following is displayed: Figure 3 In addition, if the target animation is an animation group, the following will be displayed after selecting the animation group: Figure 4c The interface shown includes information such as the various animations in the animation group and the execution order between the animations (for example, simultaneous execution here). Further selecting any animation in the animation group can display the animation analysis result page corresponding to the animation.

[0108] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0109] The animation processing method provided by the disclosed embodiment can automatically parse out relevant animation parameters for the animation object being executed. The parsed relevant animation parameters can be directly presented to the motion effect designer and can be used by the engineer for animation code writing, thereby improving the accuracy of code writing, saving the communication cost between the motion effect designer and the engineer, and improving the communication efficiency.

[0110] Based on the same inventive concept, an animation processing device corresponding to the animation processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned animation processing method in the embodiment of the present disclosure, the implementation of the animation processing device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0111] Reference Figure 5 FIG. 5 is a schematic diagram of an animation processing device 500 provided in an embodiment of the present disclosure, wherein:

[0112] Animation type identification module 501, used to obtain the target animation object being executed and determine the animation type corresponding to the target animation object;

[0113] A parsing module 502 is used to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object using a visualization tool based on the parameter type to be parsed corresponding to the animation type;

[0114] The display module 503 is used to display the parsed animation parameter information through the visualization tool.

[0115] In a possible implementation, the animation type identification module 501 is specifically used for:

[0116] The target animation object being executed is obtained by monitoring the animation adding event of the view layer of the view.

[0117] In a possible implementation, the parsing module 502 is specifically configured to:

[0118] If the animation type is basic animation or keyframe animation, extracting animation curve parameter information from the target animation object using the visualization tool;

[0119] If the animation type is physical animation, the visualization tool is used to extract the physical parameter information of the animation from the target animation object.

[0120] In a possible implementation, the animation type identification module 501 is specifically used for:

[0121] Obtain at least one target animation object corresponding to at least one view;

[0122] The display module 503 is specifically used for:

[0123] Clustering the animation parameter information of the target animation object obtained by parsing according to the view information corresponding to the target animation object to generate a clustering result, wherein the clustering result includes a view list, an animation list as a next level of the view list, and animation details as a next level of the animation list; the animation details include animation parameter information;

[0124] The animation parameter information is displayed according to the clustering result.

[0125] In a possible implementation, the display module 503 is specifically used for:

[0126] Displaying the view list;

[0127] In response to a selection operation on target view information in the view list, displaying an animation list associated with the target view information;

[0128] In response to a selection operation on a target animation in the animation list, animation parameter information of the target animation is displayed.

[0129] In a possible implementation manner, the animation processing device 500 further includes:

[0130] The deleting module 504 is used to delete the target view information and the animation list and animation details associated with the target view information in response to a delete operation on the target view information after the display module 503 displays the animation list associated with the target view information.

[0131] In a possible implementation manner, the animation processing device 500 further includes:

[0132] The saving module 505 is used to respond to the animation parameter information saving instruction and save the animation parameter information in the curve preset library; or

[0133] In response to the animation parameter information adjustment instruction, the animation parameter information is adjusted, and the adjusted animation parameter information is saved in a curve preset library.

[0134] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0135] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 6 As shown, it is a schematic diagram of the structure of a computer device 600 provided in an embodiment of the present disclosure, including a processor 601, a memory 602, and a bus 603. Among them, the memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 601, and the data exchanged with the external memory 6022 such as a hard disk. The processor 601 exchanges data with the external memory 6022 through the memory 6021. When the computer device 600 is running, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:

[0136] Obtaining the target animation object being executed, and determining the animation type corresponding to the target animation object;

[0137] Based on the parameter type to be parsed corresponding to the animation type, using a visualization tool to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object;

[0138] The extracted animation parameter information is displayed through the visualization tool.

[0139] In a possible implementation manner, the instructions executed by the processor 601 to obtain the target animation object being executed include:

[0140] The target animation object being executed is obtained by monitoring the animation adding event of the view layer of the view.

[0141] In a possible implementation manner, the instructions executed by the processor 601 include extracting animation parameter information corresponding to the parameter type to be parsed from the target animation object using a visualization tool based on the parameter type to be parsed corresponding to the animation type, including:

[0142] If the animation type is basic animation or keyframe animation, extracting animation curve parameter information from the target animation object using the visualization tool;

[0143] If the animation type is physical animation, the visualization tool is used to extract the physical parameter information of the animation from the target animation object.

[0144] In a possible implementation manner, the instructions executed by the processor 601 to obtain the target animation object being executed include:

[0145] Obtain at least one target animation object corresponding to at least one view;

[0146] The displaying of the parsed animation parameter information through the visualization tool includes:

[0147] Clustering the animation parameter information of the target animation object obtained by parsing according to the view information corresponding to the target animation object to generate a clustering result, wherein the clustering result includes a view list, an animation list as a next level of the view list, and animation details as a next level of the animation list; the animation details include animation parameter information;

[0148] The animation parameter information is displayed according to the clustering result.

[0149] In a possible implementation manner, the instructions executed by the processor 601 display the animation parameter information according to the clustering result, including:

[0150] Displaying the view list;

[0151] In response to a selection operation on target view information in the view list, displaying an animation list associated with the target view information;

[0152] In response to a selection operation on a target animation in the animation list, animation parameter information of the target animation is displayed.

[0153] In a possible implementation manner, the instructions executed by the processor 601, after displaying the animation list associated with the target view information, further include:

[0154] In response to a deletion operation on the target view information, the target view information and the animation list and animation details associated with the target view information are deleted.

[0155] In a possible implementation manner, in the instructions executed by the processor 601, after displaying the extracted animation parameter information through the visualization tool, further includes:

[0156] In response to the animation parameter information saving instruction, the animation parameter information is saved in a curve preset library; or,

[0157] In response to the animation parameter information adjustment instruction, the animation parameter information is adjusted, and the adjusted animation parameter information is saved in a curve preset library.

[0158] The present disclosure also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the animation processing method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0159] The computer program product of the animation processing method provided in the embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the animation processing method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0160] The present disclosure also provides a computer program, which implements any one of the methods of the aforementioned embodiments when executed by a processor. The computer program product can be implemented in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.

[0161] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0163] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0164] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0165] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An animation processing method, characterized in that: include: Obtaining the target animation object being executed, and determining the animation type corresponding to the target animation object; Based on the parameter type to be parsed corresponding to the animation type, a visualization tool is used to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object; Displaying the extracted animation parameter information through the visualization tool; In response to an animation parameter information saving instruction, the animation parameter information is saved in a curve preset library; or, in response to an animation parameter information adjustment instruction, the animation parameter information is adjusted and the adjusted animation parameter information is saved in a curve preset library.

2. The method according to claim 1, characterized in that Get the target animation object being executed, including: The target animation object being executed is obtained by monitoring the animation adding event of the view layer of the view.

3. The method according to claim 1, characterized in that Based on the parameter type to be parsed corresponding to the animation type, a visualization tool is used to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object, including: If the animation type is basic animation or keyframe animation, extracting animation curve parameter information from the target animation object using the visualization tool; If the animation type is physical animation, the visualization tool is used to extract the physical parameter information of the animation from the target animation object.

4. The method according to any one of claims 1 to 3, characterized in that: Get the target animation object being executed, including: Obtain at least one target animation object corresponding to at least one view; The displaying of the parsed animation parameter information through the visualization tool includes: Clustering the animation parameter information of the target animation object obtained by parsing according to the view information corresponding to the target animation object to generate a clustering result, wherein the clustering result includes a view list, an animation list as a next level of the view list, and animation details as a next level of the animation list; the animation details include animation parameter information; The animation parameter information is displayed according to the clustering result.

5. The method according to claim 4, characterized in that According to the clustering result, the animation parameter information is displayed, including: Displaying the view list; In response to a selection operation on target view information in the view list, displaying an animation list associated with the target view information; In response to a selection operation on a target animation in the animation list, animation parameter information of the target animation is displayed.

6. The method according to claim 5, characterized in that After displaying the animation list associated with the target view information, the method further includes: In response to a deletion operation on the target view information, the target view information and the animation list and animation details associated with the target view information are deleted.

7. An animation processing device, characterized in that: include: An animation type identification module, used to obtain the target animation object being executed and determine the animation type corresponding to the target animation object; A parsing module, configured to extract animation parameter information corresponding to the parameter type to be parsed from the target animation object using a visualization tool based on the parameter type to be parsed corresponding to the animation type; A display module, used for displaying the parsed animation parameter information through the visualization tool; The saving module is used to respond to the animation parameter information saving instruction and save the animation parameter information in the curve preset library; or respond to the animation parameter information adjustment instruction, adjust the animation parameter information, and save the adjusted animation parameter information in the curve preset library.

8. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the animation processing method as described in any one of claims 1 to 6 are performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the animation processing method according to any one of claims 1 to 6 are executed.

Citation Information

Patent Citations

  • Implementation method and system for applying animation to Android platform

    CN103942050A

  • Method and apparatus for realizing animation carousel effect

    CN104050579A

  • Animation creation method and apparatus, electronic device and computer readable storage medium

    CN108038894A

  • A method and apparatus for generating animation code

    CN109242934A