A data editing method, device, equipment and storage medium

By loading and analyzing animation graphic data, dynamic editing of animation graphic data on the preview interface is solved, and the problems of low animation effect modification efficiency and poor real-time performance in the existing technology are solved, and the customization and modification efficiency of animation content are improved. .

CN112819926BActive Publication Date: 2024-12-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911053983.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-31
Publication Date
2024-12-17
Estimated Expiration
2040-01-08

AI Technical Summary

Technical Problem

The existing technology is difficult to dynamically edit the animation graphic data that has been exported, resulting in low efficiency in modifying animation effects, and the hierarchical structure and parameter information of the material file cannot be viewed in real time, affecting the real-time nature of dynamic editing.

Method used

Provide a data editing method and device, by loading the graphic and text data to be edited, analyzing the layer, previewing, and receiving layer editing panel expansion instructions on the preview interface, modifying the editable layer, completing dynamic editing, and realizing animations. Dynamic modification of graphic data.

Benefits of technology

On the basis of retaining the original animation effects, dynamic editing of animation graphic data is achieved, which improves the efficiency and real-time nature of animation modification, allows animation designers to directly modify the required parts, and enhances the customization of animation content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112819926B_ABST
    Figure CN112819926B_ABST
Patent Text Reader

Abstract

The present invention provides a data editing method, device, equipment and storage medium; the data editing method comprises: loading graphic data to be edited according to the acquired file loading instruction; performing layer parsing on the graphic data to be edited to obtain at least one editable layer; previewing the graphic data to be edited and presenting the preview result on the preview interface; when a layer editing panel instruction is received on the preview interface, presenting at least one editable layer on the layer editing panel; receiving a layer modification instruction for the preview result on the layer editing panel, and modifying at least one editable layer according to the layer modification instruction to obtain at least one layer to be rendered; rendering and presenting at least one layer to be rendered, and completing the dynamic editing of the graphic data to be edited. Through the present invention, dynamic editing can be performed on animation graphic data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to image processing technology, and in particular to a data editing method, device, equipment and storage medium. Background Art

[0002] Animation effects refer to presenting an image or some elements in an image in a dynamic form, making the content described by the image come alive. Animation effects are widely used. For example, designed animation effects can be applied to short video software and beauty software to make the content shot by users more enjoyable.

[0003] In the related art, animations are usually designed according to animation requirements. After the animation design is completed and the animation graphic data is exported, if the animation effect needs to be modified again, the animation effect needs to be redesigned and the animation graphic data needs to be exported. The degree of realization of dynamic editing of animation graphic data is low. Summary of the invention

[0004] The embodiments of the present invention provide a data editing method, device, equipment and storage medium, which can dynamically edit animation graphic data.

[0005] The technical solution of the embodiment of the present invention is achieved as follows:

[0006] In a first aspect, an embodiment of the present invention provides a data editing method, comprising:

[0007] Load the graphic data to be edited according to the obtained file loading instruction;

[0008] Performing layer analysis on the graphic data to be edited to obtain at least one editable layer; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified;

[0009] Preview the graphic data to be edited, and present the preview result on the preview interface;

[0010] When a layer editing panel expansion instruction is received on the preview interface, presenting the at least one editable layer on the layer editing panel; the layer editing panel is located in a first preset area of ​​the preview interface and does not cover the preview result;

[0011] On the layer editing panel, a layer modification instruction for the preview result is received, and the at least one editable layer is modified according to the layer modification instruction to obtain at least one layer to be rendered; the layer to be rendered represents a layer to be rendered;

[0012] The at least one layer to be rendered is rendered and presented, and dynamic editing of the graphic data to be edited is completed.

[0013] In a second aspect, an embodiment of the present invention provides a data editing device, comprising:

[0014] An acquisition module, used for loading the graphic data to be edited according to the acquired file loading instruction;

[0015] A parsing module, used for performing layer parsing on the graphic data to be edited to obtain at least one editable layer; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified;

[0016] A processing module is used to preview the graphic data to be edited and present the preview result on the preview interface; when a layer editing panel instruction is received on the preview interface, the at least one editable layer is presented on the layer editing panel; the layer editing panel is located in a first preset area in the preview interface and does not cover the preview result; on the layer editing panel, a layer modification instruction for the preview result is received, and the at least one editable layer is modified according to the layer modification instruction to obtain at least one layer to be rendered; the layer to be rendered represents a layer that needs to be rendered; the at least one layer to be rendered is rendered and presented to complete the dynamic editing of the graphic data to be edited.

[0017] In a third aspect, an embodiment of the present invention provides a data editing device, including:

[0018] A memory for storing executable data editing instructions;

[0019] The processor is used to implement the data editing method provided by the embodiment of the present invention when executing the executable data editing instruction stored in the memory.

[0020] In a fourth aspect, an embodiment of the present invention provides a storage medium storing executable data editing instructions for causing a processor to execute and implement the data editing method provided by the embodiment of the present invention.

[0021] The embodiments of the present invention have the following beneficial effects:

[0022] The dynamic editing device can parse the loaded graphic data to be edited, obtain at least one editable layer from the graphic data to be edited, and then preview the graphic data to be edited, and present the preview result on the preview interface. After that, the dynamic editing device can expand the layer editing panel according to the received layer editing panel expansion instruction, and present at least one editable layer on the layer editing panel, and then receive the layer modification instruction for the preview result on the layer editing panel, and then modify the layer to be modified in at least one editable layer according to the layer modification instruction, and obtain at least one layer to be rendered, and finally render and present at least one layer to be rendered, and complete the dynamic editing of the graphic data to be edited. In this way, the dynamic editing device can continue to directly modify the part that needs to be modified according to the preview result on the basis of the exported animation graphic data, so that the animation graphic data can be dynamically edited on the basis of retaining the animation effect of the original animation graphic data. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of an optional application mode of the data editing method in the animation design scene provided by an embodiment of the present invention;

[0024] Figure 2 is an optional structural diagram of a data editing device provided in an embodiment of the present invention;

[0025] Figure 3 This is an optional process diagram of the data editing method provided by the embodiment of the present invention. Figure 1 ;

[0026] Figure 4 is a schematic diagram of loading and editing graphic data provided by an embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of a preview result provided by an embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of a layer editing panel provided by an embodiment of the present invention;

[0029] Figure 7 This is an optional process diagram of the data editing method provided by the embodiment of the present invention. Figure 2 ;

[0030] FIG. 8( a ) is a schematic diagram of a process of replacing an editable layer provided by an embodiment of the present invention. Figure 1 ;

[0031] FIG8( b ) is a schematic diagram of a process of replacing an editable layer provided by an embodiment of the present invention. Figure 2 ;

[0032] Fig. 9 is a schematic diagram of obtaining text information and attribute information provided by an embodiment of the present invention;

[0033] Fig.10 is a schematic diagram of hierarchical structure information provided by an embodiment of the present invention;

[0034] Fig.11 is a schematic diagram of performance parameters and preset performance thresholds provided by an embodiment of the present invention;

[0035] Fig.12 is a schematic diagram of a process for tuning performance parameters provided by an embodiment of the present invention;

[0036] Fig.13 It is a schematic diagram of a process for modifying an animation effect in an actual application scenario provided by an embodiment of the present invention;

[0037] Fig.14 It is a schematic diagram of the process of displaying the hierarchical structure of a PAG file in an actual application scenario provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.

[0039] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0040] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0042] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0043] 1) Portable Animated Graphics (PAG) is a cross-platform animation rendering library that can render designed animation files on different operating systems.

[0044] 2) PAG file, an expandable native binary file, is a file that stores images, texts, effects and other resources in animation effects. It uses dynamic bit storage technology with extremely high compression rate.

[0045] 3) Dynamic editing means that under the premise of retaining the animation effect, the text content and text effects, such as text color, text size, font style, etc., can be dynamically modified, as well as pictures, etc., to achieve a rich variety of animation content customization effects and special effects video solutions.

[0046] 4) Graphics and video processing software, used to design animation effects and export animation effects to generate PAG files, such as AE software.

[0047] 5) Layer detection interface, which is used to detect the editable layers in the animation, such as text layers and image layers, and can output the layer numbers and the editable layers obtained through detection.

[0048] Animation effects refer to presenting an image or some elements in an image in a dynamic form, making the content described by the image vivid. Designed animation effects are widely used in short video production software or beauty camera software, allowing users to add designed animation effects to the content they shoot, making their content more enjoyable.

[0049] In the related art, the animation effect is designed according to the animation requirements using graphic video processing software. After completing the design of the animation effect and exporting the animation graphic data, if the designer wants to modify the animation effect again, he needs to first use the animation playback software to play the animation, determine the part that needs to be modified, and then use the graphic video software again to design the animation from scratch and export new animation graphic data. At the same time, in the related art, the parameter information of the material file of the animation effect cannot be viewed in real time. If the designer wants to view the hierarchical structure and parameter information of the material file, he can only view it by writing code, debugging through breakpoints, or printing logs.

