Special effect generation method, device, equipment, computer readable storage medium and product

CN115908633BActive Publication Date: 2026-11-03BEIJING ZITIAO NETWORK TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211668455.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2026-11-03
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

Existing special effects generation methods result in intersecting connection lines between functional nodes and poor readability of the drawing results, which affects the user experience.

Method used

By adding target nodes including input and output ports to the target connection lines and adjusting the line type of the sub-connection lines under preset switching conditions, the display effect of the drawing results can be optimized.

Benefits of technology

This effectively avoids the problem of lines crossing each other, improving the readability of the drawing results and the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115908633B_ABST
    Figure CN115908633B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a special effect generation method and device, equipment, computer readable storage medium and product, the method comprises: display node drawing page, node drawing page includes a plurality of function nodes for making special effects and a plurality of connection lines for connecting at least two function nodes in a plurality of function nodes;In response to the first triggering operation of the target connection line between any two function nodes by the user, the target position triggered by the user is determined;A preset target node is added at the target position, the target connection line is divided into two sub connection lines according to the target node, the target node includes an input port and an output port;Under the condition that the preset switching condition is met, the line type of any sub connection line is adjusted by the target node, and the target special effect is obtained. Thus, the intersection problem between the connection lines can be effectively avoided, the display effect of the drawing result is optimized, the readability of the drawing result is stronger, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of interface interaction technology, and in particular to a method, apparatus, device, computer-readable storage medium, and product for generating special effects. Background Technology

[0002] With the improvement of terminal device hardware performance and the continuous advancement of artificial intelligence technology, more and more application software is running on terminal devices. These applications increasingly offer a variety of special effects for users to choose from and use, aiming to provide a better user experience. To launch and apply these special effects, their development is the first step.

[0003] To reduce the complexity and improve the efficiency of special effects production, existing methods typically encapsulate the code corresponding to different functions into functional nodes. Users can then select multiple functional nodes according to their needs and connect them via connectors to develop special effects.

[0004] However, when using the above method for special effects development, if the number of functional nodes is large and the connections are complex, there will often be situations where the connecting lines intersect and become disorganized. This results in poor readability of the final drawing, failing to meet the actual needs of users and leading to a poor user experience. Summary of the Invention

[0005] This disclosure provides a special effects generation method, apparatus, device, computer-readable storage medium, and product to solve the technical problem that existing special effects generation methods cause crossover of connection lines between functional nodes used to generate special effects and poor readability of drawing results.

[0006] In a first aspect, embodiments of this disclosure provide a method for generating special effects, including:

[0007] The node drawing page includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes.

[0008] In response to the user's first trigger operation on the target connection line between any two functional nodes, the target location triggered by the user is determined;

[0009] A preset target node is added at the target location, and the target connection line is divided into two sub-connection lines according to the target node. The target node includes an input port and an output port.

[0010] Under preset switching conditions, the line type of any sub-connecting line can be adjusted through the target node to obtain the target effect.

[0011] Secondly, embodiments of this disclosure provide a special effects generation apparatus, comprising:

[0012] The display module is used to display a node drawing page, which includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes.

[0013] The determination module is used to determine the target location triggered by the user in response to the user's first trigger operation on the target connection line between any two functional nodes in the target system;

[0014] A segmentation module is used to add a preset target node at the target location and divide the target connection line into two sub-connection lines according to the target node. The target node includes an input port and an output port.

[0015] The adjustment module is used to adjust the line type of any sub-connecting line through the target node under preset switching conditions to obtain the target effect.

[0016] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor and a memory;

[0017] The memory stores computer-executed instructions;

[0018] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the special effects generation method as described in the first aspect and various possible designs of the first aspect.

[0019] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the special effects generation method described in the first aspect and various possible designs of the first aspect.

[0020] Fifthly, embodiments of this disclosure provide a computer program product, including computer execution instructions, which, when executed by a processor, implement the special effects generation method described in the first aspect and various possible designs of the first aspect.

[0021] The special effects generation method, apparatus, device, computer-readable storage medium, and product provided in this embodiment, in response to a user's first trigger operation during the connection line drawing process, add a target node including an input port and an output port in the middle of the target connection line, and, under preset switching conditions, adjust the line type of the sub-connection lines based on the association information of the target node. This effectively avoids the problem of intersections between connection lines, optimizes the display effect of the drawing results, enhances the readability of the drawing results, and improves the user experience. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 A flowchart illustrating the special effects generation method provided in this embodiment of the disclosure;

[0024] Figure 2 A schematic diagram of the nodes provided in the embodiments of this disclosure;

[0025] Figure 3 A schematic diagram is drawn for another node provided in the embodiments of this disclosure;

[0026] Figure 4 A flowchart illustrating the special effects generation method provided in this embodiment of the disclosure;

[0027] Figure 5 This is a schematic diagram of a sub-connecting line of a first line type provided in an embodiment of this disclosure;

[0028] Figure 6 This is a schematic diagram of a sub-connecting line of a first line type provided in an embodiment of this disclosure;

[0029] Figure 7 This is a schematic diagram of sub-connector line adjustment provided in an embodiment of this disclosure;

[0030] Figure 8 A flowchart illustrating a special effects generation method according to yet another embodiment of this disclosure;

