Method, system, device and medium for one-click copying and nesting synthesis in video

Through the one-click copy nested synthesis method, the replication and update process of video synthesis is automatically processed, which solves the cumbersome and error-prone problems of copying and updating nested synthesis in the existing technology, and improves the efficiency and accuracy of video synthesis.

CN118540426BActive Publication Date: 2024-12-10YANTAI JIERUI NETWORK TRADING
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411008086.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-10
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

In video synthesis production, the process of copying and updating nested synthesis is cumbersome and can easily lead to operational errors, which consumes a lot of time and energy.

Method used

Design a one-click copy nested synthesis method. By creating script files and optimizing workflow panels, users can automatically copy and update nested synthesis with just a click of a button, simplifying the operation process and reducing manual errors.

Benefits of technology

It greatly simplifies the operation process, saves users' time and energy, reduces operational errors, and improves the efficiency and accuracy of video synthesis and production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540426B_ABST
    Figure CN118540426B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, system, device and medium for one-click copying of nested compositions in a video, and belongs to the field of dynamic graphics design. The method comprises the following steps: S1: opening a certain engineering project in a graphics video processing software; S2: selecting a composition to be copied, wherein the composition includes a nested composition; S3: clicking a "generate" button in a pre-created "one-click copy composition" window; S4: the system responds to the user's operation and automatically clones the selected composition with one click. The present invention integrates the copying process of the composition into a simple user interface, greatly simplifying the operation process. The user no longer needs to manually perform the copying and updating operations, but can complete them by clicking a button, thereby simplifying the process of copying the composition and saving time and energy. Especially in the case where the composition needs to be copied and updated frequently, this improved efficiency will have a positive impact on the work and can reduce potential operational errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of dynamic graphic design, and in particular relates to a method, system, device and medium for one-key copy synthesis in a video. Background Art

[0002] In daily video compositing work, it is often necessary to copy existing compositions to create new versions or variations. Currently, copying a composition with nested compositions from the Project Panel and updating the composition as a new group is a manual process. In this process, users need to perform a series of steps, including selecting the composition, selecting it from the root, copying the composition, finding and updating the nested composition, and so on. These steps take a lot of time and effort, and manual copy and update operations are prone to errors. For example, some nested compositions may be forgotten to be copied, or errors may occur during the update process. These operational errors consume extra time to fix.

[0003] In view of the above, a simple and efficient processing method is needed in work. Summary of the invention

[0004] The present invention aims to provide a method, system, device and medium for one-key copy nested synthesis in a video, so as to improve the production efficiency of video synthesis and reduce labor cost and time.

[0005] In a first aspect, the present invention provides a method for one-click copying and nested synthesis in a video, comprising the following steps:

[0006] S1: Create script files, enter code and execute optimization workflow panels;

[0007] S2: Open a project in the graphics and video processing software, and select the composition to be copied, which includes nested compositions;

[0008] S3: In the pre-created "One-click Copy Synthesis" window, click the "Generate" button. The system responds to the user's operation and automatically clones the selected synthesis with one click.

[0009] Furthermore, the S1 includes the following creation process:

[0010] S11. Create a window object:

[0011] Create a window object as the operation interface of the optimized workflow, and set its title, position and size in pixels. The window can be resized;

[0012] S12. Add a panel to the window, and then add a button buttonGenerate, name the button buttonGenerate "Generate" and display it on the panel, associate the click event of the button buttonGenerate with the generateComposition function of generating composition: buttonGenerate.onClick =generateComposition; bind the generateComposition function to the click event of the buttonGenerate button;

[0013] S13, calling the center() and show() methods to make the window object visible and centered on the screen for the user to interact with it;