[0050] Using the above method, it is impossible to dynamically modify the animation effect on the animation graphic data exported by the graphic video software, that is, the degree of realization of dynamic editing of the animation graphic data is low. At the same time, using the above method, it is impossible to directly view the hierarchical structure and parameter information of the material file, which causes inconvenience to the dynamic editing of the animation graphic data, and further affects the real-time performance of the dynamic editing of the animation graphic data.

[0051] The data editing method, device, equipment and storage medium proposed in the embodiment of the present invention can dynamically edit the animated graphic data. The following describes an exemplary application of the data editing device provided by the embodiment of the present invention. The data editing device provided by the embodiment of the present invention can be implemented as various types of user terminals such as tablet computers and laptop computers, and can also be implemented as a server. The following describes an exemplary application when the data editing device is implemented as a terminal.

[0052] See also Figure 1 , Figure 1 It is a schematic diagram of an optional application mode of the data editing method in the animation design scene 100 provided in an embodiment of the present invention, which is suitable for some application models that rely on the terminal 200 to realize the animation design scene 100, for example, realizing the animation design scene 100 through terminal devices such as laptops.

[0053] In the animation design scene 100, the animation designer first designs the animation effect according to the animation requirements through the terminal 200, generates the animation scheme 300 after the design is completed, and exports the animation scheme 300 and stores it in the storage space of the terminal 200. When the animation designer needs to modify the animation scheme 300, the animation scheme 300 will be loaded into the memory from the storage space of the terminal 200, and then the animation scheme 300 will be layer parsed to obtain several editable layers from the animation scheme 300, that is, at least one editable layer will be obtained. Then, the terminal 200 will render all the layers in the animation scheme 300 and present them on the preview interface to obtain the preview result, so that the animation designer can preview the animation scheme 300 through the terminal 200. Afterwards, the animation designer can send a layer editing panel expansion instruction to the terminal 200 on the preview interface of the animation scheme 300 through an external device such as a mouse or keyboard. When the terminal 200 receives the layer editing panel expansion instruction, at least one editable layer in the animation scheme 300 is displayed on the layer editing panel, and then the layer editing panel receives the layer modification instruction of the animation designer for the preview result. Afterwards, the terminal 200 determines the layer to be modified from at least one editable layer in the animation scheme 300 according to the layer modification instruction, and then modifies the text, image, playback effect, and even the hierarchical relationship and playback order of each layer of the layer to be modified to obtain the modified at least one layer to be rendered. Finally, these layers to be rendered are rendered, and the animation scheme 400 is composed of the layers that have not been modified and have been rendered in the preview according to the original layer order, and the animation scheme 400 is played to complete the dynamic editing of the animation scheme 300.

[0054] See also Figure 2 , Figure 2 is an optional structural diagram of a data editing device 500 provided in an embodiment of the present invention, Figure 2 The data editing device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the terminal 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not shown in FIG. Figure 2 Various buses are labeled as bus system 540 .

[0055] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0056] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0057] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiment of the present invention is intended to include any suitable type of memory. The memory 550 optionally includes one or more storage devices that are physically far away from the processor 510.

[0058] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0059] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0060] A network communication module 552, for reaching other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);

[0061] a display module 553 for enabling presentation of information via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);

[0062] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.

[0063] In some embodiments, the data editing device provided by the embodiments of the present invention can be implemented in a software manner. Figure 2 A data editing device 555 stored in a memory 550 is shown, which may be software in the form of a program and a plug-in, etc., and includes the following software modules: an acquisition module 5551, a parsing module 5552 and a processing module 5553, and the functions of each module will be described below.

[0064] In other embodiments, the data editing device provided by the embodiment of the present invention can be implemented in hardware. As an example, the data editing device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the data editing method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0065] Exemplarily, an embodiment of the present invention provides a data editing device, including:

[0066] A memory for storing executable data editing instructions;

[0067] The processor is used to implement the data editing method provided by the embodiment of the present invention when executing the executable data editing instruction stored in the memory.

[0068] The data editing method provided by the embodiment of the present invention will be described in conjunction with the exemplary application and implementation of the terminal provided by the embodiment of the present invention.

[0069] See also Figure 3 , Figure 3 FIG. 1 is an optional flow chart of a data editing method provided by an embodiment of the present invention. The data editing method provided by an embodiment of the present invention may include:

[0070] S101. Load a file to be edited according to an acquired file loading instruction.

[0071] The embodiment of the present invention is implemented in the scenario of dynamically editing the designed animation graphic data. When performing dynamic editing, the data editing device will first obtain a file loading instruction, which specifies the animation graphic data that needs to be dynamically edited, that is, specifies the graphic data to be edited. According to the obtained file loading instruction, the data editing device can read the graphic data to be edited from the storage area of ​​the data editing device and load the graphic data to be edited into the memory of the data editing device.

[0072] In the embodiment of the present invention, the file loading instruction carries the storage path of the graphic data to be edited and the identification information of the graphic data to be edited, so that the data editing device can accurately find the graphic data to be edited through the file loading instruction.

[0073] It is understandable that the identification information of the graphic data to be edited may include the file name, file type, etc. of the graphic data to be edited. Of course, the identification information of the graphic data to be edited may also include other types of information, which is not limited in the embodiment of the present invention.

[0074] It should be noted that the file loading instruction is generated by the data editing device according to the storage path, name, file type, etc. of the animation graphic data to be modified specified by the animation designer. For example, when the animation designer specifies that the file stored in the D disk, named animation prototype 1, and file type PAG is the animation graphic data to be modified, the data editing device can generate the file loading instruction according to the contents of the D disk, prototype file 1, PAG, etc.

[0075] It should be noted that the graphic data to be edited contains all the elements required to complete an animation effect, such as picture information, text information, picture effects, text effects, number of layers, order of layers, total duration of animation effects, duration of each layer, etc. In addition, the graphic data to be edited may also contain other information, such as descriptive information on the elements required to complete the animation effect, etc., which is not limited in the embodiment of the present invention.

[0076] It can be understood that the graphic data to be loaded can be the animation graphic data designed and exported by the data editing device according to the animation design requirements through graphic video processing software, such as AE software, before obtaining the file loading instruction, or it can be the animation graphic data obtained by the data editing device from other devices or terminals by copying, downloading, etc. The embodiments of the present invention are not limited here.

[0077] In some embodiments of the present invention, the graphic data to be edited may be stored in a storage area as a binary file, for example, as a PAG file, or may be stored in other forms of files, which are not specifically limited in the embodiments of the present invention.

[0078] Exemplarily, the embodiment of the present invention provides a schematic diagram of loading graphic data to be edited, such as Figure 4 As shown, when the animation designer needs to modify the animation prototype 1 stored in the D disk through the data editing device, he can use an external device, such as a mouse, in the area 1 of the file loading floating window presented by the data editing device, from the local disk (C:), local disk (D:) and local disk (E:) in the computer drop-down menu, click to select the local disk (D:), then, in the area 2 of the file loading floating window, the names and types of all the files in the local disk (D:) will be displayed, at this time, the animation designer continues to click the line where the animation prototype 1 PAG is located through the external device, at this time, the data editing device will generate a file loading instruction according to the file specified by the animation designer through the above series of selection operations, wherein the file loading instruction has the storage path (D:\) of the animation prototype 1, identification information (animation prototype 1, PAG), etc., then, the data editing device will obtain the animation prototype 1 from the D disk according to the file loading instruction, and then decode the animation prototype 1 and load it into the memory of the data editing device. In this way, the data editing device completes the loading of the graphic data to be edited.

[0079] S102 , performing layer analysis on the graphic data to be edited to obtain at least one editable layer; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified.

[0080] After completing the loading of the graphic data to be edited, the data editing device will perform layer analysis on the graphic data to be edited, and extract the layers that are allowed to be modified from all the layers of the graphic data to be edited to obtain at least one editable layer.

[0081] It is understandable that the editable layer may be a text layer, an image layer, or other types of layers, which is not specifically limited in the embodiment of the present invention.

[0082] In some embodiments of the present invention, the text layer includes text information that needs to be displayed in the animation effect, and the effects of the text information, such as font, text size, text color, etc., and may also include other content related to the text information, which is not limited in the embodiments of the present invention. Similarly, the image layer includes image information that needs to be displayed in the animation effect, and the effects of the image information, such as image size, display duration, etc., and may also include other content related to the image information, which is not limited in the embodiments of the present invention.

[0083] S103: Preview the graphic and text data to be edited, and present the preview result on the preview interface.

[0084] After completing the layer analysis of the graphic data to be edited, the data editing device will render the animation effects in the graphic data to be edited, and present the rendered animation effects on the preview interface as a preview result, so that the animation effects in the graphic data to be edited can be played, which is convenient for subsequent modification of the graphic data to be edited according to the preview result.

[0085] It should be noted that in the embodiment of the present invention, when the data editing device previews the graphic data to be edited, it renders all layers in the graphic data to be edited and caches the rendered layers for subsequent use of these rendered layers.

