Text animation generation method and device, computer equipment and storage medium

By disassembling and linking the attributes of animation files, the problems of low efficiency and poor complex combination of Chinese text animations in Adobe After Effects are solved, and efficient and concise generation of text animations are achieved.

CN119313792APending Publication Date: 2025-01-14深圳牛学长科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411431727.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing Adobe After Effects software cannot directly use existing animation attributes to generate text animations in text animation production, resulting in low generation efficiency and poor combination of complex text and animations.

Method used

By obtaining text files and animation files, the animation file attributes are disassembled to obtain transformation parameters, animations and paths, and linking text files with animation files to generate text animations, thereby achieving the effect of text following the animation trajectory.

Benefits of technology

It improves the effect and efficiency of text animation generation, simplifies the animation merging steps, solves the shortcomings of AE software being unable to produce complex text and animation combinations, and realizes the concise and efficient generation of text animations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119313792A_ABST
    Figure CN119313792A_ABST
Patent Text Reader

Abstract

The invention discloses a text animation generation method and device, computer equipment and a storage medium. The method comprises the steps of obtaining a text file and an animation file; carrying out attribute disassembly on the animation file to obtain transformation parameters, animations and paths in the animation file; and linking the character file with the animation file based on the transformation parameters, the animation and the path to obtain the character animation. The invention aims to enhance the generation effect of the character animation. According to the method and the device, the animation file is subjected to attribute splitting, and the split animation file is linked with the character object, so that the effect that the character moves along with the animation track can be realized, the movement of the character becomes simpler, the animation merging step is greatly compressed, the whole character animation generation process is simpler and more efficient, and the user experience is improved. Problems possibly occurring in the text and animation combination process are avoided, and the defect that complex text and animation combination cannot be made through AE software is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer software technology, and in particular to a text animation generation method, device, computer equipment and storage medium. Background Art

[0002] AE refers to Adobe After Effects, which is a graphics and video processing software launched by Adobe. It is suitable for organizations engaged in design and video stunts, including TV stations, animation production companies, personal post-production studios, and multimedia studios. To produce text animation based on AE, it is necessary to create new text objects and animation properties, and then link the two to form the final text animation. However, this process still has certain defects, which leads to the fact that the final generated text animation effect is average. For example, in this process, it is not possible to directly use the existing animation properties to generate text animation, but it is necessary to reset the animation properties. For another example, the generation efficiency of new text animation is low, and a new text animation needs to be created each time it is generated. Therefore, how to enhance the generation effect of text animation is a problem that technicians in this field need to solve. Summary of the invention

[0003] The embodiments of the present invention provide a text animation generation method, device, computer equipment and storage medium, aiming to enhance the generation effect of text animation.

[0004] In a first aspect, an embodiment of the present invention provides a method for generating a text animation, comprising:

[0005] Get text files and animation files;

[0006] Decomposing the animation file by attributes to obtain transformation parameters, animation and path in the animation file;

[0007] Based on the transformation parameters, animation and path, the text file is linked with the animation file to obtain the text animation.

[0008] In a second aspect, an embodiment of the present invention provides a text animation generating device, comprising:

[0009] An acquisition unit, used for acquiring text files and animation files;

[0010] A disassembly unit, used for disassembling the attributes of the animation file to obtain the transformation parameters, animation and path in the animation file;

[0011] A linking unit is used to link the text file with the animation file based on the transformation parameters, animation and path to obtain text animation.

[0012] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the text animation generation method as described in the first aspect when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the text animation generation method as described in the first aspect is implemented.

[0014] The embodiment of the present invention provides a method, device, computer equipment and storage medium for generating text animation, the method comprising: obtaining a text file and an animation file; performing attribute decomposition on the animation file to obtain transformation parameters, animation and path in the animation file; based on the transformation parameters, animation and path, linking the text file with the animation file to obtain text animation. The purpose is to enhance the generation effect of text animation. The embodiment of the present invention performs attribute decomposition on the animation file and links it with the text object after decomposition, so that the text can follow the animation trajectory, thereby making it easier for the text to move, and greatly compressing the animation merging steps, making the overall text animation generation process more concise and efficient, and avoiding problems that may occur in the process of combining text and animation, solving the shortcoming that AE software cannot produce complex text and animation combinations. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0016] Figure 1 A flowchart of a text animation generation method provided by an embodiment of the present invention;

