-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Loop In and Loop Out Nodes * faster loop * for_each method implemented * for each method implemented 2 * better exceptions * better exceptions 2 * break the loop feature * skip this feature * custom socket label * docs * update docs * typo in docs [skip-ci] * Durman suggestions * cleaning
- Loading branch information
Showing
8 changed files
with
649 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ Logic | |
input_switch_mod | ||
custom_switcher | ||
range_switch | ||
loop_in | ||
loop_out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Loop In | ||
======= | ||
|
||
This node in conjunction with the Loop out node can create loops with nodes | ||
|
||
Offers two different modes 'Range' and 'For Each' | ||
|
||
Range | ||
----- | ||
|
||
In this mode the all the data inputted to the Loop In node will be processed every iteration. | ||
|
||
For Each | ||
-------- | ||
|
||
In this mode the inputted data will be splitted before being processed and there will be one loop per every level 1 object. | ||
|
||
Operators | ||
--------- | ||
|
||
**Create Loop Out**: creates a Loop out node and links the Loop In - Loop Out socket. | ||
|
||
|
||
Inputs | ||
------ | ||
|
||
**Iterations**: Number of repetitions (only in Range mode). | ||
|
||
Data0, Data1... inputs will be created when the last one is linked | ||
|
||
Options | ||
------- | ||
|
||
**Max Iterations**: Maximum iterations (in N-panel and Contextual Sverchok Menu) | ||
**Socket Labels**: To change sockets names (in N-panel) | ||
|
||
Outputs | ||
------- | ||
|
||
**Loop Out**: Socket to link with the Loop Out node. | ||
|
||
**Loop Number / Item Number**: Actual Repetition / Item. | ||
|
||
**Total Loops / Total Items**: Total Repetitions / Items. | ||
|
||
Data0, Data1... output sockets will be created when the last input is linked | ||
|
||
Examples | ||
-------- | ||
|
||
Range mode example, Break used to control the maximum vertices. | ||
|
||
.. image:: https://user-images.githubusercontent.com/10011941/101332093-22234d00-3875-11eb-819a-68e86ef8c2c2.png | ||
|
||
For Each mode example, Skip input used to mask the results. | ||
|
||
.. image:: https://user-images.githubusercontent.com/10011941/101334215-e047d600-3877-11eb-89df-cfaaf73dd427.png | ||
|
||
You can change the socket labels in the N-Panel | ||
|
||
.. image:: https://user-images.githubusercontent.com/10011941/101360702-519a7f80-389e-11eb-826d-0e1c5a7152d1.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Loop In | ||
======= | ||
|
||
This node in conjunction with the Loop In node can create loops with nodes | ||
|
||
Offers two different modes 'Range' and 'For Each' | ||
|
||
|
||
Operators | ||
--------- | ||
|
||
**Create Loop In**: creates a Loop In node and links the Loop In - Loop Out socket. | ||
|
||
|
||
Inputs | ||
------ | ||
|
||
**Loop Out**: Socket to link with the Loop Out node. | ||
|
||
**Break**: If a True value is inputted the loop will stop (Only if Loop In is in Range Mode). | ||
|
||
**Skip**: If a True value is inputted the loop the result wont be added to the output, like a internal mask. (Only if Loop In is in For Each Mode). | ||
|
||
Data0, Data1... inputs will be created coping the Loop in Outputs | ||
|
||
|
||
Outputs | ||
------- | ||
|
||
|
||
Data0, Data1... inputs will be created coping the Loop in Outputs | ||
|
||
|
||
Examples | ||
-------- | ||
|
||
.. image:: https://user-images.githubusercontent.com/10011941/101332093-22234d00-3875-11eb-819a-68e86ef8c2c2.png | ||
|
||
.. image:: https://user-images.githubusercontent.com/10011941/101334215-e047d600-3877-11eb-89df-cfaaf73dd427.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.