[0086] Illustratively, the embodiment of the present invention provides a schematic diagram of preview results, such as Figure 5 As shown, the data editing device renders the animation effect of "opening a treasure box" in the graphic data to be edited, and then presents the rendered animation effect of "opening a treasure box" in the preview interface to obtain a preview result. In the animation effect of "opening a treasure box", after the treasure box is opened, a flashing area and gold coins appear, and after the gold coins appear, the words "18 gold coins" are displayed below the treasure box, describing the process of opening the treasure box to obtain 18 gold coins.

[0087] S104. When a layer editing panel expansion instruction is received on the preview interface, at least one editable layer is presented on the layer editing panel; the layer editing panel is located in a first preset area in the preview interface and does not cover the preview result.

[0088] When the data editing device receives a layer editing panel expansion instruction issued by an animation designer on the preview interface, it will expand the layer editing panel according to the received layer editing panel expansion instruction, and then present at least one editable layer on the layer editing panel to facilitate the animation designer to perform modification operations on the layer editing panel.

[0089] It should be noted that in the embodiment of the present invention, the layer editing panel is set in the first preset area in the preview interface, and the layer editing panel does not cover the preview result. The first preset area can be set according to actual needs, and the embodiment of the present invention is not limited here.

[0090] It can be understood that in some embodiments of the present invention, the data editing device can receive the layer editing panel expansion instruction through external devices such as a mouse, keyboard, etc., and can also receive the layer editing panel expansion instruction through other methods, which is not limited in the embodiments of the present invention.

[0091] It should be noted that, on the layer editing panel, the data editing device can display the layer serial number of the editable layer and the layer content of the editable layer in correspondence in the form of rows, or can allocate different display areas to the layer serial number of each editable layer and the layer content of each editable layer. When the layer serial number is clicked, the corresponding layer content is displayed. The editable layer can also be displayed in other forms, which is not specifically limited in the embodiments of the present invention.

[0092] For example, see Figure 6 , an embodiment of the present invention provides a schematic diagram of a layer editing panel, in Figure 6 In the data editing device, the preview interface is divided into two areas, namely display area 1 and display area 2, and display area 1 is used as the first preset area to present the layer editing panel 3, and the preview result is displayed in display area 2. In the layer editing panel 3, the data editing device displays the layer sequence number and layer content of the editable layer in the form of rows. In the upper part 4 of the layer editing panel, the image layer in at least one editable layer is displayed, and in the lower part 5 of the layer editing panel, the text layer in at least one editable layer is displayed. Taking the "opening treasure chest" animation effect as an example, in the upper part of the layer editing panel, the image layer with the "opening treasure chest" animation effect is displayed, namely layer 1 to layer 8. Layers 1 to layer 8 respectively contain all the pictures that need to be displayed for the "opening treasure chest" animation effect, that is, starting from the pictures in layer 8, the pictures in each layer are displayed one by one until the pictures in layer 1 are also displayed. In the lower part of the layer editing panel, a text layer with an animation effect of "opening a treasure chest" is displayed, namely, layer 0, which contains the text information "18 gold coins" required for the animation effect of "opening a treasure chest". In this way, the data editing device completes the process of presenting the editable layer on the layer editing panel.

[0093] S105. On the layer editing panel, a layer modification instruction for the preview result is received, and at least one editable layer is modified according to the layer modification instruction to obtain at least one layer to be rendered; the layer to be rendered represents a layer that needs to be rendered.

[0094] After the data editing device finishes presenting the preview result, it can receive the layer modification instruction of the animation designer for the preview result on the layer editing panel, and then modify the content of at least one editable layer according to the received layer modification instruction. Since the modified layer needs to be rendered again, after modifying the layers that need to be modified, the data editing device can obtain at least one layer to be rendered.

[0095] It should be noted that, since all layers in the graphic data to be edited have been rendered when previewing the graphic data to be edited, the data editing device can directly obtain and use the unmodified layers from the cache, while the data editing device needs to render the modified layers before using them. Therefore, the data editing device will determine the modified layers as the layers to be rendered, and obtain at least one layer to be rendered.

[0096] In some embodiments of the present invention, the data editing device can receive layer modification instructions through preset virtual buttons on the layer editing panel. For example, the layer modification instructions issued by the animator can be received through the "Replace" button on the layer editing panel. Of course, the layer modification instructions can also be received in other ways, which are not limited to the embodiments of the present invention.

[0097] It is understandable that when the data editing device modifies the editable layer, it may be to modify the text information and text effects of the editable layer, or it may be to modify the image information and image effects of the editable layer, or it may be to modify the layer sequence and layer duration of the editable layer, etc., and the embodiments of the present invention are not specifically limited here.

[0098] S106: Render and present at least one layer to be rendered, and complete the dynamic editing of the graphic data to be edited.

[0099] After obtaining at least one layer to be rendered, the data editing device will render each layer in the at least one layer to be rendered, obtain the effect layer corresponding to each layer in the at least one layer to be rendered, and then present these effect layers and the cached unmodified layers in order. In this way, the dynamically edited animation effects can be played in real time to complete the dynamic editing process of the graphic data to be edited.

[0100] It can be understood that the data editing device plays the dynamic editing animation effects in real time, which can facilitate the animation designers to promptly check whether the dynamic editing animation effects meet the requirements. If the animation effect meets the requirements, the data editing device can save or export the animation effect so that the animation effect that meets the requirements can be saved in time. If the animation effect does not meet the requirements, the animation effect presented this time can continue to be used as a preview result, and the data editing device can continue to receive layer modification instructions on the layer editing panel for the preview result to continue to modify the animation effect.

[0101] It should be noted that when presenting each layer, the data editing device will call the system display component in the operating system, then pass each layer to the system display component, and present each layer through the system display component.

[0102] In an embodiment of the present invention, a data editing device can parse the loaded graphic data to be edited, obtain at least one editable layer from the graphic data to be edited, and then preview the graphic data to be edited, and present the preview result on the preview interface. After that, the dynamic editing device can expand the layer editing panel according to the received layer editing panel expansion instruction, and present at least one editable layer on the layer editing panel, and then receive the layer modification instruction for the preview result on the layer editing panel, and then modify the layer to be modified in at least one editable layer according to the layer modification instruction, and obtain at least one layer to be rendered, and finally render and present at least one layer to be rendered, and complete the dynamic editing of the graphic data to be edited. In this way, the dynamic editing device can continue to directly modify the part that needs to be modified according to the preview result on the basis of the exported animation graphic data, so that the animation graphic data can be dynamically edited on the basis of retaining the animation effect of the original animation graphic data.

[0103] In some embodiments of the present invention, the specific implementation process of performing layer parsing on the graphic data to be edited to obtain at least one editable layer, that is, S102, may include: S1021-S1023, as follows:

[0104] S1021. Perform layer analysis on the graphic data to be edited to obtain a full layer.

[0105] When the data editing device performs layer analysis on the graphic data to be edited, it first decomposes the graphic data to be edited layer by layer, and uses all the layers obtained by the decomposition as the full amount layers.

[0106] It should be noted that the graphic data to be edited not only includes all the layers that make up the animation effect, that is, the full layers, but also includes other elements or information required to complete the animation effect. When the data editing device performs layer analysis on the file to be edited, it extracts the full layers and the elements or information related to the full layers.

[0107] It can be understood that the full amount of layers refers to the collective term for all layers that make up the animation effect, not specifically one or more layers.

[0108] S1022. Determine the layer type for all layers using a layer detection interface.

[0109] After obtaining the full amount of layers, the data editing device will use the layer detection interface to perform layer type detection on the full amount of layers one by one to obtain the layer type of each layer in the full amount of layers, so as to obtain the editable layers according to the layer type later.

[0110] It should be noted that each layer in the full set of layers will have layer identification information. The layer identification information is generated when the layer is created. The layer identification information not only includes the layer number, but also indicates the layer type, for example, whether the layer is a text layer, an image layer, or other types of layers.

[0111] It is understandable that the layer detection interface can determine the layer type by reading the identification information of each layer in the full layer.

[0112] In the embodiment of the present invention, the layer detection interface may include a text layer detection interface, an image layer detection interface, and may also include detection interfaces corresponding to other editable layers, which is not specifically limited in the embodiment of the present invention.

[0113] S1023. Detect at least one editable layer from all layers according to the layer type; wherein the number of editable layers is less than or equal to the number of all layers.

[0114] After the data editing device uses the layer detection interface to determine the layer type of the full layer, it can filter out text layers, image layers, and other editable layers from the full layer according to the layer type as editable layers. In this way, the data editing device can detect at least one editable layer.

[0115] It is understandable that, since there may be non-editable layers in the full amount of layers, the number of editable layers is less than or equal to the number of full amount of layers.

[0116] It should be noted that, in some embodiments of the present invention, when the data editing device detects at least one editable layer, it will output the layer serial number of the editable layer to make it clear which layers are editable layers.