[0014] S14, define the generateComposition function: define the generateComposition function using function syntax, i.e., function generateComposition() {, indicating that in the generateComposition function, the currently active composition selectedComposition is obtained and copied, the selected composition variable is copied as duplicatedComposition, the updateNestedCompositions function is called, the selected composition is copied, and the copied composition is renamed as "copied composition";

[0015] S15. Define the updateNestedCompositions function in S14: define the updateNestedCompositions function using function syntax, which is used to copy a composition and check whether there is a nested composition in the composition before copying it; that is, functionupdateNestedCompositions(comp) {, in this function, use the for loop sentence for(var i = 1; i<= comp.numLayers; i++) to traverse each layer in the composition, then use the Var function declaration layer(i) to get the current layer, and use the if conditional statement to check whether the composition selected by the user contains a nested composition layer.

[0016] Furthermore, in S3, when the user clicks the "Generate" button, the system will perform the following actions:

[0017] S31. Call the generateComposition function to obtain the currently active composition and copy it, and copy the selected composition variable as duplicatedComposition; then call the updateNestedCompositions function to copy the selected composition, and rename the copied composition as "copied composition", that is, generate a new copy of the composition "copied composition".

[0018] S32. Call the updateNestedCompositions function to check whether there is a nested composition in the "copied composition" and then copy it; first use the for loop sentence for (var i = 1; i<= comp.numLayers; i++) to traverse each layer in the composition, then use the Var function declaration layer(i) to get the current layer, and use the if conditional statement to check whether the composition selected by the user contains a nested composition layer.

[0019] S33. If there is a nested composition, the duplicatedComposition variable is declared using the Var function to store the duplicated object, the layer.source.duplicate() method is called to create a copy of the nested composition and store it in the duplicatedComposition variable, and then all nested compositions are recursively updated using the defined updateNestedCompositions function to ensure that the composition layers of all nested layers are also copied, and finally the original nested composition layer is replaced with the copied nested composition;

[0020] S34. If there is no nested composition, the generateComposition function copies the selected composition and renames it to "copied composition".

[0021] In a second aspect, the present invention provides a system for one-click copying and nested synthesis in a video, comprising the following functional modules:

[0022] Script creation module, used to create script files, enter code and execute optimization workflow panels;

[0023] Select a module to open a project in the graphics and video processing software, and select the composition to be copied, which includes nested compositions;

[0024] The execution module is used to respond to user operations and automatically clone the selected synthesis with one click.

[0025] In a third aspect, the present invention discloses a device for one-click copying and nested synthesis in a video, comprising:

[0026] Memory for storing computer programs;

[0027] A processor is used to implement the steps of the above-mentioned one-key copy nested synthesis method when executing the computer program.

[0028] In a fourth aspect, the present invention discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned one-key copy nested synthesis method are implemented.

[0029] The one-key copy nested synthesis method, system, device and medium of the present invention have the following technical advantages:

[0030] 1. By adding a button, the copy process is integrated into a simple user interface, greatly simplifying the operation process. Users no longer need to manually perform copy and update operations, just click a button to complete it, simplifying the copy synthesis process.

[0031] 2. The operations of copying a composition and updating a nested composition are integrated into one button, saving users time and effort when performing these operations. Especially in situations where compositions need to be copied and updated frequently, this improved efficiency will have a positive impact on work and reduce potential operational errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a flow chart of a method for one-key copy synthesis in a video of Embodiment 1;

[0033] Figure 2 is a schematic diagram of the window object being displayed in the center of the screen in S13 of the first embodiment;

[0034] Figure 3 It is a schematic diagram of a state of synthesis in the selected panel in S2 of the first embodiment;

[0035] Figure 4 This is a schematic diagram of the state of selecting the Generate button in the panel in S3 of the first embodiment;

[0036] Figure 5 The updated nested synthesis schematic diagram in S33 of the first embodiment;

[0037] Figure 6 A system structure diagram of one-key copying and nested synthesis in a video of Embodiment 2;

[0038] Figure 7 This is a schematic diagram of a device for one-click copying and nested synthesis in a video according to Example 3. DETAILED DESCRIPTION

[0039] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0040] Embodiment 1

[0041] A method for one-click copy synthesis in a video, the process is as follows Figure 1 As shown, the following steps are included:

[0042] S1. Create a script file, enter the code and execute the optimization workflow panel; specifically include:

[0043] S11. Create a window object:

[0044] Create a window object as the operation interface of the optimized workflow, and set its title, position and size in pixels. The window can be resized;

[0045] S12. Add a panel to the window, and then add a button buttonGenerate, name the button buttonGenerate "Generate" and display it on the panel, associate the click event of the button buttonGenerate with the generateComposition function of generating composition: buttonGenerate.onClick =generateComposition; bind the generateComposition function to the click event of the buttonGenerate button;

[0046] S13, call the center() and show() methods to make the window object visible in the center of the screen for the user to interact with it, such as Figure 2 As shown;

[0047] S14, define the generateComposition function: define the generateComposition function using function syntax, i.e., function generateComposition() {, indicating that in the generateComposition function, the currently active composition selectedComposition is obtained and copied, the selected composition variable is copied as duplicatedComposition, the updateNestedCompositions function is called, the selected composition is copied, and the copied composition is renamed as "copied composition";

[0048] S15. Define the updateNestedCompositions function in S14: define the updateNestedCompositions function using function syntax, which is used to copy a composition and check whether there is a nested composition in the composition before copying it; that is, functionupdateNestedCompositions(comp) {, in this function, use the for loop sentence for(var i = 1; i<= comp.numLayers; i++) to traverse each layer in the composition, then use the Var function declaration layer(i) to get the current layer, and use the if conditional statement to check whether the composition selected by the user contains a nested composition layer.

[0049] S2: Open the project in the graphics and video processing software and select the composition to be copied in the project. Figure 3 The “text 04” shown in the figure includes three nested compositions: “ / / / / ”, “dynamic element”, and “nested block”;

[0050] S3. Select the "Generate" button in the script panel described in S1, such as Figure 4 As shown, the system will automatically clone the selected synthesis with one click through the following methods:

[0051] S31. When the user clicks the buttonGenerate, the system will call the generateComposition function, obtain the currently active composition "Text 04" and copy it, and copy the selected composition variable as duplicatedComposition; then call the updateNestedCompositions function, copy the selected "Text 04", and rename the copied composition as "Copied Composition", that is, generate a new copy of the "Text 04" composition "Copied Composition".

[0052] S32. Call the updateNestedCompositions function to check whether there is a nested composition in the "copied composition" and then copy it; first use the for loop sentence for (var i = 1; i<= comp.numLayers; i++) to traverse each layer in the composition, then use the Var function declaration layer(i) to get the current layer, and use the if conditional statement to check whether the composition selected by the user contains a nested composition layer.

[0053] S33. If there is a nested composition, the duplicatedComposition variable is declared using the Var function to store the duplicated object, the layer.source.duplicate() method is called to create a copy of the nested composition and store it in the duplicatedComposition variable, and then all nested compositions are recursively updated using the defined updateNestedCompositions function to ensure that the composition layers of all nested layers are also copied, and finally the original nested composition layer is replaced with the copied nested composition, that is, the copies of the three nested compositions " / / / / 2", "dynamic element 2", and "nested block 2" are updated in the "copied composition", such as Figure 5 shown.

[0054] S44. If there is no nested composition, the generateComposition function copies the selected composition and renames it to "copied composition".

[0055] Embodiment 2

[0056] This embodiment provides a system for one-click copying and nested synthesis in a video, such as Figure 6 As shown, it includes the following functional modules:

[0057] Script creation module, used to create script files, enter code and execute optimization workflow panels;

[0058] Select a module to open a project in the graphics and video processing software, and select the composition to be copied, which includes nested compositions;

[0059] The execution module is used to respond to user operations and automatically clone the selected synthesis with one click.

[0060] Embodiment 3

[0061] This embodiment provides a device for one-key copying and nested synthesis in a video, and its structure is as follows: Figure 7 As shown, it includes a processor, a memory and a bus, the memory stores a computer program, when the computer device is running, the processor and the memory communicate through the bus, and the processor executes the computer program to perform the steps of the one-click copy nested synthesis method in a video as described above.

[0062] The present embodiment provides a device for one-click copying and nested synthesis in a video, which may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0063] Specifically, the above-mentioned memory and processor can be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, it can execute the steps of the one-click copy nested synthesis method in the above-mentioned video.

[0064] Embodiment 4

[0065] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the one-click copy nested synthesis method in a video are implemented as described above.

[0066] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0067] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.

[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for one-click copying and nested synthesis in a video, characterized in that: The following steps are involved: S1: Create a script file, enter the code and execute the optimization workflow panel: S11. Create a window object: Create a window object as the operation interface of the optimized workflow, and set its title, position and size in pixels. The window can be resized; S12. Add a panel to the window, and then add a button buttonGenerate, name the button buttonGenerate "Generate" and display it on the panel, associate the click event of the button buttonGenerate with the generateComposition function of generating composition: buttonGenerate.onClick =generateComposition; bind the generateComposition function to the click event of the buttonGenerate button; S13, calling the center() and show() methods to make the window object visible and centered on the screen for the user to interact with it; S14, define the generateComposition function: define the generateComposition function using function syntax, i.e., function generateComposition() {, indicating that in the generateComposition function, the currently active composition selectedComposition is obtained and copied, the selected composition variable is copied as duplicatedComposition, the updateNestedCompositions function is called, the selected composition is copied, and the copied composition is renamed as "copied composition"; S15. Define the updateNestedCompositions function in S14: define the updateNestedCompositions function using function syntax, which is used to copy a composition and check whether there is a nested composition in the composition before copying it; that is, function updateNestedCompositions(comp) {, in this function, use the for loop sentence for(var i = 1; i <= comp.numLayers; i++) to traverse each layer in the composition, then use the Var function declaration layer(i) to get the current layer, and use the if conditional statement to check whether the composition selected by the user contains a nested composition layer; S2: Open a project in the graphics and video processing software, and select the composition to be copied, which includes nested compositions; S3: In the pre-created "One-click Copy Synthesis" window, click the "Generate" button. The system responds to the user's operation and automatically clones the selected synthesis in one click using the following method: S31, calling the generateComposition function, obtaining the currently active composition and duplicating it, duplicating the selected composition variable as duplicatedComposition; then calling the updateNestedCompositions function, duplicating the selected composition, and renaming the duplicated composition as "duplicated composition", that is, generating a new copy of the composition "duplicated composition"; S32, calling the updateNestedCompositions function to check whether there is a nested composition in the "copied composition" and then copying it; firstly, using the for loop sentence for (var i = 1; i <= comp.numLayers; i++) to traverse each layer in the composition, then using the Var function declaration layer(i) to obtain the current layer, and using the if conditional statement to check whether the composition selected by the user contains a nested composition layer; S33. If there is a nested composition, use the Var function to declare the duplicatedComposition variable to store the duplicated object, call the layer.source.duplicate() method to create a copy of the nested composition and store it in the duplicatedComposition variable, then use the defined updateNestedCompositions function to recursively update all nested compositions to ensure that the composition layers of all nested layers are also copied, and finally replace the original nested composition layer with the copied nested composition; S34. If there is no nested composition, the generateComposition function copies the selected composition and renames it to "copied composition".

2. A system for one-click copying and nested synthesis in a video, for implementing the method of claim 1, characterized in that: Includes the following functional modules: Script creation module, used to create script files, enter code and execute optimization workflow panels; Select a module to open a project in the graphics and video processing software, and select the composition to be copied, which includes nested compositions; The execution module is used to respond to user operations and automatically clone the selected synthesis with one click.

3. A device for one-click copying and nesting synthesis in a video, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the one-key copy nested synthesis method as claimed in claim 1 when executing the computer program.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the one-key copy nested synthesis method as claimed in claim 1 are implemented.

Citation Information

Patent Citations

  • Method and system for nested drag and drop enablement

    CN104636050A

  • Life cycle diagram generation method and device and computer readable storage medium

    CN110472927A

  • Content operation method and device and computer readable storage medium

    CN111796952A

  • Visual graph creation method and device, terminal and computer readable storage medium

    CN112445400A

  • Device, information processing device, and recording medium

    CN112449069A