[0031] Figure 9 A schematic diagram is drawn for another node provided in the embodiments of this disclosure;

[0032] Figure 10 A flowchart illustrating a special effects generation method according to yet another embodiment of this disclosure;

[0033] Figure 11A schematic diagram is drawn for another node provided in the embodiments of this disclosure;

[0034] Figure 12 This is a schematic diagram of the structure of the special effects generation device provided in the embodiments of this disclosure;

[0035] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0037] To address the technical problem that existing special effects generation methods result in intersecting connection lines between functional nodes and poor readability of the drawing results, this disclosure provides a special effects generation method, apparatus, device, computer-readable storage medium, and product.

[0038] It should be noted that the special effects generation methods, apparatus, devices, computer-readable storage media and products provided in this disclosure can be applied to any special effects generation scenario.

[0039] During the graphic drawing process, it is common for two functional nodes to be connected end to end, resulting in the connection lines crossing and affecting the user's drawing experience.

[0040] In solving the aforementioned technical problems, the inventors discovered that, to avoid poor connection lines between functional nodes and optimize drawing effects, target nodes can be pre-set. Users can add target nodes at appropriate positions on the connection lines according to actual needs, thereby adjusting the line type of the connection lines based on the target node and preset switching conditions. Furthermore, the target node includes both input and output interfaces, allowing users to clearly understand and adapt to the connection method based on target nodes, thus optimizing the user experience.

[0041] Figure 1 This is a flowchart illustrating the special effects generation method provided in the embodiments of this disclosure, as shown below. Figure 1 As shown, the method includes:

[0042] Step 101: Display the node drawing page, which includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes.

[0043] The execution entity in this embodiment is a special effects generation device, which can be coupled to a terminal device to adjust the node connection lines in response to user interaction.

[0044] In this embodiment, users can perform graphic drawing operations on the node drawing page according to actual needs. Optionally, the node drawing interface can specifically be a drawing interface for special effects development. This interface can include multiple functional nodes for creating special effects, and multiple connecting lines for connecting at least two of the functional nodes. By selecting and connecting functional nodes in the node drawing interface, the development of target special effects can be quickly achieved. Users do not need to manually write code or configure parameters, thus improving the efficiency of special effects production. When a functional node is used for special effects drawing, it includes, but is not limited to, nodes indicating special effects materials, nodes indicating resource storage paths, and nodes indicating resource rendering order.

[0045] Therefore, to enable the adjustment of connecting lines, a node drawing page can be displayed. This page can include multiple functional nodes and multiple connecting lines used to connect at least two of the functional nodes. It should be noted that these connecting lines can connect any two functional nodes, or even more than two functional nodes. The specific connection relationships can be set according to actual needs, and this disclosure does not impose any restrictions on this.

[0046] Optionally, users can select functional nodes according to their actual needs on the node drawing page and connect the functional nodes with connecting lines.

[0047] Step 102: In response to the user's first trigger operation on the target connection line between any two functional nodes, determine the target location triggered by the user.

[0048] In this embodiment, during the drawing process, if the connection relationship of a target connecting line is relatively complex, or if there may be intersections, the user can adjust the connecting line by adding a target node.

[0049] Optionally, the user can select a target connection line according to actual needs and determine the position where the target node needs to be added within the target connection line. In response to the user's first trigger operation on the target connection line between any two functional nodes, the target position triggered by the user is determined. This first trigger operation includes, but is not limited to, single-click, double-click, long-press, etc., and this disclosure does not impose any restrictions on it.

[0050] Step 103: Add a preset target node at the target location, and divide the target connection line into two sub-connection lines according to the target node. The target node includes an input port and an output port.

[0051] In this embodiment, after determining the target node, a target node can be added at the target location. This allows the target connection line to be divided into two sub-connection lines, where the functional node on one side and the target node form one sub-connection line, and the target node and the functional node on the other side form another sub-connection point.

[0052] Furthermore, to enable users to understand the connection relationships of the target node, the target node includes input ports and output ports. Therefore, when adjusting the connection lines based on the target node, the input ports of the functional node can be connected to the output ports of the target node, and vice versa.

[0053] Step 104: Under the preset switching conditions, adjust the line type of any sub-connecting line through the target node to obtain the target effect.

[0054] In this implementation, to achieve accurate adjustment of the connecting lines, switching conditions can be preset. After the user adds a target node, it is checked whether the preset switching conditions are met. If the preset switching conditions are met, the line type of any sub-connecting line can be adjusted through the target node. This avoids intersections between connecting lines, optimizes the display effect of the graphic, and allows the user to draw graphics more conveniently. After adjusting the connecting lines between multiple functional nodes, the developed target effect can be obtained. Subsequently, when the user selects and uses the target effect, the effect can be rendered and used based on the multiple functional nodes and connecting lines corresponding to the target effect.

[0055] Figure 2 A schematic diagram of the nodes provided in the embodiments of this disclosure is shown below. Figure 2 As shown, the node drawing page can display a first functional node 21 and a second functional node 22, which can be connected via a target connection line 23. In response to a user's first trigger operation on the target connection line 23, a target node 24 can be added to the target connection line 23. The target connection line 23 is then divided into a first sub-connection line 25 and a second sub-connection line 26 via the target node 24.