[0117] In an embodiment of the present invention, the data editing device can decompose the graphic data to be edited according to layers to obtain a full amount of layers, and then use the layer detection interface to determine the layer type for the full amount of layers, and then determine the editable layers based on the layer type to obtain at least one editable layer. In this way, the data editing device can clearly identify which layers are editable, which is convenient for subsequent modification of the editable layers.

[0118] In some embodiments of the present invention, see Figure 7 , on the layer editing panel, receiving a layer modification instruction for the preview result, and modifying at least one editable layer according to the layer modification instruction to obtain at least one layer to be rendered, that is, the specific implementation process of S105 may include: S1051-S1053, as follows:

[0119] S1051. On the layer editing panel, receiving a layer modification instruction for the preview result.

[0120] The data editing device receives the layer modification instruction triggered by the animation designer for the preview result on the layer editing panel, so as to modify the editable layer according to the layer modification instruction later.

[0121] It should be noted that the data editing device can receive the layer modification instruction through the preset virtual buttons set on the layer editing panel, such as the "Edit" and "Replace" buttons. In some embodiments of the present invention, the data editing device can set a preset virtual button on the layer editing panel to receive the layer modification instruction, or set a preset virtual button on the layer editing panel for each layer of at least one editable layer to receive the layer modification instruction, or other methods can be adopted to receive the layer modification instruction, which is not limited in the embodiments of the present invention.

[0122] S1052. According to the layer modification instruction, an edit box is popped up, and at least one editable layer is modified in the edit box to obtain at least one modified layer; wherein the number of modified layers is less than or equal to the number of editable layers.

[0123] After receiving the layer modification instruction, the data editing device will first pop up an editing box on the preview interface, receive the animation designer's modification operation in the editing box, modify at least one editable layer, and obtain the modified layer. Since there may be more than one layer that needs to be modified, the data editing device can obtain at least one modified layer.

[0124] It should be noted that in actual animation design, there are situations where only part of at least one editable layer needs to be modified, and there are situations where all layers in at least one editable layer need to be modified. Therefore, the number of modified layers is less than or equal to the number of editable layers.

[0125] In an embodiment of the present invention, when the data editing device modifies at least one editable layer, the data editing device may copy the editable layer to obtain a copy of the editable layer, and then make modifications on the copy of the editable layer. In this way, the data editing device can simultaneously save the editable layer before the modification and the modified layer, so as to roll back to the original animation effect when undoing the dynamic modification.

[0126] S1053: Use the at least one modified layer to correspondingly replace a layer in the at least one editable layer to obtain at least one layer to be rendered; wherein the number of the layers to be rendered is the same as the number of the modified layers.

[0127] After obtaining at least one modified layer, the data editing device will determine which copy of the editable layer each modified layer in the at least one modified layer is modified by, that is, determine the corresponding editable layer for the modified layer. Afterwards, the data editing device will replace the corresponding editable layer with the modified layer, that is, add the modified layer to the layer sequence, remove the corresponding editable layer from the layer sequence, and use the unrendered layer in the layer sequence as the layer to be rendered. In this way, at least one layer to be rendered can be obtained.

[0128] In the embodiment of the present invention, since the layers to be rendered are the layers that have not been rendered in the layer sequence, and in the layer sequence, only the modified layers have not been rendered, and the other unmodified layers have been rendered during the preview, the number of layers to be rendered and the number of modified layers should be the same.

[0129] It can be understood that a layer sequence refers to a sequence of all layers that need to be presented in sequence when playing an animation effect.

[0130] It should be noted that, since the modified layer is obtained by modifying the copy of the editable layer, the modified layer can be regarded as a modified copy of the editable layer. At this time, the layer sequence number of the modified layer can be written as "editable layer X-modified copy". When the data editing device replaces the editable layer with the modified layer, it can be regarded as assigning the layer sequence number "editable layer X" of the editable layer to the modified layer, that is, changing the modified layer sequence number "editable layer X-modified copy" to the layer sequence number of the editable layer, and changing the layer sequence number of the editable layer to "editable layer X-original copy". In this way, the layer sequence number format in the layer sequence can be made consistent, which is convenient for the subsequent presentation of animation effects.

[0131] Exemplarily, the embodiment of the present invention provides a schematic diagram of the process of replacing an editable layer. When layer 3 needs to be modified, as shown in FIG8(a), the data editing device copies layer 3 to obtain a copy of layer 3, which is recorded as "3-copy", and then modifies layer 3-copy to obtain a modified layer 3, and records the modified layer 3 as "3-modified copy". Afterwards, the data editing device modifies the layer sequence number of the modified layer 3 to "3", and at the same time, as shown in FIG8(b), modifies the layer sequence number "3" of layer 3 to "3-original copy".

[0132] In an embodiment of the present invention, a data editing device receives a layer modification instruction from an animation designer for a preview result on a layer editing panel, and responds to the layer modification instruction by popping up an editing box, and then modifies at least one editable layer in the editing box to obtain at least one modified layer, and then uses the at least one modified layer to replace at least one editable layer in the layer sequence accordingly to obtain at least one to-be-rendered layer that needs to be rendered. In this way, the data editing device can dynamically modify the graphic data to be edited according to the previewed animation effect.

[0133] In some embodiments of the present invention, according to the layer modification instruction, an edit box is popped up, at least one editable layer is modified in the edit box, and at least one modified layer is obtained, that is, the specific implementation process of S1052 may include: S1052a-S1052b, as follows:

[0134] S1052a. According to the layer modification instruction, an edit box pops up in the preview interface, and at least one layer to be modified is determined from at least one editable layer through the edit box; the number of layers to be modified is less than or equal to the number of editable layers; wherein the edit box is superimposed on the preview interface.

[0135] After receiving the layer modification instruction, the data editing device will first pop up an editing box in the preview interface, and then receive the animation editor's modification operation on a layer in at least one editable layer through the editing box, and determine the layer as the layer to be modified. In this way, the dynamic editing device can determine at least one layer to be modified.

[0136] It should be noted that, in some embodiments of the present invention, when only one preset virtual button is provided in the layer editing panel, the data editing device may provide a layer selection option in the edit box that pops up in the preview interface according to the layer modification instruction, so as to facilitate the selection of at least one layer to be modified from at least one editable layer; when a preset virtual button is provided for each editable layer in at least one editable layer in the layer editing panel, since the editable layers correspond one-to-one to the preset virtual buttons, the data editing device directly selects the layer corresponding to a preset virtual button as the layer to be modified in the edit box that pops up in the preview interface according to the layer modification instruction corresponding to the preset virtual button, thereby obtaining at least one layer to be modified.

[0137] It can be understood that, since the layers to be modified are determined from the editable layers, the number of the layers to be modified is less than or equal to the number of the editable layers.

[0138] S1052b. Modify each to-be-modified layer according to the layer type of each to-be-modified layer in the at least one to-be-modified layer to obtain at least one modified layer.

[0139] After determining at least one layer to be modified, the data editing device can first obtain the layer type of each layer to be modified in the at least one layer to be modified, and modify the layer to be modified according to the layer type of each layer to be modified and the corresponding modification method of each layer to be modified, so as to obtain at least one modified layer.

[0140] It can be understood that in the embodiment of the present invention, since the data editing device has used the layer detection interface to determine the layer type for all layers decomposed from the graphic data to be edited, the data editing device can directly obtain the layer type of each layer to be modified.

[0141] In an embodiment of the present invention, the data editing device can first determine at least one layer to be modified from at least one editable layer based on the received layer modification instruction by responding to an edit box that pops up due to the layer modification instruction, and then modify the layer to be modified based on the layer type of each layer to be modified of the at least one layer to be modified. In this way, the data editing device can modify the layer that needs to be modified in the editable layers according to the layer modification instruction.

[0142] In some embodiments of the present invention, the layer to be modified includes a text layer, and the edit box includes a text edit box; according to the layer type of each layer to be modified in at least one layer to be modified, each layer to be modified is modified to obtain at least one modified layer, that is, the specific implementation process of S1052b may include: S201-S202, as follows:

[0143] S201. In a text edit box, obtain text information and attribute information.

[0144] When the layer to be modified includes a text layer, the editing box will correspondingly include a text editing box. At this time, the data editing device will obtain the modification operation performed by the animation designer in the text editing box, and obtain the text information and attribute information from the modification operation.

[0145] It can be understood that the text information refers to the text that needs to appear in the animation effect, and the attribute information refers to the effect of the text that appears, that is, the font, text size, text color, etc.

[0146] It should be noted that the data editing device can receive text input by the animation designer as text information through an external device, such as a keyboard. The data editing device can receive attribute information selected by the animation designer in a preset attribute information library displayed on the layer editing panel through an external device, such as a mouse, and can also receive attribute information designed by the animation designer through an external device, which is not limited in this embodiment of the present invention.

