-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2774 from nortikin/dictionary_socket
Dictionary in and dictionary out nodes
- Loading branch information
Showing
9 changed files
with
452 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Dictionary in | ||
============= | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71763474-bd89a080-2ef5-11ea-9b5d-e4526c1e5357.png | ||
|
||
Functionality | ||
------------- | ||
|
||
The node creates dictionary with costume keys and given data. | ||
It can be used for preparing data structure which is required for some nodes. | ||
|
||
Category | ||
-------- | ||
|
||
Dictionary -> dictionary in | ||
|
||
Inputs | ||
------ | ||
|
||
- **-----** - can be connected with any other output socket of any type (10 maximum connections) | ||
|
||
Outputs | ||
------- | ||
|
||
- **Dict** - dictionary(ies) | ||
|
||
|
||
Examples | ||
-------- | ||
|
||
**Creating complex data structure:** | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71763703-51f50280-2ef8-11ea-845a-f924cd53f79d.png | ||
|
||
**Does not use the same keys:** | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71763737-be700180-2ef8-11ea-8cf9-4f8cf94286cb.png | ||
|
||
**Does not try join dictionaries with different keys, only keys of first dictionary in a list are taken in account:** | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71763756-fe36e900-2ef8-11ea-8ae0-300aebc95ad1.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,9 @@ | ||
********** | ||
Dictionary | ||
********** | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
dictionary_in | ||
dictionary_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,29 @@ | ||
Dictionary out | ||
============== | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71804968-6a8f2500-307e-11ea-85ce-8c3c7619ee0a.png | ||
|
||
Functionality | ||
------------- | ||
|
||
The node unpacks dictionary and assign values of each key to sockets with names of keys. | ||
|
||
Category | ||
-------- | ||
|
||
Dictionary -> dictionary out | ||
|
||
Inputs | ||
------ | ||
|
||
- **Dict** - dictionary(ies) | ||
|
||
Outputs | ||
------- | ||
|
||
According keys of input dictionary. If multiple dictionary are given only keys of first dictionary are taken in account. | ||
|
||
Examples | ||
-------- | ||
|
||
.. image:: https://user-images.githubusercontent.com/28003269/71805215-218ba080-307f-11ea-8321-1886a62837c5.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
Empty file.
Oops, something went wrong.