[0056] Furthermore, based on any of the above embodiments, step 103 includes:

[0057] Connect the output interface of any functional node to the input port of the target node.

[0058] The output port of the target node is connected to the input port of the other functional node among the two functional nodes to obtain the two sub-connection lines.

[0059] In this embodiment, after adding a target node, since the target node includes both an input port and an output port, the output interface of any functional node can be communicatively connected to the input port of the target node. Furthermore, the output port of the target node can be communicatively connected to the input port of the other functional node, thereby enabling the target connection line to be divided into two sub-connection lines through the target node.

[0060] Figure 3 A schematic diagram is drawn for another node provided in the embodiments of this disclosure, such as... Figure 3 As shown, the target node 31 includes an input port 32 and an output port 33. The output port 35 of the first functional node 34 can be communicatively connected to the input port 32 of the target node 31, and the output port 33 of the target node 31 can be communicatively connected to the input port 37 of the second functional node 36.

[0061] The special effects generation method provided in this embodiment adds a target node, including an input port and an output port, to the middle of the target connecting line in response to the user's first trigger operation during the drawing process. Under preset switching conditions, it adjusts the line type of the sub-connecting lines based on the association information of the target node. This effectively avoids the problem of lines crossing, optimizes the display effect of the drawing results, enhances the readability of the drawing results, and improves the user experience.

[0062] Figure 4 This is a flowchart illustrating the special effects generation method provided in this disclosure. Based on any of the above embodiments, the number of sub-connecting lines is multiple. For example... Figure 4 As shown, step 104 includes:

[0063] Step 401: For each sub-connection line, determine the port information corresponding to the sub-connection line. The port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connection line, as well as the attribute information of the two nodes connected by the sub-connection line. The attribute information includes the functional node and the target node.

[0064] Step 402: Determine whether the preset switching conditions are met based on the port information corresponding to the sub-connection line.

[0065] Step 403: If yes, then adjust the line type of the sub-connecting line.

[0066] Step 404: If not, then no adjustment operation is performed on the line type of the sub-connecting line.

[0067] In this embodiment, after adding a target node to the target connection line, the port information corresponding to each sub-connection line can be determined. The port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connection line, as well as the attribute information of the two nodes connected by the sub-connection line. The attribute information includes the functional node and the target node.

[0068] After obtaining the port information, it can be determined whether the preset switching conditions are met based on the port information and the preset switching conditions. If yes, it indicates that there may be a possibility of line intersection between the current sub-connectors, so the line type of the sub-connectors can be adjusted. Conversely, it indicates that the connection relationship between the current sub-connectors is simple and there is no risk of line intersection, so the line type of the sub-connectors does not need to be adjusted.

[0069] The special effects generation method provided in this embodiment can accurately adjust the type of sub-connecting lines based on the port information corresponding to the sub-connecting lines and the switching conditions by pre-setting switching conditions, thereby avoiding the problem of poor visual effect caused by the crossing of connecting lines.

[0070] Furthermore, based on any of the above embodiments, the sub-connection line is a third-order Bézier curve, and the sub-connection line consists of an input port, an output port, and other control points.

[0071] The sub-connector line includes a first line type and a second line type. The first line type is used to indicate that the other two control points of the sub-connector line are located on both sides of the sub-connector line.

[0072] The second line type is used to indicate that the other two control points of the sub-connector are located on the same side of the sub-connector.

[0073] In this embodiment, the connecting lines and sub-connecting lines between any two functional nodes can be third-order Bézier curves. A third-order Bézier curve typically consists of four control points. Specifically, for connecting lines and sub-connecting lines, these four connection points can include an input port, an output port, and two other control points.

[0074] The sub-connector line types include a first line type and a second line type. The first line type can be an S-shaped curve. When the sub-connector line type is the first line type, the other two control points of the sub-connector line are located on opposite sides of the sub-connector line. The second line type can be a C-shaped curve. When the sub-connector line type is the second line type, the other two control points of the sub-connector line are located on the same side of the sub-connector line.

[0075] Figure 5 This is a schematic diagram of a sub-connecting line of a first line type provided in an embodiment of this disclosure, such as... Figure 5 As shown, the first type of sub-connector 51 can consist of four control points, including an input port 52, an output port 53, and another control point 54. The other two control points 54 are located on both sides of the sub-connector 51.

[0076] Figure 6 This is a schematic diagram of a sub-connecting line of a first line type provided in an embodiment of this disclosure, such as... Figure 6 As shown, the second type of sub-connector 61 can consist of four control points, including an input port 62, an output port 63, and another control point 64. The other two control points 64 are located on the same side of the sub-connector 61.

[0077] Furthermore, based on any of the above embodiments, step 402 includes:

[0078] For each sub-connector, if the x-coordinate of the output port of the sub-connector is greater than the x-coordinate of the input port of the sub-connector, and the attribute of any node connected to the sub-connector is a target node, then the sub-connector is determined to meet the preset switching conditions.

[0079] In this embodiment, after determining the port information of the sub-connector, it can be determined whether the x-coordinate of the output port of the sub-connector is greater than the x-coordinate of the input port of the sub-connector. If so, it can be determined that the sub-connector has a risk of line intersection. Therefore, it can be further determined whether the attribute of any node connected to the sub-connector is a target node added by the user. If so, it can be determined that the sub-connector meets the preset switching conditions, and the line type switching operation of the sub-connector can be implemented according to the target node.