[0147] For example, see Fig. 9 The embodiment of the present invention provides a schematic diagram for obtaining text information and attribute information. Fig. 9In the layer editing panel, the serial number and image of each layer from layer 1 to layer 8 are displayed (the images of some layers are blocked by the text editing box), and after the image of each layer, there are options of Replace 1 and Reset 2. At the same time, the text "18 gold coins" in layer 0 is also displayed, and two operation options of Edit 3 and Reset 2 are set after the text information. If the animation designer needs to modify layer 0, that is, the text layer, at this time, the animation designer clicks the Edit 3 option after the text information, and the data editing device will pop up a text editing box. In the text editing box, the layer name: 18 gold coins is displayed, so that the animation designer can check whether the layer is to be modified. In the text editing box, there are options of Bold 01 and Italic 02, so that the animation designer can check the effect of the text information. Select; below the italic 02 option, there is a font color 03 drop-down menu, so that you can choose the color of the text information in this menu; below the font color 03, there are font 04 options and font size 05 options, so that you can choose the font and size of the text information when it is presented; below the font size 05 option, there are stroke color 06 and stroke width 07 options, through these two options, you can set the stroke of the text information; in the text editing box, there is also a text input box 08, so that you can modify the content of the text information here; finally, at the bottom of the text editing box, there are confirmation 09 buttons and cancel 10 buttons, so that animation designers can choose to confirm and save this text modification through the confirmation 09 button, or cancel this text modification through the cancel 10 button. In the embodiment of the present invention, the content of the text information of layer 0 after modification by the animation designer is "18 gold coins", that is, the content in the text input box 08 is "18 gold coins", the selected font color 03 is yellow, the font 04 is PingFang SC, the font size 05 is 36, the stroke color 06 is black, and the stroke width 07 is 0, that is, the text information is not stroked. Finally, click the confirmation button 09. After receiving the above-mentioned modified content, the data editing device can obtain the text information and attribute information for layer 0 according to the above-mentioned content.

[0148] S202: Modify the text layer using the text information and the attribute information to obtain at least one modified layer.

[0149] After obtaining the text information and attribute information, the data editing device will use the obtained text information and attribute information to replace and modify the original text information and attribute information in the text layer to be modified. In this way, the data editing device will obtain at least one modified layer.

[0150] In an embodiment of the present invention, the data editing device can obtain text information and attribute information through a text editing box, and then modify at least one text layer in the layer to be modified according to the obtained text information and attribute information to obtain at least one modified layer.

[0151] In some embodiments of the present invention, the layer to be modified includes an image layer, and the edit box includes an image replacement box; each layer to be modified is modified according to the layer type of each layer to be modified in at least one layer to be modified to obtain at least one modified layer, that is, the specific implementation process of S1052b may include: S203-S204, as follows:

[0152] S203: In the image replacement frame, obtain a replacement image.

[0153] When the layer to be modified is an image layer, the data editing device mostly needs to replace the image content in the image layer. At this time, the editing box will correspondingly include an image replacement box, and the data editing device will obtain the replacement image through the image replacement box to facilitate subsequent modifications to the image layer.

[0154] It is understandable that when the data editing device obtains the replacement image in the image replacement box, it can obtain the replacement image according to the path specified by the animation designer in the image replacement box, or it can obtain the replacement image in other ways. The embodiment of the present invention does not make specific limitations here.

[0155] S204: Modify the image layer using the replacement image to obtain at least one modified layer.

[0156] After acquiring the replacement image, the data editing device will use the obtained replacement image to replace the original image content in the image layer to be modified. In this way, the data editing device will obtain at least one modified layer.

[0157] In the embodiment of the present invention, the data editing device can obtain the replacement image through the image replacement frame, and then modify the image layer in at least one layer to be modified according to the obtained replacement image to obtain at least one modified layer.

[0158] In some embodiments of the present invention, when a layer editing panel expansion instruction is received on the preview interface, at least one editable layer is presented on the layer editing panel, that is, the specific implementation process of S104 may include: S1041-S1043, as follows:

[0159] S1041. In response to receiving a layer editing panel expansion instruction on the preview interface, obtain a layer sequence number of at least one editable layer through a layer detection interface.

[0160] When the data editing device receives the layer editing panel instruction triggered by the animation designer on the preview interface, it will obtain the layer serial number of each editable layer in at least one editable layer one by one through the layer detection interface. The layer serial number refers to the number generated for the layer when the layer is created.

[0161] S1042: Acquire at least one editable layer according to the layer sequence number of the at least one editable layer.

[0162] After obtaining the layer serial number of at least one editable layer, the data editing device can index at least one editable layer according to the layer serial number of each layer in the at least one editable layer, and then read the layer content of these editable layers to facilitate the subsequent display of the layer content.

[0163] It can be understood that layer content refers to the elements contained in each layer to achieve animation effects, such as images, texts, etc.

[0164] S1043. Call the system display component to display at least one editable layer on the layer editing panel.

[0165] After obtaining the layer content of at least one editable layer, the data editing device can call the system display component, and then pass the layer content of at least one editable layer to the system display component, and present the layer content of at least one editable layer on the layer editing panel through the system display component. In this way, the data editing device can display at least one editable layer on the layer editing panel.

[0166] In an embodiment of the present invention, when the data editing device receives a layer editing panel expansion instruction, it uses a layer detection interface to obtain the layer serial number of at least one editable layer, and then reads the layer content of at least one editable layer based on the obtained layer serial number of the at least one editable layer, and finally presents the obtained layer content of the at least one editable layer by calling the system display component. In this way, the data editing device can present at least one editable layer on the layer editing panel according to the layer editing panel expansion instruction.

[0167] In some embodiments of the present invention, previewing the graphic data to be edited and presenting the preview result on the preview interface, that is, a specific implementation of S103, may include: S1031-S1032, as follows:

[0168] S1031. Render the full layer to obtain a rendered full layer; the full layer is obtained by performing layer analysis on the graphic data to be edited.

[0169] When previewing the graphic data to be edited, the data editing device renders the full layers obtained by parsing the graphic data to be edited one by one to obtain the rendered full layers, so as to facilitate the subsequent presentation of the rendered full layers.

[0170] S1032: Call the system display component to present the rendered full layers in order on the preview interface to obtain a preview result.

[0171] After obtaining the rendered full layer, the data editing device will first call the system display component, then pass the rendered full layer to the system display component, and finally present the rendered full layer one by one in order on the preview interface through the system display component. In this way, the data editing device can play the animation effects in the graphic data to be edited and complete the preview of the graphic data to be edited.

[0172] It should be noted that when the data editing device presents the rendered full layer, it will call the system display component according to the layer type of the full layer. Specifically, the data editing device will call the text display component for the text layer in the full layer, and call the image display component for the image layer in the full layer.

[0173] In an embodiment of the present invention, the data editing device can render the full layer of the graphic data to be edited, and through the called system display component, present the rendered full layer in order on the preview interface to realize the preview of the graphic data to be edited.

[0174] In some embodiments of the present invention, after performing layer parsing on the graphic data to be edited to obtain the full layer, that is, after S1021, the method may further include: S1024-S1027, as follows:

[0175] S1024. Expand the structure information panel according to the received structure information panel expansion instruction; the structure information panel is located in a second preset area of ​​the preview interface and does not cover the preview result.

[0176] After obtaining the full layer, the data editing device receives the structure information panel expansion instruction triggered by the animation designer, and then expands the structure information panel on the preview interface according to the received structure information panel expansion instruction. The structure information panel is set at the second preset area of ​​the preview interface, and the structure information panel does not cover the preview result.

[0177] It should be noted that the second preset area can be set according to actual needs, and the embodiment of the present invention is not limited here.

[0178] S1025. Obtaining the hierarchical information of all layers from the graphic data to be edited; the hierarchical information includes layer information and hierarchical attributes.

[0179] After expanding the structure information panel, the data editing device will start to obtain the hierarchical information of the full layer from the graphic data to be edited, wherein the hierarchical information includes the layer information of the full layer and the hierarchical attributes of the full layer.

[0180] It should be noted that the layer information includes the elements of the animation effects in each layer. Of course, the layer information may also include other contents, which are not limited in the embodiment of the present invention. The level attributes include the level identifier, level type, data types within the level, and the relationship between the levels. Similarly, the level attributes may also include other contents, which are not specifically limited in the embodiment of the present invention.

[0181] For example, for an image layer, the layer information includes the image name, image size, image start time, image duration, image background color, etc., and the layer attributes include the layer level identifier of the layer, the type of the layer in the entire animation effect, etc. For a text layer, the layer information includes the text content, text size, text color, text appearance time, text duration, etc. Similar to the image layer, the layer attributes of the text layer also include the layer level identifier of the layer, the type of the layer in the animation effect, etc.

[0182] S1026. Integrate the hierarchical information of all layers to obtain hierarchical structure information of all layers.

[0183] The data editing device integrates the hierarchical information of each layer and uses the integration result as the hierarchical structure information of the entire layer, so that the elements of the animation effects in each layer in the graphic data to be loaded and the level relationship of each layer can be intuitively displayed later.