[0017] Figure 2 A schematic block diagram of a text animation generating device provided by an embodiment of the present invention;

[0018] Figure 3 Another schematic diagram of a flow chart of a text animation generation method provided by an embodiment of the present invention;

[0019] Figure 4 A schematic diagram of a node tree in a text animation generation method provided by an embodiment of the present invention;

[0020] Figure 5A schematic diagram of a first sub-process of a text animation generation method provided by an embodiment of the present invention;

[0021] Figure 6 A schematic diagram of a second sub-process of a text animation generation method provided by an embodiment of the present invention;

[0022] Figure 7 A schematic diagram of a third sub-process of a text animation generation method provided by an embodiment of the present invention;

[0023] Figure 8 A schematic diagram of a fourth sub-process of a text animation generation method provided by an embodiment of the present invention;

[0024] Fig. 9 A schematic diagram of a fifth sub-process of a text animation generation method provided by an embodiment of the present invention;

[0025] Fig.10 A sixth sub-process diagram of a text animation generation method provided by an embodiment of the present invention; Fig.11 A seventh sub-process diagram of a text animation generation method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0028] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0029] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0030] See below Figure 1 , an embodiment of the present invention provides a text animation generation method, which specifically includes: steps S101 to S103.

[0031] S101, obtaining text files and animation files;

[0032] S102, performing attribute decomposition on the animation file to obtain transformation parameters, animation and path in the animation file;

[0033] S103. Based on the transformation parameters, animation and path, link the text file with the animation file to obtain text animation.