[0080] The special effects generation method provided in this embodiment determines that the current switching conditions are met when the horizontal coordinate of the output port of the sub-connector is greater than the horizontal coordinate of the input port of the sub-connector, and when the attribute of any node connected by the sub-connector is a target node. This allows for accurate determination of the scene where the connecting lines intersect, and then adjustment of the line type of the connecting lines in that scene, effectively preventing the occurrence of connecting line intersections.

[0081] Furthermore, based on any of the above embodiments, step 104 includes:

[0082] Under preset switching conditions, the line type of the sub-connecting line to which the target node is connected is switched from the first line type to the second line type.

[0083] In this embodiment, when it is determined that the preset switching conditions are met, the line type of the sub-connecting line to the target node can be switched from the first line type to the second line type, that is, the S-shaped sub-connecting line can be switched to the C-shaped sub-connecting line. This effectively reduces the complexity of the connecting lines and avoids line intersections.

[0084] Figure 7 As shown in Figure 7, which illustrates the adjustment of a sub-connector line according to an embodiment of this disclosure, the horizontal coordinate of the output port 72 of the sub-connector line 71 is greater than the horizontal coordinate of the input port 73 of the sub-connector line, and the node on the left side of the sub-connector line is the target node 74. In this case, the sub-connector line 71 can be switched from the first line type to the second line type.

[0085] The special effects generation method provided in this embodiment can effectively avoid the intersection of connecting lines and improve the visibility of the drawing results by switching the first line type, namely the S-shaped sub-connecting line, to the second line type, namely the C-shaped sub-connecting line.

[0086] Figure 8 This provides a flowchart illustrating a special effects generation method according to yet another embodiment of the present disclosure. Based on any of the above embodiments, such as... Figure 8 As shown, the step of switching the line type of the sub-connecting line that connects the target node from the first line type to the second line type includes:

[0087] Step 801: For each sub-connection line, determine the ordinate information of the input port and output port corresponding to the sub-connection line.

[0088] Step 802: Determine the display positions of the other two control points of the sub-connecting line based on the ordinate information of the input and output ports corresponding to the sub-connecting line.

[0089] Step 803: Determine the sub-connecting line of the second line type based on the display positions of the other two control points and the input and output ports corresponding to the sub-connecting line.

[0090] In this embodiment, the two control points of the second type of sub-connector can be on the left or right side of the sub-connector, thus presenting different display effects. Therefore, in order to further accurately adjust the connector, the display positions of the two control points of the sub-connector can also be determined.

[0091] Specifically, for each sub-connector, the ordinate information of its corresponding input and output ports can be determined. Based on the ordinate information of the input and output ports of the sub-connector, the display positions of the other two control points of the sub-connector are determined. Then, based on the display positions of the other two control points and the input and output ports of the sub-connector, the sub-connector of the second line type can be determined.

[0092] Furthermore, based on any of the above embodiments, step 802 includes:

[0093] The target vector is constructed by taking the output port of the sub-connector as the starting point and the input port of the sub-connector as the ending point.

[0094] If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the right of the target vector.

[0095] If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, then the other two control points are positioned to the left of the target vector.

[0096] In this embodiment, the display positions of the two control points of the sub-connector can be determined based on the ordinate of the input port and the output port of the sub-connector.

[0097] Optionally, the output port of the sub-connector can be used as the starting point and the input port of the sub-connector as the ending point to construct the target vector. If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, the other two control points are positioned to the right of the target vector. If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, the other two control points are positioned to the left of the target vector.

[0098] Figure 9 A schematic diagram is drawn for another node provided in the embodiments of this disclosure, such as... Figure 9 As shown, the target vector 94 can be constructed by taking the output port 92 of sub-connector 91 as the starting point and the input port 93 of sub-connector 91 as the ending point. Since the ordinate of the input port 93 of sub-connector 91 is smaller than the ordinate of the output port 92 of sub-connector 91, the other two control points 95 can be controlled to the left of the target vector 94. The target vector 99 can be constructed by taking the output port 97 of sub-connector 96 as the starting point and the input port 98 of sub-connector 96 as the ending point. Since the ordinate of the input port 98 of sub-connector 96 is larger than the output port 97 of sub-connector 96, the other two control points 910 can be controlled to the right of the target vector 99.

[0099] The special effects generation method provided in this embodiment determines the sub-connecting line of the second line type based on the ordinate information of the input port and output port corresponding to the sub-connecting line, thereby accurately realizing the adjustment operation of the sub-connecting line and improving the accuracy of the sub-connecting line adjustment.

[0100] Figure 10 This provides a flowchart illustrating a special effects generation method according to yet another embodiment of the present disclosure. Based on any of the above embodiments, such as... Figure 10 As shown, after step 103, the following steps are also included:

[0101] Step 1001: Determine the type of functional node connected by the sub-connection line, wherein the functional node includes data flow node and control flow node.

[0102] Step 1002: Based on the type of the functional node, control the sub-connecting line to display the effect corresponding to the type of the functional node.