[0184] S1027. Displaying hierarchical structure information on the structure information panel.

[0185] The data editing device calls the system display component, and displays the hierarchical structure information on the expanded structure information panel through the system display component. In this way, the data editing device completes the display of the hierarchical structure information of the entire layer, so that animation designers can know the various information in the graphic data to be edited at a glance, facilitate dynamic editing of the graphic data to be edited, and improve the real-time performance of dynamic editing of the graphic data to be edited.

[0186] Illustratively, the embodiment of the present invention provides a schematic diagram of hierarchical structure information, such as Fig.10As shown, display area 1 is a display diagram of the animation effect in the graphic data to be loaded. In the animation effect, a line-shaped background is first displayed, and the character image is displayed on the background in the form of a floating window, and these floating windows can overlap and have a hierarchical relationship. Texts such as "COOL", "FASHION", and "2019" can also be displayed on the background to make the animation effect more vivid. The data editing device uses display area 2 as the second preset area to display the hierarchical structure information of the full layer. It can be seen from the hierarchical structure information that the animation effect has a total of 11 levels, among which the hierarchical information 1 has the total size of the animation effect, that is, width width = 720, height height = 1280, and the playback information of the animation effect, that is, the duration of the animation effect duration = 240, frame rate frameRate = 24, and at the same time, the hierarchical attributes in the hierarchical information 1 contain the identification vector of the level, that is, VectorComposition. The level attributes in level information 2 carry the identification background color backgroundColor(Color) of the level. The level is a branch of level 1, and the layer information of level information 2 is not expanded. The level attributes of level information 3 carry the identification layer size=33 of the level, indicating that there are 33 elements that constitute the animation effect, and level 3 is a branch of level 1. Level information 4 indicates that the identification of the layer is the image layer ImageLayer. The layer information in level information 4 is not shown. The level attributes of level information 4 indicate that the layer is a level belonging to level 3. The level identification of level information 5 is the pre-composed layer PreComposeLayer, wherein the layer information of level information 5 has the name of the image in the layer name="4_bmp", and the level attributes indicate that the level is a branch of level 3. The level identifier of level information 6 is stretch layer stretch (Ratio), indicating that there is a dynamic stretch effect in the animation effect. The layer information of level information 6 includes stretch start time startTime = 0, duration duration = 2, and auto orientation autoOrientation = false. The attribute information of level information 6 indicates that this level belongs to level 5. The level identifier of level information 7 is 2D transformation transform (Transform2D). The layer information of level information 7 includes whether automatic transformation isActive = true, blending mode of transformation blendMode = Normal, and matte detection type trackMatteType = None. The attribute information of level information 7 indicates that this level belongs to level 5.The level identifier of level information 8 is video composition VideoComposition. The layer information of level information 8 includes the size of the video composition, width width=720, height height=1280, and the duration of the video composition duration=240, the frame rate of the video composition frameRate=24. The attribute information of level information 8 indicates that this level is a branch of level 5. The level attribute of level information 9 indicates that this level is a branch of level 5. The level identifier of level information 9 is background color backgroundColor(Color), in which red red=0, green green=0, blue blue=0, and type=Video, indicating that the animation effect in level information 5 is of video type, and the image in the animation effect does not need a background color. The level identifier of level information 10 is sequences size=1. The layer information of level information 10 includes composition start time CompositionStartTime=-202. The level attribute of level information 10 indicates that this level is a branch of level 5. The level identification of level information 11 is also a pre-composed layer (PreComposeLayer), and its level attribute indicates that this level is a branch of level 1, and its layer information is not shown. There is some other information after level information 11, which is not shown in the second preset area.

[0187] In an embodiment of the present invention, the data editing device can expand the structure information panel in the second preset area according to the received structure information panel expansion instruction, and then obtain the hierarchical information of the full amount of layers from the graphic data to be edited, and integrate these hierarchical information into hierarchical structure information, and display it on the structure information panel, so that the file hierarchy of the graphic data to be edited can be displayed, which is convenient for dynamic modification of the animation effects in the graphic data to be edited, and improves the real-time performance of dynamic editing of the graphic data to be edited.

[0188] In some embodiments of the present invention, after previewing the graphic data to be edited and presenting the preview result on the preview interface, receiving a layer modification instruction for the preview result on the layer editing panel, modifying at least one editable layer, and obtaining at least one layer to be rendered, that is, after S103 and before S105, the method may further include: S107-S109, as follows:

[0189] S107. Expand the performance parameter panel according to the received performance parameter panel expansion instruction; the performance parameter panel is located in a third preset area of ​​the preview interface and does not cover the preview result.

[0190] The data editing device receives a performance parameter panel expansion instruction triggered by an animation designer, and then expands the performance parameter panel on the third preset area of ​​the preview interface according to the performance parameter panel expansion instruction to facilitate the subsequent display of the performance parameters.

[0191] It can be understood that the third preset area does not cover the preview result, and the specific position of the third preset area can be set according to actual needs, which is not specifically limited in the embodiment of the present invention.

[0192] S108: Acquire performance parameters from the preview result, and display the performance parameters on a performance parameter panel.

[0193] After expanding the performance parameter panel, the data editing device can also obtain various performance parameters of the preview result from the preview result, and then display the obtained performance parameters on the expanded performance parameter panel so that animation designers can observe the performance panel parameters of the animation effect.

[0194] In the embodiment of the present invention, the performance parameters may include rendering time, image processing time, and presentation time, and may also include other parameters that can indicate the performance of the animation effect, and the embodiment of the present invention does not limit the order.

[0195] S109: When the performance parameter is outside the preset performance threshold, performance tuning is performed on at least one editable layer until the performance parameter is within the preset performance threshold.

[0196] When the performance parameter is outside the preset performance threshold, the data editing device needs to optimize the performance of at least one editable layer by changing the production method of at least one editable layer to make the performance parameter of the preview result reach the preset performance threshold.

[0197] It should be noted that the preset performance threshold can be set according to actual conditions or empirical values, and the embodiment of the present invention does not limit this.

[0198] In some embodiments of the present invention, the preset performance threshold may also be displayed on the performance parameter panel, so that animation designers can more intuitively determine whether the performance parameter is within a reasonable range.

[0199] Illustratively, the embodiment of the present invention provides a schematic diagram of performance parameters and preset performance thresholds, see Fig.11, in display area 1 is the preview result of the animation effect; in display area 2 are some basic parameters of the animation effect, for example, frame rate 1 is 25.0FPS, duration 2 is 20.7s, image size 3 is 84.3MB, number of videos 4 is 2, tag level 5 is 51, width 6 is 720, height 7 is 1280, and number of layers 8 is 11; display area 3 is used as the third preset area to display the performance parameters. Among the performance parameters displayed in the third preset area, the first line is the rendering time of 7470, and the preset average rendering time AVG is 13783, and the preset maximum rendering time MAX is 355545; the second line is the image processing time of 0, and the preset average image processing time AVG is 50, and the preset maximum image processing time MAX is 3291; the third line is the presentation time of 152, and the preset average presentation time AVG is 192, and the preset maximum presentation time MAX is 1734. Afterwards, animation designers can refer to the performance parameters in the third preset area, as well as the preset performance thresholds, namely, the preset average rendering time, the preset maximum rendering time, the preset evaluation image processing time, the preset maximum image processing time, the preset average presentation time and the preset maximum presentation time, to determine whether the performance parameters are outside a reasonable range.

[0200] S110. When the performance parameter is within the preset performance threshold, executing on the layer editing panel, receiving a layer modification instruction for the preview result.

[0201] When the performance parameter is within the preset performance threshold, it indicates that the performance of the preview result is normal. At this time, the data editing device can continue to execute the process of receiving the layer modification instruction triggered by the preview result of the animation designer on the layer panel.

[0202] S111: modifying at least one editable layer according to a layer modification instruction to obtain at least one layer to be rendered, and rendering and presenting the at least one layer to be rendered.

[0203] After receiving the layer modification instruction for the preview result, the data editing device will continue to modify at least one editable layer according to the layer modification instruction to obtain at least one layer to be rendered, and then render and present the at least one layer to be rendered.

[0204] It is understandable that in some embodiments of the present invention, the data editing device may continue to obtain the performance parameters of the presented animation effect after rendering and presenting at least one layer to be rendered, so as to observe whether the editable layer can continue to meet the performance requirements after being modified.

[0205] It should be noted that S109 and S110-S111 are two optional implementations after S108, and the specific implementation can be selected according to actual conditions, which is not limited in the embodiment of the present invention.