[0034] In this embodiment, combined with Figure 1 First, obtain the text file and the animation file, wherein the text file can have a variety of different styles, such as single-layer ordinary text, multi-layer multi-effect text, etc., and the animation file (i.e. Figure 1 The text animation file in the file is usually used as an animation template to be applied to all texts. Then the animation file is attributed to obtain the attribute information such as the transformation parameters, animation and path of the animation file, and then the text file and the animation file are linked together according to the attribute information to generate the text animation.

[0035] This embodiment splits the animation file by attributes and links it with the text object after the split, so that the text can move along the animation trajectory, making it easier to realize the movement of the text, and greatly compressing the animation merging steps, making the overall text animation generation process more concise and efficient, and avoiding the problems that may arise in the process of combining text and animation, solving the shortcoming that AE software cannot produce complex text and animation combinations. In addition, since the text file can have a variety of different styles, the text animation generated by this embodiment can achieve the effect that different texts move along with the specified animation file.

[0036] At present, the text animation combination process can be divided into two categories based on the animation type: adding key frames (Key Frame) to transformation parameters (Transform 2D), animation (Animator) and path (Path Option). From the perspective of text structure, it can be divided into two categories: single-layer text and multi-layer text. To apply animation to text, you need to have a basic understanding of animation and text structure in order to better reduce the workload and achieve the goal. Whether it is text or text animation, it follows the node tree structure, such as Figure 4As shown. Each text file will contain at least one Composition, and each Composition will contain at least one layer, which can be a Text Layer or a PreCompose. In AE, PreCompose is usually used to group multiple Text Layers to facilitate the addition of special effects. PreCompose can be at the same level as TextLayer, or it can be the parent of Text Layer. When at the same level as Text Layer, setting properties for PreCompose will not affect the Text Layer at the same level; when it is the parent of Text Layer, setting PreCompose properties will affect the lower Text Layer. Each Text Layer will have text-related properties (such as text size, content, color, etc.), and animation-related properties mainly include 2D transformation parameters (Transform 2D), animation (Animator) and path (Path Option), so this embodiment focuses on splitting these three parameters and animating them with text.

[0037] From the perspective of text structure, it can be divided into two categories: single-layer text (one Text Layer) and multi-layer text (multiple Text Layers). Text exported by AE can also be divided into single Composition and multiple Compositions, but there is no one-to-one correspondence between the number of text layers and the number of Compositions. In other words, multi-layer text can have only a single Composition, and single-layer text can have multiple Compositions. For example, when a single-layer text needs to achieve special effects or masks, it is necessary to first do a PreCompose on the single-layer text to make it a whole, and then apply special effects to this whole; for example, when doing multi-layer text, put multiple layers in one Composition, but when no special effects or mask processing is performed, the file can be exported directly, and there is only one Composition at this time.

[0038] In terms of animation type, taking a simple text animation file as an example, a Composition must contain more than one text layer, as well as other optional layers (such as ImageLayer, ShapeLayer and other mask layers, depending on the animation effect). The principle of animation implementation is to add Key Frame to the Transform2D property in the text layer, or add Animator and Path Option to achieve the effect of text movement. Transform 2D, Animator and Path Option are different, as shown in Table 1:

[0039]

[0040] Table 1

[0041] Combined with Table 1, the animation effect of Transform 2D is relatively simple, for example, it is simply an animation of scaling / rotation / displacement, and can only move the entire text, not each word; Animator adds animation to each word and can also move the entire text, but its structure is more complicated; Path Option is usually used on more complex motion paths, by constructing a complex motion trajectory to move the text along this motion trajectory.

[0042] Here, adding a Key Frame in Transform 2D to achieve text motion effects is more troublesome. This is because it is not a smart pointer, so you need to construct a new Key Frame, set the start and end point properties (such as displacement, rotation, scaling), and call functions such as Bezier curves to generate intermediate key points, so as to obtain the motion trajectory from the start point to the end point. Key frame types are mainly divided into four categories: Spatial Point, Single Ease, MultiDimensionPoint, and Unknown. Among them, Spatial Point usually refers to a point with two-dimensional coordinates. This point has a position in two-dimensional space, usually represented by (x, y), where x and y are the coordinates of the point in space relative to a reference point, and are often used to describe the position of an object. Single Ease refers to a single easing function or algorithm used to describe the speed change of an object in an animation, and is used for smooth transitions and transition effects of animations. MultiDimension Point usually refers to a point defined in a space with more than three dimensions. This point is used in more complex multidimensional spaces in computer graphics. Unknown key frames refer to simple coordinate points without transformation transitions between frames.

[0043] The specific type of keyframes to be set depends on the animation effect. For example, when the animation is mainly based on movement, you can add Spatial Point, Single Ease or Unknown keyframes to the position on Transform 2D; when the animation is mainly based on scaling, you can add Multi Dimension Point or Unknown keyframes to the Scale on Transform 2D. The types of keyframes that can be added to Transform 2D properties are shown in Table 2:

[0044]

[0045] Table 2

[0046] When adding Animator and Path Option to achieve motion effects, taking Animator as an example, it can be seen from Table 1 that Animator moves word by word. When the text content is large, Animator can calculate the current frame position, scale and rotation angle for each word. Therefore, its principle is to use one or more complex motion trajectory function algorithms to drive each word to move, but the calculation is complicated. It is difficult to reconstruct Animator by referring to the text animation file and apply it to the text file. Therefore, the Animator is adjusted to a smart pointer. The ready-made Animator can be directly applied to achieve the same animation effect for different texts, and it can also avoid recalculating the text motion trajectory. The Path Option animation is similar, and it also involves the calculation of the motion path. After changing it to a smart pointer, you only need to copy it to the layer that needs to be animated.

[0047] In one embodiment, the linking of the text file with the animation file based on the transformation parameters, animation and path to obtain the text animation includes:

[0048] Taking the animation file as the main file, inserting the layers in the text file into the animation file to obtain the text animation;

[0049] Alternatively, the text file is pre-synthesized, and the transformation parameters, animation and path in the animation file are added to the pre-synthesis to obtain the text animation.

[0050] In this embodiment, although the text structure can be divided into single-layer and multi-layer, the composition that affects the text animation mainly depends on the number of compositions. Specifically, there are two ways to add animation to text: one is to directly use the animation as the main file and copy the text layer to the animation; the other is to generate a pre-composition of the text and then apply animation to the pre-composition.

[0051] It should be noted that the method of generating text animation by pre-synthesizing text and applying animation to the pre-synthesis (ie, method 2) is simpler and has higher generation efficiency than the method of generating text animation using animation files as main files (ie, method 1).

[0052] In one embodiment, the process of taking the animation file as the main file and inserting the layers in the text file into the animation file to obtain the text animation includes:

[0053] When the text file contains a single combination, creating a first text layer, and setting layer properties for the first text layer according to the text file;

[0054] Adding the transformation parameters, animation and path in the animation file to the first text layer;

[0055] The first text layer is inserted into the animation file in reverse order to obtain the text animation.

[0056] In this embodiment, combined with Figure 5 When adding animation to a single Composition, use the animation file as the main file, first construct a new Text Layer, i.e. the first text layer, and then set the properties of the Text Layer according to the Text Layer of the corresponding text, which may include the font size, content, color, etc. Secondly, set the animation properties (Transform 2D / Animator / Path Option) in the TextLayer of the animation file to the first text layer TextLayer. Then insert the first text layer Text Layer into the animation file in reverse order (otherwise the displayed multiple layers of text will be reversed), so that the text animation can be generated.

[0057] In one embodiment, the method of taking the animation file as the main file and inserting the layers in the text file into the animation file to obtain the text animation further includes:

[0058] When the text file contains multiple combinations, obtaining the number of combinations in the text file, and creating a first combination for the animation file according to the number of combinations in the text file;

[0059] Creating the same number of second text layers according to the number of combinations in the text file, and adding the transformation parameters, animations and paths in the animation file to the second text layers;

[0060] Inserting the second text layer into the first combination of the animation file, and creating a first pre-composition for the original combination in the animation file;

[0061] The first pre-synthesis is linked to the first combination to obtain the text animation.

[0062] In this embodiment, combined with Figure 6 When adding animations to multiple Compositions, it is necessary to refer to the text structure, that is, to determine whether there is more than one Composition in the text. If there is more, create Compositions according to the total number of text Compositions - 1, that is, the first combination. At the same time, create a Text Layer corresponding to the number of Compositions in the text file, that is, the second text layer, and correspond it to the Text Layer in the text file one by one, so as to assign basic properties (font size, color, etc.). Then apply the Transform 2D, Animator, and Path Option of the Text Layer in the animation file to the newly created Text Layer. After completing the above operations, create a PreCompose in the last Composition, that is, the first pre-composition. The trackMatterLayer of the PreCompose needs to reference the first Composition in the animation file. The trackMatterLayer here is a technology used by AE to control the visibility of a layer based on the content of another layer. It can be understood as linking the previous Composition to the PreCompose. The subsequent addition of animations and special effects to the PreCompose can directly act on the Text Layer in the previous Composition. Figure 6 As shown in the changes in the text structure on the right side of the animation file, from the original structure of the animation file, creating Composition to the current structure, and creating the corresponding number of Text Layers, setting the basic properties of the text, creating PreCompose, and finally linking the first Composition through trackMatteLayer to obtain the final result, that is, the text animation.

[0063] In one embodiment, the method of taking the animation file as the main file and inserting the layers in the text file into the animation file to obtain the text animation further includes:

[0064] When the text file contains multiple combinations and the animation file contains a mask layer, obtaining the number of combinations in the text file, and creating a second combination for the animation file according to the number of combinations in the text file;

[0065] Creating a third text layer with the same number as the number of combinations in the text file, and linking the mask layer in the animation file to the third text layer;

[0066] Inserting the third text layer into the second combination of the animation file, and creating a second pre-composition for the original combination in the animation file;

[0067] The second pre-composition is linked to the second combination to obtain the text animation.

[0068] It should be noted that the above Figure 6 The text animation generation process shown is mainly for animation files that do not contain mask layers. For animation files that contain mask layers, when generating text animation, its operation is similar to that of generating text animation through animation files that do not contain mask layers. The difference is that Figure 7 , the animation effect of the mask layer is applied to the entire text, and the text needs to be packaged into a PreCompose before the animation can be applied. Animation without a mask layer does not require this step (such as Figure 6 shown).

[0069] In one embodiment, the pre-synthesis processing is performed on the text file, and the transformation parameters, animation and path in the animation file are added to the pre-synthesis to obtain the text animation, including:

[0070] When there is no mask layer in the animation file, creating a third combination in the text file, and creating a third pre-composition in the third combination with the same number of text layers in the animation file;

[0071] The third pre-synthesis is linked to the previous combination of the third combination, and the transformation parameters, animation and path in the animation file are added to the third pre-synthesis to obtain the text animation.

[0072] In this embodiment, for animation without mask layer, firstly, a new Composition is created in the text file, namely the third composition, so that the animation acts on the whole. Then, a precomposition PreCompose is created in the new Composition, namely the third precomposition. Here, the number of created PreCompose is consistent with the number of Text Layers in the animation file, and the track Matter Layer of all newly created PreComposes references the content of the previous Composition. Finally, the PreCompose is set with reference to the Transform2D / Animator / Path Option animation properties of the animation Text Layer to obtain the final text structure, such as Figure 8 Shown is a single Composition and animation synthesis flow chart.

[0073] Fig. 9 This is a flow chart of multiple compositions and animation synthesis, and its process is similar to that of a single composition. Whether it is a single or multiple composition text animation synthesis, the key lies in the number of text animation Text Layers. For example, if there are two AniText Layers in the text animation in the figure, construct two PreComposes, and set the animation properties in the two AniText Layers of the text animation to PreCompose to achieve the animation effect.

[0074] In one embodiment, the pre-synthesis processing of the text file and adding the transformation parameters, animation and path in the animation file to the pre-synthesis to obtain the text animation further includes:

[0075] When the animation file has a mask layer, creating a fourth combination in the text file, and creating a fourth pre-composition in the fourth combination;

[0076] The third pre-synthesis is linked to the previous combination of the fourth combination, and the mask layer in the animation file is linked to the fourth pre-synthesis to obtain the text animation.

[0077] In this embodiment, combined with Fig.10 and Fig.11 ,in, Fig.10 This is the process of merging single Composition and mask animation. Fig.11For the merging process of multiple Compositions and mask animations, the process of generating text animations through animation files with mask layers is simpler than generating text animations through animation files without mask layers. Specifically, first create a new Composition as the main layer for setting the animation, and create a pre-composition PreCompose to point to the previous Composition. Unlike generating text animations without mask animations, when generating text animations with animation files with mask layers, there is no need to create a corresponding number of PreComposes based on the number of Text Layers in the animation file, that is, there is no need to consider the number of Compositions, you only need to create one PreCompose, and finally connect the mask layer to the newly created PreCompose to get the text animation.

[0078] Figure 2 A schematic block diagram of a text animation generating device 200 provided in an embodiment of the present invention, the device 200 comprises:

[0079] An acquisition unit 201 is used to acquire text files and animation files;

[0080] A disassembly unit 202 is used to perform attribute disassembly on the animation file to obtain transformation parameters, animation and path in the animation file;

[0081] The linking unit 203 is used to link the text file with the animation file based on the transformation parameters, animation and path to obtain text animation.

[0082] In one embodiment, the linking unit 203 includes:

[0083] A first generating unit is used to use the animation file as a main file, insert the layers in the text file into the animation file, and obtain the text animation;

[0084] The second generating unit is used for, alternatively, performing pre-synthesis processing on the text file, and adding the transformation parameters, animation and path in the animation file to the pre-synthesis to obtain the text animation.

[0085] In one embodiment, the first generating unit includes:

[0086] an attribute setting unit, for creating a first text layer when the text file contains a single combination, and setting layer attributes for the first text layer according to the text file;

[0087] A first adding unit, used for adding the transformation parameters, animation and path in the animation file to the first text layer;

[0088] The first inserting unit is used to insert the first text layer into the animation file in reverse order to obtain the text animation.

[0089] In one embodiment, the first generating unit further includes:

[0090] A first creating unit, configured to obtain the number of combinations in the text file when the text file contains multiple combinations, and create a first combination for the animation file according to the number of combinations in the text file;

[0091] A second adding unit, used for creating the same number of second text layers according to the number of combinations in the text file, and adding the transformation parameters, animations and paths in the animation file to the second text layers;

[0092] A second creation unit, used for inserting the second text layer into the first combination of the animation file, and creating a first pre-synthesis for the original combination in the animation file;

[0093] The first linking unit is used to link the first pre-synthesis to the first combination to obtain the text animation.

[0094] In one embodiment, the first generating unit further includes:

[0095] a third creating unit, configured to obtain the number of combinations in the text file when the text file contains multiple combinations and the animation file contains a mask layer, and create a second combination for the animation file according to the number of combinations in the text file;

[0096] A fourth creation unit, configured to create the same number of third text layers according to the number of combinations in the text file, and link the mask layer in the animation file to the third text layers;

[0097] A second inserting unit, used for inserting the third text layer into the second combination of the animation file, and creating a second pre-synthesis for the original combination in the animation file;

[0098] The second linking unit is used to link the second pre-synthesis to the second combination to obtain the text animation.

[0099] In one embodiment, the second generating unit includes:

[0100] a fifth creation unit, configured to create a third combination in the text file when there is no mask layer in the animation file, and to create a third pre-composition in the third combination having the same number as the text layers in the animation file;

[0101] The third adding unit is used to link the third pre-synthesis to the previous combination of the third combination, and add the transformation parameters, animation and path in the animation file to the third pre-synthesis to obtain the text animation.

[0102] In one embodiment, the second generating unit further includes:

[0103] a sixth creation unit, configured to create a fourth combination in the text file and create a fourth pre-composition in the fourth combination when there is a mask layer in the animation file;

[0104] The third linking unit is used to link the third pre-synthesis to the previous combination of the fourth combination, and link the mask layer in the animation file to the fourth pre-synthesis to obtain the text animation.

[0105] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0106] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: 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, and other media that can store program codes.