[0103] In this embodiment, functional nodes may include data flow nodes and control flow nodes. To enable users to more intuitively understand different types of functional nodes, different display effects can be controlled on the sub-connecting lines for different functional nodes.

[0104] Optionally, the type of functional node connected by the sub-connector can be determined, and then the display effect of the sub-connector can be controlled according to the type of functional node.

[0105] Different display effects can include different display colors, different line segments, different thicknesses, etc., and this disclosure does not impose any restrictions on them.

[0106] The special effects generation method provided in this embodiment controls the display effect of the sub-connecting lines to correspond to the type of the functional node, thereby enabling users to more intuitively determine the type of the functional node and improving the efficiency of the drawing operation.

[0107] Furthermore, based on any of the above embodiments, after step 103, the method further includes:

[0108] In response to the user's second trigger operation on the target node, a floating box associated with the target node is displayed, the floating box including the output port and input port corresponding to the target node.

[0109] In this embodiment, after adding a target node to the target connection line, the user can further understand the target node. In response to the user's second trigger operation on the target node, a floating box associated with the target node is displayed, which includes the output port and input port corresponding to the target node.

[0110] The second triggering operation may include moving the cursor to the target node, clicking, double-clicking, long-pressing, etc. on the target node, and this disclosure does not limit it.

[0111] Figure 11 A schematic diagram is drawn for another node provided in the embodiments of this disclosure, such as... Figure 11 As shown, the node drawing page can display a first functional node 1101 and a second functional node 1102. The first functional node 1101 and the second functional node 1102 are communicatively connected via a target connection line 1103. The target connection line 1103 includes a target node 1104, which divides the target connection line 1103 into two sub-connection lines. When the user's mouse is detected hovering over the target node 1104, a floating box 1105 associated with the target node 1104 can be displayed. This floating box 1105 includes the output port 1106 and the input port 1107 corresponding to the target node 1104.

[0112] The special effects generation method provided in this embodiment displays a floating box associated with the target node in response to a second trigger operation by the user on the target node. The floating box includes the output port and input port corresponding to the target node. This allows the user to understand the target node through simple interactive operations, and then perform drawing operations based on the corresponding output and input ports, improving drawing efficiency.

[0113] Furthermore, based on any of the above embodiments, after displaying the floating box associated with the target node in response to the user's second trigger operation on the target node, the method further includes:

[0114] In response to the user's third trigger operation on the floating frame, the display position of the target node is adjusted.

[0115] In this embodiment, to make the display position of the target node more aligned with the user's personalized needs, the user can also adjust the display position of the target node. Optionally, the user can trigger a third trigger operation on the target node, and in response to the user's third trigger operation on the floating frame, the display position of the target node can be adjusted.

[0116] Specifically, the third triggering operation can be a drag-and-drop operation.

[0117] The special effects generation method provided in this embodiment adjusts the display position of the target node in response to a third trigger operation by the user on the floating box. This allows the final drawing result to better match the user's personalized needs and improve the user experience.

[0118] Figure 12 This is a schematic diagram of the structure of the special effects generation device provided in the embodiments of this disclosure, as shown below. Figure 12 As shown, the device includes: a display module 1201, a determination module 1202, a division module 1203, and an adjustment module 1204. The display module 1201 displays a node drawing page, which includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes. The determination module 1202 determines the target position triggered by the user in response to a first trigger operation by the user on a target connecting line between any two functional nodes in the target system. The division module 1203 adds a preset target node at the target position and divides the target connecting line into two sub-connecting lines based on the target node, wherein the target node includes an input port and an output port. The adjustment module 1204, under preset switching conditions, adjusts the line type of any sub-connecting line through the target node to obtain the target special effect.

[0119] Furthermore, based on any of the above embodiments, the partitioning module is used to: communicatively connect the output interface of any functional node to the input port of the target node; and communicatively connect the output port of the target node to the input port of the other functional node among the two functional nodes to obtain the two sub-connection lines.

[0120] Furthermore, based on any of the above embodiments, the number of sub-connecting lines is multiple. The adjustment module is configured to: for each sub-connecting line, determine the port information corresponding to the sub-connecting line, wherein the port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connecting line, and the attribute information of the two nodes connected by the sub-connecting line, the attribute information including functional nodes and target nodes. Based on the port information corresponding to the sub-connecting line, determine whether a preset switching condition is met. If so, adjust the line type of the sub-connecting line.

[0121] Furthermore, based on any of the above embodiments, the sub-connector is a third-order Bézier curve, and the sub-connector consists of an input port, an output port, and other control points. The sub-connector has two line types: a first line type and a second line type. The first line type indicates that the other two control points of the sub-connector are located on opposite sides of the sub-connector. The second line type indicates that the other two control points of the sub-connector are located on the same side of the sub-connector.

[0122] Furthermore, based on any of the above embodiments, the adjustment module is configured to: for each sub-connecting line, if the x-coordinate of the output port of the sub-connecting line is greater than the x-coordinate of the input port of the sub-connecting line, and the attribute of any node connected to the sub-connecting line is a target node, then determine that the sub-connecting line meets the preset switching conditions.

[0123] Furthermore, based on any of the above embodiments, the adjustment module is used to: switch the line type of the sub-connecting line connected to the target node from the first line type to the second line type under preset switching conditions.

