Animation resource processing method and device and electronic equipment
By introducing a tab page mechanism into the graphical user interface of game animation development, the problem of cumbersome notification resources is solved, and the rapid selection and addition of animation resources is realized, and the development efficiency is improved.
Patent Information
- Application Number
- CN202310629419.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-12-03
AI Technical Summary
In the game animation development stage, adding notifications or notification status to animations is cumbersome, especially when there are many notification resources, it is difficult to find, resulting in low development efficiency.
By providing a tab page mechanism in the graphical user interface, selecting and associating different resources from the resource library in advance, users can quickly select corresponding tab pages and resources based on animations and actions, and directly add them to the timeline to avoid being from the resource library. Search one by one.
It simplifies the process of adding animation resources, improves the efficiency of adding animation resources and animation development efficiency, and is simple and fast to operate.
Smart Images

Figure CN119068089A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device and electronic equipment for processing animation resources. Background Art
[0002] Currently, in the animation development stage of a game, if you want to add notifications or notification status to actions in the game animation, you need to perform the adding operation in the development tool. The development tool will provide multiple timelines for the animation. Developers can right-click on the timeline to display multiple notification resources. Developers need to select the appropriate notification resource from the multiple notification resources and add it to the animation playback time point corresponding to the right-click position. However, this method is cumbersome to operate, especially when there are many notification resources. It is difficult and laborious to find the corresponding notification resource for each action, resulting in low development efficiency. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a method, device and electronic device for processing animation resources. The user can associate different resources with different tabs in advance as needed. When adding different resources for different animations and actions, the user can select the animation and the corresponding tab, and quickly select from the alternative resources corresponding to the tab without searching from the resource library. The operation is simple and fast, thereby improving the efficiency of adding resources to the animation and improving the efficiency of animation development.
[0004] In the first aspect, an embodiment of the present invention provides a method for processing animation resources, providing a graphical user interface through a terminal device, the graphical user interface displaying a notification track of a first animation, and the track position in the notification track is arranged along the timeline; the method comprises: displaying a first window on the graphical user interface; wherein the first window comprises at least one tab page, and the tab page corresponds to a group of alternative resources; the alternative resources are pre-selected from a resource library and saved in association with the tab page; the alternative resources corresponding to different tab pages are at least partially different; the alternative resources corresponding to the selected tab page are displayed in the first window; in response to the selection operation of the first resource in the alternative resources, a target time point is determined in the timeline, and the first resource is added to the notification track, and the track position corresponding to the target time point.
[0005] In the second aspect, an embodiment of the present invention provides a processing device for animation resources, which provides a graphical user interface through a terminal device, and the graphical user interface displays a notification track of a first animation, and the track position in the notification track is arranged along the timeline; the device includes: a window display module, which is used to display a first window on the graphical user interface; wherein the first window includes at least one tab page, and the tab page corresponds to a group of alternative resources; the alternative resources are pre-selected from a resource library and saved in association with the tab page; the alternative resources corresponding to different tab pages are at least partially different; the alternative resources corresponding to the selected tab page are displayed in the first window; a resource adding module, which is used to determine a target time point in the timeline in response to a selection operation of a first resource in the alternative resources, and add the first resource to the notification track, and the track position corresponding to the target time point.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the animation resource processing method of any one of the first aspects.
[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the animation resource processing method of any one of the first aspects.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The present invention provides a method, device and electronic device for processing animation resources, wherein a first window is displayed on a graphical user interface; alternative resources corresponding to a selected tab are displayed in the first window; the alternative resources are pre-selected from a resource library and saved in association with the tab; in response to a selection operation of a first resource in the alternative resources, a target time point is determined, and the first resource is added to a track position corresponding to the target time point in a notification track. In this method, a user can pre-associate different resources with different tabs as needed, and when adding different resources for different animations and actions, the user can select the tab corresponding to the animation and quickly select from the alternative resources corresponding to the tab without searching from the resource library, which is simple and quick to operate, thereby improving the efficiency of adding resources to animations and the efficiency of animation development.
[0010] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A schematic diagram of a graphical user interface provided by an embodiment of the present invention;
[0014] Figure 2 A flowchart of a method for processing animation resources provided by an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of a first window provided by an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of a tab page in a first window provided by an embodiment of the present invention;
[0017] Figure 5 A schematic diagram of another first window provided by an embodiment of the present invention;
[0018] Figure 6 A schematic diagram of creating a new tab page in a first window provided by an embodiment of the present invention;
[0019] Figure 7 A schematic diagram of another first window provided by an embodiment of the present invention;
[0020] Figure 8 A schematic diagram of another first window provided by an embodiment of the present invention;
[0021] Fig. 9 A schematic diagram of another graphical user interface provided by an embodiment of the present invention;
[0022] Fig.10 A schematic diagram of another graphical user interface provided by an embodiment of the present invention;
[0023] Fig.11 A schematic diagram of another first window provided by an embodiment of the present invention;
[0024] Fig.12 A schematic diagram of deleting a tab page in a first window provided by an embodiment of the present invention;
[0025] Fig.13 A schematic diagram of the structure of a device for processing animation resources provided by an embodiment of the present invention;
[0026] Fig.14 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] Currently, in the animation development stage of a game, if you want to add notifications or notification status to actions in the game animation, you need to perform the adding operation in the development tool. The development tool will provide multiple timelines for the animation. The developer can right-click on the timeline to display multiple notification resources. The developer needs to select the appropriate notification resource from the multiple notification resources and add it to the animation playback time point corresponding to the right-click position. However, this method is cumbersome to operate, especially when there are many notification resources. It is difficult and laborious to find the corresponding notification resource for each action, resulting in low development efficiency. Figure 1 As shown, the user right-clicks on the notification track to display the options of adding notifications and adding notification status, etc., and selects the corresponding notification to be added in the notification library. The notification library includes a large number of notifications (notification a, notification b, etc.), which makes it difficult to search and find. In addition, for different types of actions, the corresponding notifications or notification statuses that need to be added will be different, and the user cannot customize different notification or notification status classifications according to their own needs. Based on this, an embodiment of the present invention provides a method, device, and electronic device for processing animation resources, and the technology can be applied to computers, notebooks, tablet computers, and other devices.
[0029] To facilitate understanding of this embodiment, a method for processing resource animation disclosed in an embodiment of the present invention is first introduced in detail. A graphical user interface is provided through a terminal device, and the graphical user interface displays a notification track of a first animation, and the track positions in the notification track are arranged along the time axis; the above-mentioned first animation can be various animations in the game, such as the battle animation, dance animation, skill animation, etc. of a virtual character; it can also be a recorded video, such as a recorded real-life dance video, a funny video, etc. Figure 2 As shown, the method comprises the following steps:
[0030] Step S202, displaying a first window on a graphical user interface; wherein the first window includes at least one tab page, and the tab page corresponds to a group of candidate resources; the candidate resources are pre-selected from a resource library and saved in association with the tab page; different tab pages correspond to candidate resources that are at least partially different; the first window displays the candidate resources corresponding to the selected tab page;
[0031] The above-mentioned first window can be displayed after clicking a designated control displayed by a graphical user interface. The first window can also be called a tool interface for processing animation resources, which includes not only at least one tab page, but also a search bar and all resources in a resource library, wherein the resource library generally includes a first type of resource and a second type of resource. The first type of resource is used to add an animation notification to the first animation, and the second animation resource is used to add an animation notification status to the first animation. The animation notification is actually an animation callback event, which will be bound (registered) to the time point of the timeline of the first animation (can be accurate to milliseconds). When the animation plays to this time point, the event will be triggered and the animation callback event will be executed. Common usage scenarios include: in a running animation, you want to play a sound effect when the character's feet touch the ground.
[0032] The above-mentioned alternative resources can be audio or special effects for a period of time, and the period of time can be 1 second, 2 seconds, 30 seconds, etc., which is determined according to the resource content. At least one of the above-mentioned tabs is pre-created by the user. Of course, the alternative resources corresponding to the tab are also pre-selected from the resource library and saved in association with the tab. Usually, users will create different tabs and alternative resources corresponding to the tabs according to different types of animations in advance, so that when adding notifications and notification status to the animation, they can quickly find the corresponding resources.
[0033] Specifically, after the first window is displayed, the user is usually required to select a tab page before the selected tab page and the candidate resources corresponding to the tab page are displayed in the first window, wherein the candidate resources include at least one. In addition, in order to distinguish between the first category of resources and the second category of resources, the candidate resources belonging to the first category of resources are usually displayed in the first area of the first window, and the candidate resources belonging to the second category of resources are displayed in the second area of the first window, so as to facilitate the user to distinguish and select.
[0034] Step S204, in response to the selection operation of the first resource in the candidate resources, determine the target time point in the timeline, and add the first resource to the notification track at the track position corresponding to the target time point.
[0035] The above selection operation may be a click operation, a double-click operation, a long press operation, a touch slide operation, etc. Specifically, the user may select the first resource, and the first resource will be displayed at the track position corresponding to the target time point in the notification track (for example, a resource name of the first resource or a corresponding resource identifier will be displayed), so that the callback event corresponding to the first resource can be bound (registered) to the target time point of the timeline of the first animation.
[0036] For example, if there is an animation of a character taking off, and you want to add a somersault cloud under the character's feet when it takes off, then create a notification called somersault cloud, add it to the character taking off, and associate it with an operation to generate somersault cloud. In this way, a somersault cloud notification is generated. Similarly, you can also create rolling notifications, running notifications, notifications of feet touching the floor, and so on.
[0037] An embodiment of the present invention provides a method for processing animation resources, which displays a first window on a graphical user interface; displays alternative resources corresponding to a selected tab in the first window; the alternative resources are pre-selected from a resource library and saved in association with the tab; in response to a selection operation of a first resource in the alternative resources, a target time point is determined, and the first resource is added to a track position corresponding to the target time point in a notification track. In this method, a user can pre-associate different resources with different tabs as needed, and when adding different resources for different animations and actions, the user can select the animation and the tab corresponding to it, and quickly select from the alternative resources corresponding to the tab without searching from the resource library. The operation is simple and fast, which improves the efficiency of adding resources to animations and the efficiency of animation development.
[0038] The video frames of the first animation are arranged along the timeline; after adding the first resource to the notification track at the track position corresponding to the target time point, the method further includes: triggering the first resource in response to the video frame of the first animation being played to the target time point.
[0039] When the first animation plays to the video frame at the target time point, the callback event corresponding to the first resource will be called to trigger the corresponding first resource. The first resource actually contains only a piece of code logic, and the corresponding function depends on the code logic; if this piece of code logic contains animation performance, the animation will be played, and if it is just a modification of the data in the program, the animation will not be played.
[0040] The above-mentioned adding of the first resource is actually adding an event tag to the first animation. Through the event tag, when the first animation plays to the video frame of the target time point, the first resource corresponding to the event tag (which can also be understood as the specific event corresponding to the event tag) can be triggered at the same time.
[0041] After displaying the first window on the graphical user interface, the method further includes: displaying a selection control for selecting a tab in the first window; displaying at least one pre-created tab in response to a trigger operation on the selection control; and displaying the selected tab and alternative resources corresponding to the selected tab in the first window in response to a selection operation on at least one tab.
[0042] For example, Figure 3 The first window shown includes a search bar, the "Default" control corresponds to the above selection control, and includes "all Tags" corresponding to the above resource library, including "All Notifies" (i.e., the first type of resource) and "All Sates" (i.e., the second type of resource). For example, Figure 4 As shown, the user can click the selection control (Default) to display a drop-down box and select different tabs, including "model1" and "model2". Figure 5 As shown, if the user clicks "model1", the selected tab page "model1" and the alternative resources corresponding to the selected tab page are displayed in the first window.
[0043] After displaying the first window on the graphical user interface, the method further includes:
[0044] (1) displaying a selection control for selecting a tab page in the first window; and displaying a new control in response to a trigger operation on the selection control;
[0045] (2) In response to a specified operation on the newly created control, create a target tab page and display the target tab page in the first window;
[0046] Specifically, in response to a trigger operation on a newly created control, a text input box and a confirmation control are displayed; in response to an input operation on the text input box, the input text information is determined as a target tab page; in response to a trigger operation on a confirmation control, a target tab page is created and displayed in the first window.
[0047] For example, Figure 6 The "New" (i.e. the new control mentioned above) shown displays a text input box after clicking the control. The user enters "model1" (i.e. the target tab page mentioned above) in the input box and clicks the "OK" control to create the target tab page and display it in the first window.
[0048] (3) In response to the resource association instruction, the corresponding candidate resource is associated with the target tab.
[0049] For example, Figure 7As shown, the area in the white box is a custom area, and the user can associate corresponding alternative resources for the target tab "model1" in this area.
[0050] In a possible implementation manner, the first window further includes: a resource library and an editing control; Figure 7 The "Edit" in corresponds to the above-mentioned edit control. In response to the trigger operation on the edit control, the target tab is controlled to enter the resource configuration state; in response to the selection operation on the specified resource in the resource library, the specified resource is associated with the target tab, and the specified resource corresponding to the target tab is displayed in the first window.
[0051] The user can click on the specified resource in the resource library "All Tags" to associate the specified resource with the target tab, and display the specified resource corresponding to the target tab in the first window. At the same time, the specified resource in the resource library will be displayed in a specified display mode (such as highlighting, flashing, etc.). Similarly, the specified resource corresponding to the target tab will also be displayed in a specified display mode. For example, Figure 8 As shown, the specified resources in the resource library and the specified resources corresponding to the target tab are displayed in a specified display mode (grayed out display).
[0052] In response to the selection operation of the first resource among the candidate resources, a step of determining a target time point in the timeline, a possible implementation manner is:
[0053] In response to a click operation on a first resource among the candidate resources, a current play time point of the first animation is determined from the timeline, and the current play time point is determined as a target time point.
[0054] For example, Fig. 9 As shown, after the user clicks the first resource "first resource d", the first resource will be added to the notification track, and the track position corresponding to the current playback time point of the first animation. Specifically, when the first resource in the candidate resources is clicked, the code obtains the current playback time of the first animation, that is, the time of the timeline; this time is used as input, and the existing interface of UnrealEngine4 is called to add the first resource to the corresponding position of the timeline panel.
[0055] Another possible implementation manner: in response to a drag operation on a first resource among the candidate resources, determining an end point position of the drag operation, and determining a target time point corresponding to the end point position from the timeline.
[0056] For example, Fig.10As shown, the user can drag the first resource "first resource c" in the candidate resources to the specified position of the notification track, and then add the first resource to the time point corresponding to the specified position. Specifically, UnrealEngine4 does not support the operation of releasing the mouse after dragging a button by default (no code implementation). In this embodiment, a new SDragButton is implemented by itself:
[0057] After the mouse is clicked, the button (i.e., the first resource) enters the clicked state. In the clicked state, if the mouse is moved beyond a threshold, it enters the dragging state, the button becomes semi-transparent, and the OnDragStarted callback (new) is called. When the mouse is released in the dragging state, the transparency of the button is restored, and the OnDragRelease callback (new) is called. For the OnDragRelease callback, the following algorithm is applied:
[0058] Get the position of the mouse on the screen when the button is released; call the existing interface of UE4 to determine whether the position is in the timeline panel, if not, ignore the following steps; if it is, call the existing interface of UE4 to calculate the playback time corresponding to the point; call the existing interface of UE4 to add the notification or notification status (i.e. the first resource) corresponding to the button; in this way, when dragging and releasing the mouse, it will automatically detect whether it is in the timeline panel, and automatically add the first resource at this position.
[0059] The first window also includes an editing control; before responding to the selection operation of the first resource in the candidate resources, the method further includes:
[0060] In response to a trigger operation on the edit control, the selected tab is controlled to enter an editing state; in response to a selection operation on a second resource in the candidate resources, the second resource associated with the selected tab is cancelled, and the second resource is cancelled from being displayed in the first window.
[0061] For example, Fig.11 As shown, after the user clicks the edit control "Edit", the first information ("Edit") on the edit control will be updated to the second information ("Save"). At this time, if the user clicks the second resource ("resource f") in the alternative resources corresponding to the selected tab ("model1"), that is, "resource f" under Anim State, the selected tab will be unassociated with the "resource f" and the initial display mode of "resource f" will be restored. If the user clicks the edit control "Save" again, the current editing result can be saved and the second resource can be undisplayed in the first window. You can also click "resource f" under All States to unassociate the selected tab with the "resource f" and restore the initial display mode of "resource f".
[0062] It should be noted that the resources in the resource library displayed in the first window will always be displayed and will not be cancelled due to editing operations.
[0063] Furthermore, the method further includes: in response to a deletion operation on a specified tab in at least one tab, deleting the specified tab and the candidate resource corresponding to the specified tab. Fig.12 As shown in the figure, when the mouse moves to the specified tab ("model1"), the "Delete" control will be displayed. The user clicks "Delete" to delete the specified tab ("model1") and the alternative resources corresponding to the specified tab ("model1"). Among them, the data of all custom schemes (i.e. creating tabs and associating alternative resources with tabs) is managed by a Config class, which implements the add, delete, query and modify interface, and is saved to disk with the help of UnrealEngine4's serialization interface and file access interface.
[0064] Corresponding to the above method embodiment, the embodiment of the present invention provides an animation resource processing device, which provides a graphical user interface through a terminal device, and the graphical user interface displays a notification track of a first animation, and the track positions in the notification track are arranged along the time axis; Fig.13 As shown, the device comprises:
[0065] The window display module 131 is used to display a first window on a graphical user interface; wherein the first window includes at least one tab page, and the tab page corresponds to a group of candidate resources; the candidate resources are pre-selected from a resource library and stored in association with the tab page; the candidate resources corresponding to different tab pages are at least partially different; the first window displays the candidate resources corresponding to the selected tab page;
[0066] The resource adding module 132 is used to respond to the selection operation of the first resource in the candidate resources, determine the target time point in the time axis, and add the first resource to the notification track at the track position corresponding to the target time point.
[0067] An embodiment of the present invention provides a processing device for animation resources, which displays a first window on a graphical user interface; the first window displays alternative resources corresponding to a selected tab; the alternative resources are pre-selected from a resource library and saved in association with the tab; in response to a selection operation of a first resource among the alternative resources, a target time point is determined, and the first resource is added to a track position corresponding to the target time point in a notification track. In this method, a user can pre-associate different resources with different tabs as needed, and when adding different resources for different animations and actions, the user can select the tab corresponding to the animation and quickly select from the alternative resources corresponding to the tab without searching from the resource library. The operation is simple and fast, which improves the efficiency of adding resources to animations and the efficiency of animation development.
[0068] The video frames of the first animation are arranged along the time axis; the device further comprises: a trigger module, which is used to trigger the first resource in response to the video frame of the first animation being played to a target time point.
[0069] The above-mentioned device also includes: a tab selection module, which is used to display a selection control for selecting a tab in the first window; in response to a trigger operation on the selection control, display at least one pre-created tab; in response to a selection operation on at least one tab, display the selected tab in the first window, and the alternative resources corresponding to the selected tab.
[0070] The above-mentioned device also includes: a tab creation operation, which is used to display a selection control for selecting a tab in the first window; in response to a trigger operation on the selection control, a new control is displayed; in response to a specified operation on the new control, a target tab is created and the target tab is displayed in the first window; in response to a resource association instruction, a corresponding alternative resource is associated with the target tab.
[0071] The first window also includes: a resource library and an editing control; the above-mentioned tab creation operation is also used to: respond to a trigger operation on the editing control, control the target tab to enter a resource configuration state; respond to a selection operation on a specified resource in the resource library, associate the specified resource with the target tab, and display the specified resource corresponding to the target tab in the first window.
[0072] The above-mentioned tab page creation operation is also used to: respond to a trigger operation on a newly created control, display a text input box and a confirmation control; respond to an input operation on the text input box, determine the input text information as the target tab page; respond to a trigger operation on a confirmation control, create a target tab page, and display the target tab page in the first window.
[0073] The resource adding module is further used to: respond to a click operation on a first resource in the candidate resources, determine the current play time point of the first animation from the timeline, and determine the current play time point as the target time point.
[0074] The resource adding module is further used to: respond to a drag operation on a first resource in the candidate resources, determine an end point of the drag operation, and determine a target time point corresponding to the end point from the timeline.
[0075] The first window also includes an editing control; the above-mentioned device also includes a resource editing module, which is used to: respond to a trigger operation on the editing control, control the selected tab to enter an editing state; respond to a selection operation on a second resource in the alternative resources, cancel the second resource associated with the selected tab, and cancel the display of the second resource in the first window.
[0076] The above-mentioned device also includes: a tab page deletion module, which is used to: respond to a deletion operation on a specified tab page in at least one tab page, delete the specified tab page, and the candidate resources corresponding to the specified tab page.
[0077] The resource library includes first-category resources and second-category resources. The first-category resources are used to add animation notifications to the first animation, and the second-category resources are used to add animation notification states to the first animation.
[0078] The device for processing animation resources provided in the embodiment of the present invention has the same technical features as the method for processing animation resources provided in the above embodiment, and therefore can solve the same technical problems and achieve the same technical effects.
[0079] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned animation resource processing method. The electronic device can be a server or a terminal device.
[0080] See also Fig.14 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned animation resource processing method.
[0081] Further, Fig.14 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0082] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0083] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0084] The processor in the electronic device can implement the following operations in the animation resource processing method by executing the machine executable instructions:
[0085] A first window is displayed on a graphical user interface; wherein the first window includes at least one tab page, and the tab page corresponds to a group of alternative resources; the alternative resources are pre-selected from a resource library and saved in association with the tab page; the alternative resources corresponding to different tab pages are at least partially different; the alternative resources corresponding to the selected tab page are displayed in the first window; in response to the selection operation of the first resource in the alternative resources, a target time point is determined in the timeline, and the first resource is added to the notification track at the track position corresponding to the target time point. In this method, the user can pre-associate different resources with different tab pages as needed, and when adding different resources for different animations and actions, the user can select the tab page corresponding to the animation and quickly select from the alternative resources corresponding to the tab page without searching from the resource library. The operation is simple and fast, which improves the efficiency of adding resources to the animation and the efficiency of animation development.
[0086] The video frames of the above-mentioned first animation are arranged along the timeline; after adding the first resource to the notification track at the track position corresponding to the target time point, the method also includes: triggering the first resource in response to the video frame of the first animation playing to the target time point.
[0087] After displaying the first window on the graphical user interface, the method further includes: displaying a selection control for selecting a tab in the first window; displaying at least one pre-created tab in response to a trigger operation on the selection control; and displaying the selected tab and alternative resources corresponding to the selected tab in the first window in response to a selection operation on at least one tab.
[0088] After the first window is displayed on the graphical user interface, the method further includes: displaying a selection control for selecting a tab page in the first window; displaying a new control in response to a trigger operation on the selection control; creating a target tab page in response to a specified operation on the new control, and displaying the target tab page in the first window; and associating corresponding alternative resources for the target tab page in response to a resource association instruction.
[0089] The first window also includes: a resource library and an editing control; in response to a resource association instruction, the step of associating corresponding alternative resources for the target tab includes: responding to a trigger operation on the editing control, controlling the target tab to enter a resource configuration state; responding to a selection operation on a specified resource in the resource library, associating the specified resource with the target tab, and displaying the specified resource corresponding to the target tab in the first window.
[0090] The steps of creating a target tab page in response to a specified operation on a newly created control and displaying the target tab page in a first window include: displaying a text input box and a confirmation control in response to a trigger operation on the newly created control; determining the input text information as the target tab page in response to an input operation on the text input box; creating a target tab page in response to a trigger operation on a confirmation control and displaying the target tab page in the first window.
[0091] In response to the selection operation of the first resource among the alternative resources, the step of determining the target time point in the timeline includes: in response to the click operation on the first resource among the alternative resources, determining the current playback time point of the first animation from the timeline, and determining the current playback time point as the target time point.
[0092] In response to the selection operation of the first resource among the candidate resources, the step of determining the target time point in the timeline includes: responding to the drag operation on the first resource among the candidate resources, determining the end position of the drag operation, and determining the target time point corresponding to the end position from the timeline.
[0093] The first window also includes an editing control; before responding to a selection operation on a first resource among the alternative resources, the method also includes: responding to a trigger operation on the editing control, controlling the selected tab to enter an editing state; responding to a selection operation on a second resource among the alternative resources, canceling the second resource associated with the selected tab, and canceling the display of the second resource in the first window.
[0094] The above method also includes: in response to a deletion operation on a specified tab page among the at least one tab page, deleting the specified tab page and the candidate resources corresponding to the specified tab page.
[0095] The resource library includes first-category resources and second-category resources. The first-category resources are used to add animation notifications to the first animation, and the second-category resources are used to add animation notification states to the first animation.
[0096] This embodiment further provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned animation resource processing method.
[0097] The machine executable instructions stored in the machine readable storage medium can implement the following operations in the animation resource processing method by executing the machine executable instructions:
[0098] A first window is displayed on a graphical user interface; wherein the first window includes at least one tab page, and the tab page corresponds to a group of alternative resources; the alternative resources are pre-selected from a resource library and saved in association with the tab page; the alternative resources corresponding to different tab pages are at least partially different; the alternative resources corresponding to the selected tab page are displayed in the first window; in response to the selection operation of the first resource in the alternative resources, a target time point is determined in the timeline, and the first resource is added to the notification track at the track position corresponding to the target time point. In this method, the user can pre-associate different resources with different tab pages as needed, and when adding different resources for different animations and actions, the user can select the tab page corresponding to the animation and quickly select from the alternative resources corresponding to the tab page without searching from the resource library. The operation is simple and fast, which improves the efficiency of adding resources to the animation and the efficiency of animation development.
[0099] The video frames of the above-mentioned first animation are arranged along the timeline; after adding the first resource to the notification track at the track position corresponding to the target time point, the method also includes: triggering the first resource in response to the video frame of the first animation playing to the target time point.
[0100] After displaying the first window on the graphical user interface, the method further includes: displaying a selection control for selecting a tab in the first window; displaying at least one pre-created tab in response to a trigger operation on the selection control; and displaying the selected tab and alternative resources corresponding to the selected tab in the first window in response to a selection operation on at least one tab.
[0101] After the first window is displayed on the graphical user interface, the method further includes: displaying a selection control for selecting a tab page in the first window; displaying a new control in response to a trigger operation on the selection control; creating a target tab page in response to a specified operation on the new control, and displaying the target tab page in the first window; and associating corresponding alternative resources for the target tab page in response to a resource association instruction.
[0102] The first window also includes: a resource library and an editing control; in response to a resource association instruction, the step of associating corresponding alternative resources for the target tab includes: responding to a trigger operation on the editing control, controlling the target tab to enter a resource configuration state; responding to a selection operation on a specified resource in the resource library, associating the specified resource with the target tab, and displaying the specified resource corresponding to the target tab in the first window.
[0103] The steps of creating a target tab page in response to a specified operation on a newly created control and displaying the target tab page in a first window include: displaying a text input box and a confirmation control in response to a trigger operation on the newly created control; determining the input text information as the target tab page in response to an input operation on the text input box; creating a target tab page in response to a trigger operation on a confirmation control and displaying the target tab page in the first window.
[0104] In response to the selection operation of the first resource among the alternative resources, the step of determining the target time point in the timeline includes: in response to the click operation on the first resource among the alternative resources, determining the current playback time point of the first animation from the timeline, and determining the current playback time point as the target time point.
[0105] In response to the selection operation of the first resource among the candidate resources, the step of determining the target time point in the timeline includes: responding to the drag operation on the first resource among the candidate resources, determining the end position of the drag operation, and determining the target time point corresponding to the end position from the timeline.
[0106] The first window also includes an editing control; before responding to a selection operation on a first resource among the alternative resources, the method also includes: responding to a trigger operation on the editing control, controlling the selected tab to enter an editing state; responding to a selection operation on a second resource among the alternative resources, canceling the second resource associated with the selected tab, and canceling the display of the second resource in the first window.
[0107] The above method also includes: in response to a deletion operation on a specified tab page in at least one tab page, deleting the specified tab page and the candidate resources corresponding to the specified tab page.
[0108] The resource library includes first-category resources and second-category resources. The first-category resources are used to add animation notifications to the first animation, and the second-category resources are used to add animation notification states to the first animation.
[0109] The computer program product of the animation resource processing method, device and system provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0111] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0112] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0113] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0114] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for processing animation resources, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface displays a notification track of a first animation, and the track positions in the notification track are arranged along a time axis; the method comprises: A first window is displayed on the graphical user interface; wherein the first window includes at least one tab page, the tab page corresponds to a group of candidate resources; the candidate resources are pre-selected from a resource library and stored in association with the tab page; different tab pages correspond to candidate resources that are at least partially different; the first window displays the candidate resources corresponding to the selected tab page; In response to a selection operation of a first resource in the candidate resources, a target time point is determined in the timeline, and the first resource is added to the notification track, with the track position corresponding to the target time point.
2. The method according to claim 1, characterized in that The video frames of the first animation are arranged along the time axis; After adding the first resource to the notification track at the track position corresponding to the target time point, the method further includes: In response to the first animation being played to the video frame of the target time point, the first resource is triggered.
3. The method according to claim 1, characterized in that After displaying the first window on the graphical user interface, the method further includes: Displaying a selection control for selecting a tab page in the first window; In response to a trigger operation on the selection control, displaying at least one pre-created tab page; In response to a selection operation on the at least one tab page, the selected tab page and candidate resources corresponding to the selected tab page are displayed in the first window.
4. The method according to claim 1, characterized in that: After displaying the first window on the graphical user interface, the method further includes: Displaying a selection control for selecting a tab page in the first window; In response to a trigger operation on the selection control, displaying a new control; In response to a specified operation on the newly created control, a target tab page is created, and the target tab page is displayed in the first window; In response to the resource association instruction, the target tab is associated with a corresponding candidate resource.
5. The method according to claim 4, characterized in that The first window also includes: a resource library and an editing control; In response to the resource association instruction, the step of associating the target tab page with the corresponding candidate resource includes: In response to a trigger operation on the editing control, controlling the target tab page to enter a resource configuration state; In response to a selection operation on a designated resource in the resource library, the designated resource is associated with the target tab page, and the designated resource corresponding to the target tab page is displayed in the first window.
6. The method according to claim 4, characterized in that In response to a specified operation on the newly created control, the step of creating a target tab page and displaying the target tab page in the first window includes: In response to a trigger operation on the newly created control, a text input box and a confirmation control are displayed; In response to an input operation on the text input box, determining the input text information as the target tab page; In response to a trigger operation on the confirmation control, the target tab page is created and displayed in the first window.
7. The method according to claim 1, characterized in that In response to the selection operation of the first resource in the candidate resources, the step of determining the target time point in the time axis includes: In response to a click operation on a first resource among the candidate resources, a current play time point of the first animation is determined from the timeline, and the current play time point is determined as the target time point.
8. The method according to claim 1, characterized in that In response to the selection operation of the first resource in the candidate resources, the step of determining the target time point in the time axis includes: In response to a drag operation on a first resource among the candidate resources, an end point position of the drag operation is determined, and a target time point corresponding to the end point position is determined from the timeline.
9. The method according to claim 1, characterized in that: The first window also includes an edit control; In response to the selection of the first resource among the candidate resources, the method further includes: In response to a trigger operation on the editing control, controlling the selected tab page to enter an editing state; In response to a selection operation on a second resource among the candidate resources, the second resource associated with the selected tab is cancelled, and the second resource is not displayed in the first window.
10. The method according to claim 1, characterized in that The resource library includes a first type of resource and a second type of resource. The first type of resource is used to add an animation notification to the first animation, and the second type of resource is used to add an animation notification state to the first animation.
11. A device for processing animation resources, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface displays a notification track of a first animation, and the track positions in the notification track are arranged along a time axis; the apparatus comprises: A window display module, configured to display a first window on the graphical user interface; wherein the first window includes at least one tab page, the tab page corresponds to a group of candidate resources; the candidate resources are pre-selected from a resource library and stored in association with the tab page; different tab pages correspond to candidate resources that are at least partially different; the first window displays the candidate resources corresponding to the selected tab page; The resource adding module is used to respond to the selection operation of the first resource in the candidate resources, determine the target time point in the time axis, and add the first resource to the notification track at the track position corresponding to the target time point.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method for processing animation resources according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method for processing animation resources according to any one of claims 1 to 10.