[0107] The embodiment of the present invention also provides a computer device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the computer device may also include various network interfaces, power supplies and other components.

[0108] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0109] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A text animation generation method, characterized in that: include: Get text files and animation files; Decomposing the animation file by attributes to obtain transformation parameters, animation and path in the animation file; Based on the transformation parameters, animation and path, the text file is linked with the animation file to obtain the text animation.

2. The text animation generation method according to claim 1, characterized in that: The step of linking the text file with the animation file based on the transformation parameters, animation and path to obtain the text animation comprises: Taking the animation file as the main file, inserting the layers in the text file into the animation file to obtain the text animation; Alternatively, the text file is pre-synthesized, and the transformation parameters, animation and path in the animation file are added to the pre-synthesis to obtain the text animation.

3. The text animation generation method according to claim 2, characterized in that: The method of taking the animation file as the main file and inserting the layers in the text file into the animation file to obtain the text animation includes: When the text file contains a single combination, creating a first text layer, and setting layer properties for the first text layer according to the text file; Adding the transformation parameters, animation and path in the animation file to the first text layer; The first text layer is inserted into the animation file in reverse order to obtain the text animation.

4. The text animation generation method according to claim 2, characterized in that: The method further comprises: taking the animation file as the main file, inserting the layers in the text file into the animation file to obtain the text animation; When the text file contains multiple combinations, obtaining the number of combinations in the text file, and creating a first combination for the animation file according to the number of combinations in the text file; Creating the same number of second text layers according to the number of combinations in the text file, and adding the transformation parameters, animations and paths in the animation file to the second text layers; Inserting the second text layer into the first combination of the animation file, and creating a first pre-composition for the original combination in the animation file; The first pre-synthesis is linked to the first combination to obtain the text animation.