[0124] Further, based on any of the above embodiments, the adjustment module is configured to: determine the ordinate information of the input port and output port corresponding to each sub-connecting line; determine the display positions of the other two control points of the sub-connecting line based on the ordinate information of the input port and output port corresponding to the sub-connecting line; and determine the sub-connecting line of the second line type based on the display positions of the other two control points and the input port and output port corresponding to the sub-connecting line.

[0125] Further, based on any of the above embodiments, the adjustment module is configured to: construct a target vector by taking the output port of the sub-connector as the starting point and the input port of the sub-connector as the ending point. If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the right of the target vector. If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the left of the target vector.

[0126] Furthermore, based on any of the above embodiments, the device further includes: a determining module, configured to determine the type of functional node connected to the sub-connector, wherein the functional node includes a data flow node and a control flow node; and a controlling module, configured to control the sub-connector to display a display effect corresponding to the type of the functional node.

[0127] Furthermore, based on any of the above embodiments, the device further includes: a display module, which is also configured to display a floating frame associated with the target node in response to the user's second trigger operation on the target node, the floating frame including the output port and input port corresponding to the target node.

[0128] Furthermore, based on any of the above embodiments, the device further includes: an adjustment module, used to adjust the display position of the target node in response to the user's third trigger operation on the floating frame.

[0129] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0130] Another embodiment of this disclosure also provides an electronic device, including: at least one processor and a memory.

[0131] The memory stores computer-executed instructions.

[0132] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the special effects generation method as described in any of the above embodiments.

[0133] Figure 13 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this disclosure, such as... Figure 13 As shown, the electronic device 1300 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 13 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0134] like Figure 13As shown, the electronic device 1300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1301, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1302 or a program loaded from storage device 1308 into random access memory (RAM) 1303. The RAM 1303 also stores various programs and data required for the operation of the electronic device 1300. The processing unit 1301, ROM 1302, and RAM 1303 are interconnected via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0135] Typically, the following devices can be connected to I / O interface 1305: input devices 1306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1309. Communication device 1309 allows electronic device 1300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 13 An electronic device 1300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0136] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.

[0137] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0138] Another embodiment of this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the special effects generation method as described in any of the above embodiments.

[0139] Another embodiment of this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the special effects generation method as described in any of the above embodiments.

[0140] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0141] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0142] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0143] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0144] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0145] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0146] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0147] In a first aspect, according to one or more embodiments of this disclosure, a method for generating special effects is provided, comprising:

[0148] The node drawing page includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes.

[0149] In response to the user's first trigger operation on the target connection line between any two functional nodes, the target location triggered by the user is determined;

[0150] A preset target node is added at the target location, and the target connection line is divided into two sub-connection lines according to the target node. The target node includes an input port and an output port.

[0151] Under preset switching conditions, the line type of any sub-connecting line can be adjusted through the target node to obtain the target effect.

[0152] According to one or more embodiments of this disclosure, dividing the target connection line into two sub-connection lines based on the target node includes:

[0153] Connect the output interface of any functional node to the input port of the target node for communication.

[0154] The output port of the target node is connected to the input port of the other functional node among the two functional nodes to obtain the two sub-connection lines.

[0155] According to one or more embodiments of this disclosure, the number of the sub-connecting lines is multiple;

[0156] The step of adjusting the line type of any sub-connector line through the target node under the preset switching conditions includes:

[0157] For each sub-connection line, determine the port information corresponding to the sub-connection line. The port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connection line, as well as the attribute information of the two nodes connected by the sub-connection line. The attribute information includes the functional node and the target node.

[0158] Determine whether the preset switching conditions are met based on the port information corresponding to the sub-connector.

[0159] If so, then the line type of the sub-connecting line is adjusted.

[0160] According to one or more embodiments of this disclosure, the sub-connection line is a third-order Bézier curve, and the sub-connection line consists of an input port, an output port, and other control points;

[0161] The sub-connector line includes a first line type and a second line type. The first line type is used to indicate that the other two control points of the sub-connector line are located on both sides of the sub-connector line.

[0162] The second line type is used to indicate that the other two control points of the sub-connector are located on the same side of the sub-connector.

[0163] According to one or more embodiments of this disclosure, determining whether a preset switching condition is met based on the port information corresponding to the sub-connector includes:

[0164] For each sub-connector, if the x-coordinate of the output port of the sub-connector is greater than the x-coordinate of the input port of the sub-connector, and the attribute of any node connected to the sub-connector is a target node, then the sub-connector is determined to meet the preset switching conditions.

[0165] According to one or more embodiments of this disclosure, the operation of adjusting the line type of any sub-connector through the target node under preset switching conditions includes:

[0166] Under preset switching conditions, the line type of the sub-connecting line to which the target node is connected is switched from the first line type to the second line type.

[0167] According to one or more embodiments of this disclosure, switching the line type of the sub-connecting line that connects the target node from a first line type to a second line type includes:

[0168] For each sub-connector, determine the ordinate information of the input port and output port corresponding to the sub-connector;

[0169] The display positions of the other two control points of the sub-connector are determined based on the ordinate information of the input and output ports corresponding to the sub-connector.

[0170] The sub-connecting line of the second line type is determined based on the display positions of the other two control points and the input and output ports corresponding to the sub-connecting line.