[0206] Exemplarily, the embodiment of the present invention provides a schematic diagram of the process of tuning performance parameters, such as Fig.12 As shown, after obtaining the preview result, the data editing device will expand the performance parameter panel on the preview interface according to the received performance parameter panel expansion instruction, start the performance tuning process, and then obtain the performance parameters from the preview effect 01, display the obtained performance parameters on the performance parameter panel, and also display the preset performance threshold on the performance parameter panel, so that the animation designer can compare the performance parameters with the preset performance threshold to determine whether the performance parameters are within a reasonable range 02. When the performance parameters are within a reasonable range, it will directly enter the step of modifying the editable layer 03, and preview after the modification is completed, and continue to obtain the performance parameters of the preview result. When the performance parameters are not within a reasonable range, the data editing device will change the production method for the editable layer, perform the performance tuning process 04, and continue to obtain the tuned performance parameters, and continue to compare the tuned performance parameters with the preset performance threshold to observe whether the tuned performance parameters are within a reasonable range. When the modification of the editable layer is completed and the performance parameters are within a reasonable range, the final animation effect 05 can be determined, and the process ends.

[0207] In an embodiment of the present invention, the data editing device can also obtain performance parameters of the preview result. When the performance parameters of the preview result are not within a reasonable range, the performance of the layer to be edited is optimized. When the performance parameters are within a reasonable range, the subsequent dynamic editing process is continued to ensure the performance of the animation effect.

[0208] The following describes an exemplary application of an embodiment of the present invention in a practical application scenario.

[0209] The embodiment of the present invention is implemented under the MAC operating system. When the animation designer uses AE software to create a travel version of the animation effect, the plug-in in the AE software can be used to export the PAG file. Later, if the animation designer wants to try to modify the animation effect, refer to Fig.13, the data editing device will load the PAG file 01 into the memory through the load function to obtain the graphic data 02 to be edited, that is, PAGFile. Next, the data editing device will perform layer analysis on the PAGFile, and then use the text layer detection interface numTexts and the image layer detection interface numImages to determine whether there are editable text layers and image layers in the PAGFile to obtain at least one editable layer. After that, the data editing device renders all layers in the PAGFile, calls the display component NSView in the MAC system, and presents all layers of the rendered PAGFile on the preview interface to preview the animation effects in the PAGFile and obtain the preview result. After that, the animation designer can press the L key to expand the layer editing panel. Afterwards, the data editing device can give the serial number of the text layer in the PAGFile through the numTexts interface, give the serial number of the image layer through numImages, and obtain the text information 03TextDo cument in the text layer according to the layer serial number through the text data acquisition class getTextData, and organize the text information in each text layer, call the UI component NSTableView in the MAC system, and display the text information in the PAGFile on the expanded layer editing panel. At the same time, the data editing device obtains the image information ImageBytes in the image layer according to the layer serial number through the image data acquisition class lockImageAt, and then converts ImageBytes into the image format NSImage under the MAC system through the image decoding interface, that is, the DecodeImage interface, and then calls the UI component NSTableView in the MAC system to display the image information 04 in the PAGFile on the layer editing panel.When the animation designer modifies the text layer, the data editing device can obtain the text information modified by the animation designer in the text setting dialog box, and then modify the attribute information of the text layer through the setting method of TextDocument, that is, the setter method 05. The modified text layer is cached through the text data setting interface of the file rendering class 06PAGRender, that is, the setTextData interface, and is rendered in sequence according to the original layer relationship in PAGFile during rendering. Finally, it is drawn to the display control NSView under the MAC system through the file drawing class 07PAGSurface. Similarly, the data editing device can obtain the picture dragged by the animation designer to the picture replacement panel dialog box as a replacement picture to modify the image layer 03, and then create a PAGImage for the replacement picture through the data creation class, that is, the FromBytes or FromPath class, and replace and render the created PAGImage through the image replacement interface of PAGRender, that is, the replaceImage interface, and finally draw it to the display control NSView under the MAC system through the PAGSurface class. Finally, the data editing device presents the animation effect 08 through NSView, so that the data editing device completes the dynamic modification.

[0210] The data editing device can also display the hierarchical structure of the PAG file. Fig.14 After the data editing device loads the PAG file 01 through the load function, obtains the graphic data 02 to be loaded and parses it, when the animation designer presses the I key, the data editing device will expand the file structure display panel, and convert the objects in the PAGFile 03 into Objective-C objects, use the runtime mechanism of Objective-C to obtain the file hierarchy information of the PAGFile, and assemble the file hierarchy information into a data source through the attribute class 04, that is, the PAGOCProperty class, and call the display control 05NSOutlineView under the MAC system to display the file hierarchy information on the expanded file structure display panel.

[0211] In summary, through the embodiment of the present invention, the data editing device can first preview the animation effect in the PAG File on the preview interface, and then receive the modification instructions of the animation designer on the PAGFile based on the preview results on the preview interface, and then modify the text layer and the image layer in the PAGFile, and finally render and present the modified text layer and the modified image layer to complete the dynamic modification. In this way, the data editing device can dynamically modify the animation graphic data. In addition, the data editing device can also obtain the file level information of the PAGFile, and display the file level information of the PAGFile on the file structure display panel, so that the file level information is more intuitive, which is convenient for dynamic editing of the animation graphic data, thereby improving the real-time performance of dynamic editing of the animation graphic data.

[0212] The following is a description of an exemplary structure of a data editing device 555 provided in an embodiment of the present invention implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the data editing device 555 of the memory 550 may include:

[0213] The acquisition module 5551 is used to load the graphic data to be edited according to the acquired file loading instruction;

[0214] The parsing module 5552 is used to perform layer parsing on the graphic data to be edited to obtain at least one editable layer; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified;

[0215] The processing module 5553 is used to preview the graphic data to be edited and present the preview result on the preview interface; when a layer editing panel expansion instruction is received on the preview interface, at least one editable layer is presented on the layer editing panel; the layer editing panel is located in the first preset area in the preview interface and does not cover the preview result; on the layer editing panel, a layer modification instruction for the preview result is received, and the at least one editable layer is modified according to the layer modification instruction to obtain at least one layer to be rendered; the layer to be rendered represents a layer that needs to be rendered; the at least one layer to be rendered is rendered and presented to complete the dynamic editing of the graphic data to be edited.

[0216] In some embodiments of the present invention, the parsing module 5552 is specifically used to perform layer parsing on the graphic data to be edited to obtain a full layer; using a layer detection interface, determine a layer type for the full layer; based on the layer type, detect at least one editable layer from the full layer; wherein the number of editable layers is less than or equal to the number of the full layers.

[0217] In some embodiments of the present invention, the acquisition module 5551 is specifically used to receive a layer modification instruction for the preview result on the layer editing panel;

[0218] The processing module 5553 is specifically used to pop up an edit box according to the layer modification instruction, and modify the at least one editable layer in the edit box to obtain at least one modified layer; wherein the number of modified layers is less than or equal to the number of editable layers; using the at least one modified layer, correspondingly replace the layers in the at least one editable layer to obtain at least one layer to be rendered; wherein the number of layers to be rendered is the same as the number of modified layers.

[0219] In some embodiments of the present invention, the processing module 5553 is specifically used to pop up the edit box in the preview interface according to the layer modification instruction, and determine at least one layer to be modified from the at least one editable layer through the edit box; the number of layers to be modified is less than or equal to the number of editable layers; wherein the edit box is superimposed on the preview interface; and according to the layer type of each layer to be modified in the at least one layer to be modified, each layer to be modified is modified to obtain the at least one modified layer.

[0220] In some embodiments of the present invention, the layer to be modified includes a text layer, and the edit box includes a text edit box; the acquisition module 5551 is specifically used to acquire text information and attribute information in the text edit box;

[0221] The processing module 5553 is specifically used to modify the text layer using the text information and the attribute information to obtain the at least one modified layer.

[0222] In some embodiments of the present invention, the layer to be modified includes an image layer, and the editing box includes an image replacement box; the acquisition module 5551 is specifically used to acquire a replacement image in the image replacement box;

[0223] The processing module 5553 is specifically configured to modify the image layer using the replacement image to obtain the at least one modified layer.

[0224] In some embodiments of the present invention, the acquisition module 5551 is specifically used to respond to the layer editing panel expansion instruction received on the preview interface, and acquire the layer sequence number of the at least one editable layer through the layer detection interface; and acquire the at least one editable layer according to the layer sequence number of the at least one editable layer;

[0225] The processing module 5553 is specifically used to call the system display component to display the at least one editable layer on the layer editing panel.

[0226] The processing module 5553 is specifically used to render the full layer to obtain the rendered full layer; the full layer is obtained by layer parsing the graphic data to be edited; the system display component is called to present the rendered full layer in order on the preview interface to obtain the preview result.

[0227] In some embodiments of the present invention, the acquisition module 5551 is further used to expand the structure information panel according to the received structure information panel expansion instruction; the structure information panel is located in the second preset area of ​​the preview interface and does not cover the preview result;

[0228] Acquire the hierarchical information of the full layer from the graphic data to be edited; the hierarchical information includes the layer information and hierarchical attributes of the layer;

[0229] The parsing module 5552 is further used to integrate the hierarchical information of the full layer to obtain the hierarchical structure information of the graphic data to be loaded;

[0230] The processing module 5553 is also used to display the hierarchical structure information on the structure information panel.