5. The text animation generation method according to claim 4, characterized in that: The method further comprises: taking the animation file as the main file, inserting the layers in the text file into the animation file to obtain the text animation; When the text file contains multiple combinations and the animation file contains a mask layer, obtaining the number of combinations in the text file, and creating a second combination for the animation file according to the number of combinations in the text file; Creating a third text layer with the same number as the number of combinations in the text file, and linking the mask layer in the animation file to the third text layer; Inserting the third text layer into the second combination of the animation file, and creating a second pre-composition for the original combination in the animation file; The second pre-composition is linked to the second combination to obtain the text animation.

6. The text animation generation method according to claim 2, characterized in that: The pre-synthesis processing is performed on the text file, and the transformation parameters, animation and path in the animation file are added to the pre-synthesis to obtain the text animation, including: When there is no mask layer in the animation file, creating a third combination in the text file, and creating a third pre-composition in the third combination with the same number of text layers in the animation file; The third pre-synthesis is linked to the previous combination of the third combination, and the transformation parameters, animation and path in the animation file are added to the third pre-synthesis to obtain the text animation.

7. The text animation generation method according to claim 2, characterized in that: The pre-synthesis processing of the text file and adding the transformation parameters, animation and path in the animation file to the pre-synthesis to obtain the text animation also includes: When the animation file has a mask layer, creating a fourth combination in the text file, and creating a fourth pre-composition in the fourth combination; The third pre-synthesis is linked to the previous combination of the fourth combination, and the mask layer in the animation file is linked to the fourth pre-synthesis to obtain the text animation.

8. A text animation generating device, characterized in that: include: An acquisition unit, used for acquiring text files and animation files; A disassembly unit, used for disassembling the attributes of the animation file to obtain the transformation parameters, animation and path in the animation file; A linking unit is used to link the text file with the animation file based on the transformation parameters, animation and path to obtain text animation.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the text animation generating method as claimed in any one of claims 1 to 7 when executing the computer program.

10. 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 text animation generation method according to any one of claims 1 to 7 is implemented.