[0171] According to one or more embodiments of this disclosure, determining the display positions of the other two control points of the sub-connector line based on the ordinate information of the input port and output port corresponding to the sub-connector line includes:

[0172] Using the output port of the sub-connector as the starting point and the input port of the sub-connector as the ending point, construct the target vector;

[0173] If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the right of the target vector.

[0174] If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, then the other two control points are positioned to the left of the target vector.

[0175] According to one or more embodiments of this disclosure, after dividing the target connection line into two sub-connection lines based on the target node, the method further includes:

[0176] Determine the type of functional node connected by the sub-connector, wherein the functional node includes data flow nodes and control flow nodes;

[0177] Based on the type of the functional node, control the display effect of the sub-connecting line to correspond to the type of the functional node.

[0178] According to one or more embodiments of this disclosure, after adding a preset target node at the target location, the method further includes:

[0179] In response to the user's second trigger operation on the target node, a floating box associated with the target node is displayed, the floating box including the output port and input port corresponding to the target node.

[0180] According to one or more embodiments of this disclosure, after displaying the floating box associated with the target node in response to the user's second triggering operation on the target node, the method further includes:

[0181] In response to the user's third trigger operation on the floating frame, the display position of the target node is adjusted.

[0182] Secondly, according to one or more embodiments of this disclosure, a node connection line adjustment device is provided, comprising:

[0183] The display module is used to display a node drawing page, which includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes.

[0184] The determination module is used to determine the target location triggered by the user in response to the user's first trigger operation on the target connection line between any two functional nodes in the target system;

[0185] A segmentation module is used to add a preset target node at the target location and divide the target connection line into two sub-connection lines according to the target node. The target node includes an input port and an output port.

[0186] The adjustment module is used to adjust the line type of any sub-connecting line through the target node under preset switching conditions to obtain the target effect.

[0187] According to one or more embodiments of this disclosure, the partitioning module is used for:

[0188] Connect the output interface of any functional node to the input port of the target node for communication.

[0189] The output port of the target node is connected to the input port of the other functional node among the two functional nodes to obtain the two sub-connection lines.

[0190] According to one or more embodiments of this disclosure, the number of the sub-connecting lines is multiple;

[0191] The adjustment module is used for:

[0192] For each sub-connection line, determine the port information corresponding to the sub-connection line. The port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connection line, as well as the attribute information of the two nodes connected by the sub-connection line. The attribute information includes the functional node and the target node.

[0193] Determine whether the preset switching conditions are met based on the port information corresponding to the sub-connector.

[0194] If so, then the line type of the sub-connecting line is adjusted.

[0195] According to one or more embodiments of this disclosure, the sub-connection line is a third-order Bézier curve, and the sub-connection line consists of an input port, an output port, and other control points;

[0196] The sub-connector line includes a first line type and a second line type. The first line type is used to indicate that the other two control points of the sub-connector line are located on both sides of the sub-connector line.

[0197] The second line type is used to indicate that the other two control points of the sub-connector are located on the same side of the sub-connector.

[0198] According to one or more embodiments of this disclosure, the adjustment module is configured to:

[0199] For each sub-connector, if the x-coordinate of the output port of the sub-connector is greater than the x-coordinate of the input port of the sub-connector, and the attribute of any node connected to the sub-connector is a target node, then the sub-connector is determined to meet the preset switching conditions.

[0200] According to one or more embodiments of this disclosure, the adjustment module is configured to:

[0201] Under preset switching conditions, the line type of the sub-connecting line to which the target node is connected is switched from the first line type to the second line type.

[0202] According to one or more embodiments of this disclosure, the adjustment module is configured to:

[0203] For each sub-connector, determine the ordinate information of the input port and output port corresponding to the sub-connector;

[0204] The display positions of the other two control points of the sub-connector are determined based on the ordinate information of the input and output ports corresponding to the sub-connector.

[0205] The sub-connecting line of the second line type is determined based on the display positions of the other two control points and the input and output ports corresponding to the sub-connecting line.

[0206] According to one or more embodiments of this disclosure, the adjustment module is configured to:

[0207] Using the output port of the sub-connector as the starting point and the input port of the sub-connector as the ending point, construct the target vector;

[0208] If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the right of the target vector.

[0209] If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, then the other two control points are positioned to the left of the target vector.

[0210] According to one or more embodiments of this disclosure, the apparatus further includes:

[0211] A determining module is used to determine the type of functional nodes connected by the sub-connector, wherein the functional nodes include data flow nodes and control flow nodes;

[0212] The control module is used to control the display effect of the sub-connecting line to correspond to the type of the functional node, based on the type of the functional node.

[0213] According to one or more embodiments of this disclosure, the apparatus further includes:

[0214] The display module is also used to respond to the user's second trigger operation on the target node by displaying a floating box associated with the target node, the floating box including the output port and input port corresponding to the target node.

[0215] According to one or more embodiments of this disclosure, the apparatus further includes:

[0216] The adjustment module is used to adjust the display position of the target node in response to the user's third trigger operation on the floating frame.

[0217] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;

[0218] The memory stores computer-executed instructions;

[0219] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the special effects generation method as described in the first aspect and various possible designs of the first aspect.

[0220] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the special effects generation method described in the first aspect and various possible designs of the first aspect is implemented.