[0231] In some embodiments of the present invention, the acquisition module 5551 is further used to expand the performance parameter panel according to the received performance parameter panel expansion instruction; the performance parameter panel is located in the third preset area of ​​the preview interface and does not cover the preview result; and the performance parameter is obtained from the preview result;

[0232] The processing module 5553 is also used to display the performance parameters on the performance parameter panel; when the performance parameters are outside the preset performance threshold, perform performance tuning on the at least one editable layer until the performance parameters are within the preset performance threshold; when the performance parameters are within the preset performance threshold, execute the process of receiving a layer modification instruction for the preview result on the layer editing panel; and modifying the at least one editable layer according to the layer modification instruction to obtain the at least one layer to be rendered.

[0233] An embodiment of the present invention provides a storage medium storing executable instructions, wherein executable data editing instructions are stored. When the executable data editing instructions are executed by a processor, the processor will be caused to execute the data editing method provided by the embodiment of the present invention, for example, Figure 3 , Figure 7 as well as Fig.12 The method shown.

[0234] In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0235] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0236] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0237] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0238] The above description is only an embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims

1. A data editing method, characterized in that: include: Loading the graphic data to be edited according to the acquired file loading instruction, wherein the graphic data to be edited is used for animation design scene; Performing layer analysis on the graphic data to be edited to obtain full layers; detecting and obtaining at least one editable layer from the full layers; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified; Previewing the graphic data to be edited, and presenting a first preview result on the preview interface; When a layer editing panel expansion instruction is received on the preview interface, presenting the at least one editable layer on the layer editing panel; the layer editing panel is located in a first preset area of ​​the preview interface and does not cover the first preview result; When a structure information panel expansion instruction is received on the preview interface, the structure information panel is expanded; the structure information panel is located in a second preset area of ​​the preview interface and does not cover the first preview result; Obtaining hierarchical information of all layers from the graphic data to be edited; the hierarchical information includes layer information and hierarchical attributes of the layers; integrating the hierarchical information of all layers to obtain hierarchical structure information of the all layers; and displaying the hierarchical structure information on the structure information panel; When a performance parameter panel expansion instruction is received on the preview interface, the performance parameter panel is expanded, wherein the performance parameter panel does not cover the first preview result, and the performance parameter panel displays a preset performance threshold and performance parameters of the first preview result; In response to the performance parameter of the first preview result being less than or equal to the preset performance threshold, it is determined that the performance parameter of the first preview effect is within a reasonable range, and on the layer editing panel, a layer modification instruction for the first preview result is received, the original at least one editable layer is copied to obtain a copy of the at least one editable layer, and the copy of the at least one editable layer is modified according to the layer modification instruction, wherein the layer modification instruction is used to modify at least one of text, image, and playback effect in the copy of the editable layer to obtain at least one layer to be rendered; the layer to be rendered represents a layer that needs to be rendered; In response to an undo operation on the modification, reverting the at least one to-be-rendered layer to the original at least one editable layer; In response to the performance parameter of the first preview result being greater than the preset performance threshold, determining that the performance parameter of the first preview effect is not within a reasonable range, and performing performance tuning on the at least one editable layer until the performance parameter of the first preview result is less than or equal to the preset performance threshold; When the modification is completed, a second preview effect of the at least one layer to be rendered is rendered and presented, and in response to a performance parameter of the second preview result being less than the preset performance threshold, dynamic editing of the graphic data to be edited is completed.

2. The method according to claim 1, characterized in that The detecting and obtaining at least one editable layer from the full set of layers includes: Determine the layer type for the total amount of layers using a layer detection interface; According to the layer type, the at least one editable layer is detected from the full amount of layers; wherein the number of editable layers is less than or equal to the number of the full amount of layers.

3. The method according to claim 1, characterized in that The step of modifying the copy of the at least one editable layer according to the layer modification instruction to obtain at least one layer to be rendered includes: According to the layer modification instruction, an edit box is popped up, and the copy of the at least one editable layer is modified in the edit box to obtain at least one modified layer; wherein the number of the modified layers is less than or equal to the number of the editable layers; Using the at least one modified layer, a layer in the at least one editable layer is correspondingly replaced to obtain the at least one layer to be rendered; wherein the number of the layers to be rendered is the same as the number of the modified layers.

4. The method according to claim 3, characterized in that The step of popping up an edit box according to the layer modification instruction, and modifying the copy of the at least one editable layer in the edit box to obtain at least one modified layer includes: According to the layer modification instruction, the edit box is popped up in the preview interface, and at least one layer to be modified is determined from the copies of the at least one editable layer through the edit box; the number of layers to be modified is less than or equal to the number of editable layers; wherein the edit box is superimposed on the preview interface; According to the layer type of each to-be-modified layer in the at least one to-be-modified layer, each to-be-modified layer is modified to obtain the at least one modified layer.

5. The method according to claim 4, characterized in that The layer to be modified includes a text layer, and the edit box includes a text edit box; and modifying each layer to be modified according to the layer type of each layer to be modified in the at least one layer to be modified to obtain the at least one modified layer includes: In the text edit box, obtain text information and attribute information; The text layer is modified using the text information and the attribute information to obtain the at least one modified layer.

6. The method according to claim 4, characterized in that The to-be-modified layer includes an image layer, and the edit box includes an image replacement box; and modifying each to-be-modified layer according to the layer type of each to-be-modified layer in the at least one to-be-modified layer to obtain the at least one modified layer includes: In the image replacement frame, obtaining a replacement image; The image layer is modified using the replacement image to obtain the at least one modified layer.

7. The method according to any one of claims 1 to 6, characterized in that: The method of presenting the at least one editable layer on the layer editing panel when a layer editing panel expansion instruction is received on the preview interface includes: In response to the layer editing panel expansion instruction received on the preview interface, obtaining a layer sequence number of the at least one editable layer through a layer detection interface; Acquire the at least one editable layer according to the layer sequence number of the at least one editable layer; The system display component is called to display the layer of the at least one editable layer on the layer editing panel.

8. The method according to any one of claims 1 to 6, characterized in that: The step of previewing the graphic data to be edited and presenting a first preview result on a preview interface includes: Rendering the full layer to obtain a rendered full layer; the full layer is obtained by performing layer parsing on the graphic data to be edited; The system display component is called to present the rendered full layers in order on the preview interface to obtain the first preview result.

9. A data editing device, characterized in that: include: An acquisition module, used for loading the graphic data to be edited according to the acquired file loading instruction, wherein the graphic data to be edited is used for animation design scene; A parsing module, used for performing layer parsing on the graphic data to be edited to obtain a full layer; detecting and obtaining at least one editable layer from the full layer; wherein the editable layer represents a layer in the graphic data to be edited that is allowed to be modified; A processing module, configured to preview the graphic data to be edited and present a first preview result on a preview interface; when a layer editing panel expansion instruction is received on the preview interface, present the at least one editable layer on the layer editing panel; the layer editing panel is located in a first preset area of ​​the preview interface and does not cover the first preview result; when a structure information panel expansion instruction is received on the preview interface, expand the structure information panel; the structure information panel is located in a second preset area of ​​the preview interface and does not cover the first preview result; The hierarchical information of the full layer is obtained from the graphic data to be edited; the hierarchical information includes the layer information and hierarchical attributes of the layer; the hierarchical information of the full layer is integrated to obtain the hierarchical structure information of the full layer; the hierarchical structure information is displayed on the structure information panel; when a performance parameter panel expansion instruction is received on the preview interface, the performance parameter panel is expanded, wherein the performance parameter panel does not cover the first preview result, and the performance parameter panel displays a preset performance threshold and the performance parameter of the first preview result; in response to the performance parameter of the first preview result being less than or equal to the preset performance threshold, it is determined that the performance parameter of the first preview effect is within a reasonable range, and a layer modification instruction for the preview result is received on the layer editing panel, the original at least one editable layer is copied to obtain a copy of the at least one editable layer, and the layer modification instruction is executed according to the layer modification instruction. The copy of the at least one editable layer is modified, wherein the layer modification instruction is used to modify at least one of the text, image, and playback effect in the copy of the editable layer to obtain at least one layer to be rendered; the layer to be rendered represents a layer that needs to be rendered; in response to an undo operation on the modification, the at least one layer to be rendered is rolled back to the original at least one editable layer; in response to the performance parameter of the first preview result being greater than the preset performance threshold, it is determined that the performance parameter of the first preview effect is not within a reasonable range, and the performance of the at least one editable layer is optimized until the performance parameter of the first preview result is less than or equal to the preset performance threshold; when the modification is completed, a second preview effect of the at least one layer to be rendered is rendered and presented, and in response to the performance parameter of the second preview result being less than the preset performance threshold, the dynamic editing of the graphic data to be edited is completed.

10. A data editing device, characterized in that: include: A memory for storing executable data editing instructions; A processor, configured to implement the method according to any one of claims 1 to 8 when executing the executable data editing instructions stored in the memory.

11. A computer-readable storage medium, characterized in that: Executable data editing instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 8.