[0221] Fifthly, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the special effects generation method as described in the first aspect and various possible designs of the first aspect.

[0222] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0223] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0224] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for generating special effects, characterized in that, include: The node drawing page includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes. In response to the user's first trigger operation on the target connection line between any two functional nodes, the target location triggered by the user is determined; A preset target node is added at the target location, and the target connection line is divided into two sub-connection lines according to the target node. The target node includes an input port and an output port. Under the preset switching conditions, the line type of any sub-connecting line can be adjusted through the target node to obtain the target effect; The number of sub-connecting lines is multiple; The step of adjusting the line type of any sub-connector line through the target node under the preset switching conditions includes: For each sub-connection line, determine the port information corresponding to the sub-connection line. The port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connection line, as well as the attribute information of the two nodes connected by the sub-connection line. The attribute information includes the functional node and the target node. Determine whether the preset switching conditions are met based on the port information corresponding to the sub-connector. If so, then the line type of the sub-connecting line is adjusted.

2. The method according to claim 1, characterized in that, The step of dividing the target connection line into two sub-connection lines based on the target node includes: Connect the output interface of any functional node to the input port of the target node for communication. The output port of the target node is connected to the input port of the other functional node among the two functional nodes to obtain the two sub-connection lines.

3. The method according to claim 1, characterized in that, The sub-connection line is a third-order Bézier curve, and the sub-connection line consists of an input port, an output port, and other control points; The sub-connector line includes a first line type and a second line type. The first line type is used to indicate that the other two control points of the sub-connector line are located on both sides of the sub-connector line. The second line type is used to indicate that the other two control points of the sub-connector are located on the same side of the sub-connector.

4. The method according to claim 1, characterized in that, The step of determining whether the preset switching conditions are met based on the port information corresponding to the sub-connector includes: For each sub-connector, if the x-coordinate of the output port of the sub-connector is greater than the x-coordinate of the input port of the sub-connector, and the attribute of any node connected to the sub-connector is a target node, then the sub-connector is determined to meet the preset switching conditions.

5. The method according to claim 3, characterized in that, The step of adjusting the line type of any sub-connector line through the target node under the preset switching conditions includes: Under preset switching conditions, the line type of the sub-connecting line to which the target node is connected is switched from the first line type to the second line type.

6. The method according to claim 5, characterized in that, The step of switching the line type of the sub-connecting line that connects the target node from the first line type to the second line type includes: For each sub-connector, determine the ordinate information of the input port and output port corresponding to the sub-connector; The display positions of the other two control points of the sub-connector are determined based on the ordinate information of the input and output ports corresponding to the sub-connector. The sub-connecting line of the second line type is determined based on the display positions of the other two control points and the input and output ports corresponding to the sub-connecting line.

7. The method according to claim 6, characterized in that, The step of determining the display positions of the other two control points of the sub-connector line based on the ordinate information of the input and output ports corresponding to the sub-connector line includes: Using the output port of the sub-connector as the starting point and the input port of the sub-connector as the ending point, construct the target vector; If the ordinate of the input port of the sub-connector is greater than the ordinate of the output port of the sub-connector, then the other two control points are controlled to the right of the target vector. If the ordinate of the input port of the sub-connector is less than the ordinate of the output port of the sub-connector, then the other two control points are positioned to the left of the target vector.

8. The method according to any one of claims 1-7, characterized in that, After dividing the target connector into two sub-connectors based on the target node, the process further includes: Determine the type of functional node connected by the sub-connector, wherein the functional node includes data flow nodes and control flow nodes; Based on the type of the functional node, control the display effect of the sub-connecting line to correspond to the type of the functional node.

9. The method according to any one of claims 1-7, characterized in that, After adding a preset target node at the target location, the method further includes: In response to the user's second trigger operation on the target node, a floating box associated with the target node is displayed, the floating box including the output port and input port corresponding to the target node.

10. The method according to claim 9, characterized in that, After displaying the floating box associated with the target node in response to the user's second trigger operation on the target node, the method further includes: In response to the user's third trigger operation on the floating frame, the display position of the target node is adjusted.

11. A special effects generation device, characterized in that, include: The display module is used to display a node drawing page, which includes multiple functional nodes for creating special effects and multiple connecting lines for connecting at least two of the multiple functional nodes. The determination module is used to determine the target location triggered by the user in response to the user's first trigger operation on the target connection line between any two functional nodes in the target system; A segmentation module is used to add a preset target node at the target location and divide the target connection line into two sub-connection lines according to the target node. The target node includes an input port and an output port. The adjustment module is used to adjust the line type of any sub-connecting line through the target node under preset switching conditions to obtain the target effect; The number of sub-connecting lines is multiple; the adjustment module is specifically used to determine the port information corresponding to each sub-connecting line, wherein the port information includes the horizontal coordinate information of the input port and output port corresponding to the sub-connecting line and the attribute information of the two nodes connected by the sub-connecting line, wherein the attribute information includes the functional node and the target node; Determine whether the preset switching conditions are met based on the port information corresponding to the sub-connector. If so, then the line type of the sub-connecting line is adjusted.

12. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the special effects generation method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the special effects generation method as described in any one of claims 1-10.

14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the special effects generation method as described in any one of claims 1 to 10.