diff --git a/docs/nodes/generator/generator_index.rst b/docs/nodes/generator/generator_index.rst index 155be212cea1a67a2de585eec6c7beb65cf544f3..a36e8eba1c044a180e9829de0625026ec4a5162b 100644 --- a/docs/nodes/generator/generator_index.rst +++ b/docs/nodes/generator/generator_index.rst @@ -1,6 +1,6 @@ -********** -Generators -********** +********* +Generator +********* .. toctree:: :maxdepth: 1 diff --git a/docs/nodes/generator/segment.rst b/docs/nodes/generator/segment.rst index 898dc27969f6d233b5c769e8095e876ae6a8ba0b..ee21b3e52c101b12f8731222146c4ea84ef089f6 100644 --- a/docs/nodes/generator/segment.rst +++ b/docs/nodes/generator/segment.rst @@ -1,5 +1,5 @@ -Segment generator -================= +Segment +======= .. image:: https://user-images.githubusercontent.com/28003269/72606242-ac01b900-3937-11ea-9cb5-1e7b67c00bca.png diff --git a/docs/nodes/list_main/decompose.rst b/docs/nodes/list_main/decompose.rst index bab0937e881851d87620dace391f8eb2c5ec5751..fb967c295e1237db07b7a632f38193488b93473e 100644 --- a/docs/nodes/list_main/decompose.rst +++ b/docs/nodes/list_main/decompose.rst @@ -61,7 +61,7 @@ Example of usage .. image:: https://user-images.githubusercontent.com/14288520/187531176-a495c440-f76b-49a4-adc5-5bd66e65a869.png :target: https://user-images.githubusercontent.com/14288520/187531176-a495c440-f76b-49a4-adc5-5bd66e65a869.png -* Curve-> :doc:`Bezier Spline (Curve) ` +* Curve->Bezier-> :doc:`Bezier Spline (Curve) ` * List->List Main-> :doc:`List Join ` * Curve-> :doc:`Evaluate Curve ` * Viz-> :doc:`Viewer Draw ` diff --git a/docs/nodes/list_main/join.rst b/docs/nodes/list_main/join.rst index 5da0dfea5d825b68f7eec9d4f29fceac1fae0bde..aecb46b4c630d07737a501d3294c774e3797ff10 100644 --- a/docs/nodes/list_main/join.rst +++ b/docs/nodes/list_main/join.rst @@ -83,7 +83,7 @@ Examples .. image:: https://user-images.githubusercontent.com/14288520/187514973-08b68caf-2024-4316-b2d5-834d49f96712.png :target: https://user-images.githubusercontent.com/14288520/187514973-08b68caf-2024-4316-b2d5-834d49f96712.png -* Curve-> :doc:`Bezier Spline (Curve) ` +* Curve->Bezier-> :doc:`Bezier Spline (Curve) ` * Surfaces-> :doc:`Surface from Curves ` * Surfaces-> :doc:`Evaluate Surfaces ` * Viz-> :doc:`Viewer Draw ` \ No newline at end of file diff --git a/docs/nodes/list_struct/flip.rst b/docs/nodes/list_struct/flip.rst index 905fb28ee7cc812c961c8810c55c64efea4ed193..d6e57c9738d204c0228bb28b3d80f0b424b05680 100644 --- a/docs/nodes/list_struct/flip.rst +++ b/docs/nodes/list_struct/flip.rst @@ -1,6 +1,9 @@ List Flip ========= +.. image:: https://user-images.githubusercontent.com/14288520/187999003-a4180572-59d1-47ed-9d02-839bbb58115a.png + :target: https://user-images.githubusercontent.com/14288520/187999003-a4180572-59d1-47ed-9d02-839bbb58115a.png + Functionality ------------- @@ -33,5 +36,10 @@ Outputs Examples -------- -.. image:: https://cloud.githubusercontent.com/assets/5783432/5603155/cd1cc280-9386-11e4-9998-a066258ca94b.jpg - :alt: flip \ No newline at end of file +.. image:: https://user-images.githubusercontent.com/14288520/187999021-e519b2c7-2718-46e6-86ac-e19d8cea2283.png + :alt: flip + :target: https://user-images.githubusercontent.com/14288520/187999021-e519b2c7-2718-46e6-86ac-e19d8cea2283.png + +* Script-> :doc:`Formula ` +* List->List Main-> :doc:`List Join ` +* Text-> :doc:`Stethoscope ` \ No newline at end of file diff --git a/docs/nodes/list_struct/item.rst b/docs/nodes/list_struct/item.rst index 33bbb9496dccaf170ceead17897dbd4d44a10de9..2898da54212bf2fbdf09e86634d3dfc8ade22376 100644 --- a/docs/nodes/list_struct/item.rst +++ b/docs/nodes/list_struct/item.rst @@ -1,6 +1,9 @@ List Item ========= +.. image:: https://user-images.githubusercontent.com/14288520/187971764-8db7c649-349a-4641-8eb5-7177e89875cd.png + :target: https://user-images.githubusercontent.com/14288520/187971764-8db7c649-349a-4641-8eb5-7177e89875cd.png + Functionality ------------- @@ -39,3 +42,15 @@ Examples -------- Trying various inputs, adjusting the parameters, and piping the output to a *Debug Print* (or stethoscope) node will be the fastest way to acquaint yourself with the inner workings of the *List Item* Node. + +.. image:: https://user-images.githubusercontent.com/14288520/187971779-869195ac-8805-4a96-acee-48660b6096a8.png + :target: https://user-images.githubusercontent.com/14288520/187971779-869195ac-8805-4a96-acee-48660b6096a8.png + +* Number-> :doc:`Number Range ` +* Text-> :doc:`Stethoscope ` + +.. image:: https://user-images.githubusercontent.com/14288520/187973547-84721898-e7e1-4a98-b3ce-aa8ab9cf9165.png + :target: https://user-images.githubusercontent.com/14288520/187973547-84721898-e7e1-4a98-b3ce-aa8ab9cf9165.png + +* Number-> :doc:`Number Range ` +* Text-> :doc:`Stethoscope ` diff --git a/docs/nodes/list_struct/levels.rst b/docs/nodes/list_struct/levels.rst index 6592849b9cdade145bd647acb7004129e331fa1e..945aceca3146d8504875fc1e4689ac78e43d6bcb 100644 --- a/docs/nodes/list_struct/levels.rst +++ b/docs/nodes/list_struct/levels.rst @@ -1,6 +1,9 @@ List Levels =========== +.. image:: https://user-images.githubusercontent.com/14288520/188002611-0f681313-5bf5-4f83-a5c3-4221af3d83ae.png + :target: https://user-images.githubusercontent.com/14288520/188002611-0f681313-5bf5-4f83-a5c3-4221af3d83ae.png + Functionality ------------- @@ -66,33 +69,84 @@ Examples of Usage By default, all checkboxes are disabled, so the node does nothing: -.. image:: https://user-images.githubusercontent.com/28003269/187598033-b1489f12-a949-4a14-842c-b77b4d1a94c0.png +.. image:: https://user-images.githubusercontent.com/14288520/188002648-3e992748-06d7-42a9-aeed-e917b183d1c5.png + :target: https://user-images.githubusercontent.com/14288520/188002648-3e992748-06d7-42a9-aeed-e917b183d1c5.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` Let's wrap each number into a separate list (this is what "Graft" option of output socket menus does as well): -.. image:: https://user-images.githubusercontent.com/28003269/187598129-4cd1cb55-4122-43dd-b175-d5ed36b353d9.png +.. image:: https://user-images.githubusercontent.com/14288520/188002682-f598ec87-90f5-46e3-a4c0-2ba0f4de3f23.png + :target: https://user-images.githubusercontent.com/14288520/188002682-f598ec87-90f5-46e3-a4c0-2ba0f4de3f23.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` By enabling "Wrap" at the next level, we put each vertex into a separate list: -.. image:: https://user-images.githubusercontent.com/28003269/187598191-b9da1499-c19b-46b4-8564-6e548ca2a2a0.png +.. image:: https://user-images.githubusercontent.com/14288520/188002711-0a43caf7-cf5a-4e89-9422-9eadd2de44c1.png + :target: https://user-images.githubusercontent.com/14288520/188002711-0a43caf7-cf5a-4e89-9422-9eadd2de44c1.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` The next level - put each list of vertices (object) into a separate list: -.. image:: https://user-images.githubusercontent.com/28003269/187598252-75720f20-48a9-4760-8c97-661867e9843a.png +.. image:: https://user-images.githubusercontent.com/14288520/188002729-8e60dcd0-ac12-4d83-97cc-bd9534ffdfb5.png + :target: https://user-images.githubusercontent.com/14288520/188002729-8e60dcd0-ac12-4d83-97cc-bd9534ffdfb5.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` + And the outermost level - put the whole data structure into additional pair of square brackets: -.. image:: https://user-images.githubusercontent.com/28003269/187598332-9e6ef1a8-80de-4ca4-9991-659c24c6fdc9.png +.. image:: https://user-images.githubusercontent.com/14288520/188002754-ff585102-c296-43ba-9041-6b9eb2285be1.png + :target: https://user-images.githubusercontent.com/14288520/188002754-ff585102-c296-43ba-9041-6b9eb2285be1.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` + By enabling "Flatten" at the deepest available level, we concatenate vertices data into lists of numbers: -.. image:: https://user-images.githubusercontent.com/28003269/187598388-c978e176-e697-4535-ba5b-c7e7612182d4.png +.. image:: https://user-images.githubusercontent.com/14288520/188003925-ccf47ee0-07f1-4ee5-b1ad-4666f94fea9f.png + :target: https://user-images.githubusercontent.com/14288520/188003925-ccf47ee0-07f1-4ee5-b1ad-4666f94fea9f.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` + By flattening at the outermost level, we concatenate lists of vertices into a single list of vertices: -.. image:: https://user-images.githubusercontent.com/28003269/187598453-09121868-9fc0-4078-90f9-21d5dc50a40c.png +.. image:: https://user-images.githubusercontent.com/14288520/188003950-3bc52742-46e9-4dca-b508-44ba143604eb.png + :target: https://user-images.githubusercontent.com/14288520/188003950-3bc52742-46e9-4dca-b508-44ba143604eb.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` + If we enable both Flatten flags, we concatenate lists of vertices into lists of numbers, AND we concatenate lists of numbers into a single list of numbers: -.. image:: https://user-images.githubusercontent.com/28003269/187598519-c849fde8-352a-43a5-b638-787e0e9d425c.png +.. image:: https://user-images.githubusercontent.com/14288520/188003979-cbfcdc08-8477-4126-a1a2-f38c436fd3f1.png + :target: https://user-images.githubusercontent.com/14288520/188003979-cbfcdc08-8477-4126-a1a2-f38c436fd3f1.png + +* Number-> :doc:`List Input ` +* Generator-> :doc:`Plane ` +* Text-> :doc:`Stethoscope ` + +.. image:: https://user-images.githubusercontent.com/14288520/188002634-8ff0edf1-da21-4dd9-af2f-503a17ca4eba.png + :target: https://user-images.githubusercontent.com/14288520/188002634-8ff0edf1-da21-4dd9-af2f-503a17ca4eba.png +* Number-> :doc:`Number Range ` +* List->List Struct-> :doc:`List Split ` +* List->List Main-> :doc:`List Zip ` +* Text-> :doc:`Stethoscope ` \ No newline at end of file diff --git a/docs/nodes/list_struct/list_struct_index.rst b/docs/nodes/list_struct/list_struct_index.rst index 8dbfa2fbd5cc578d166e592ece5d9a06de104c43..90b86a86184b60282ebcf261e6b81166fdad36b0 100644 --- a/docs/nodes/list_struct/list_struct_index.rst +++ b/docs/nodes/list_struct/list_struct_index.rst @@ -5,17 +5,16 @@ List Struct .. toctree:: :maxdepth: 1 - flip + shift_mk2 + repeater + slice + split + start_end item item_insert - repeater reverse - shift_mk2 shuffle - slice - slice_lite sort - split - start_end + flip levels - + slice_lite \ No newline at end of file diff --git a/docs/nodes/list_struct/repeater.rst b/docs/nodes/list_struct/repeater.rst index 8e159294db9c9475c4233ddcd75019c46599b1d9..3f5ef194d3d023c60ec3ce3359aae22b88076221 100644 --- a/docs/nodes/list_struct/repeater.rst +++ b/docs/nodes/list_struct/repeater.rst @@ -1,6 +1,9 @@ List Repeater ============= +.. image:: https://user-images.githubusercontent.com/14288520/187916847-eddb3806-d466-4730-bcba-5cf71ff2bf9e.png + :target: https://user-images.githubusercontent.com/14288520/187916847-eddb3806-d466-4730-bcba-5cf71ff2bf9e.png + Functionality ------------- @@ -41,7 +44,32 @@ Examples Trying various inputs, adjusting the parameters, and piping the output to a *Debug Print* (or stethoscope) node will be the fastest way to acquaint yourself with the inner workings of the *List Repeater* Node. +.. image:: https://user-images.githubusercontent.com/14288520/187930209-252a899b-9db9-4125-8417-6d2d110ce40c.png + :target: https://user-images.githubusercontent.com/14288520/187930209-252a899b-9db9-4125-8417-6d2d110ce40c.png + +* Number-> :doc:`Number Range ` +* Text-> :doc:`Stethoscope ` + +.. image:: https://user-images.githubusercontent.com/14288520/187932385-97321a1c-8a75-41bc-982a-59c420226aec.png + :target: https://user-images.githubusercontent.com/14288520/187932385-97321a1c-8a75-41bc-982a-59c420226aec.png + +* List->List Main-> :doc:`List Join ` +* Curve->Bezier-> :doc:`Bezier Spline (Curve) ` +* Text-> :doc:`Stethoscope ` + A practical reason to use the node is when you need a series of copies of edge or polygon lists. Usually in conjunction with `Matrix Apply`, which outputs a series of `vertex lists` as a result of transform parameters. -.. image:: https://cloud.githubusercontent.com/assets/619340/4186432/efb79892-3760-11e4-9d17-5c7a7a22d9d9.PNG - :alt: ListRepeater_Demo1.PNG \ No newline at end of file +.. image:: https://user-images.githubusercontent.com/14288520/187916873-4eb95b3a-ab51-451f-b45d-04c56714182e.png + :alt: ListRepeater_Demo1.PNG + :target: https://user-images.githubusercontent.com/14288520/187916873-4eb95b3a-ab51-451f-b45d-04c56714182e.png + +* Generator-> :doc:`Circle ` +* Transform-> :doc:`Move ` +* Vector-> :doc:`Vector X/Y/Z ` +* Number-> :doc:`Number Range ` +* Matrix-> :doc:`Matrix In ` +* Transforms-> :doc:`Matrix Apply (verts) ` +* List->List Struct-> :doc:`List Length ` +* Modifier->Modifier Change :doc:`Mesh Join ` +* Text-> :doc:`Stethoscope ` +* Viz-> :doc:`Viewer Draw ` \ No newline at end of file diff --git a/docs/nodes/list_struct/reverse.rst b/docs/nodes/list_struct/reverse.rst index d22716684935b1aa8d8e32e6f52b69acd180e63d..aac2f19670d423fd271f55412d9def66702a1960 100644 --- a/docs/nodes/list_struct/reverse.rst +++ b/docs/nodes/list_struct/reverse.rst @@ -1,6 +1,9 @@ List Reverse ============ +.. image:: https://user-images.githubusercontent.com/14288520/187989090-d505d1bd-601d-47bc-bfeb-4b7026949a30.png + :target: https://user-images.githubusercontent.com/14288520/187989090-d505d1bd-601d-47bc-bfeb-4b7026949a30.png + Functionality ------------- @@ -25,7 +28,11 @@ Depends on incoming data and can be nested. Level 0 is top level (totally zoomed Examples -------- -.. image:: https://cloud.githubusercontent.com/assets/5990821/4190715/1452079c-3788-11e4-8ce2-716b5046cf56.png - :alt: ListReverseDemo1.PNG +.. image:: https://user-images.githubusercontent.com/14288520/187989115-28629d0a-d37b-4d17-9ac5-82ac7cf4dad4.png + :target: https://user-images.githubusercontent.com/14288520/187989115-28629d0a-d37b-4d17-9ac5-82ac7cf4dad4.png + +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Zip ` +* Text-> :doc:`Stethoscope ` In this example the node reverse a list a integers \ No newline at end of file diff --git a/docs/nodes/list_struct/shift_mk2.rst b/docs/nodes/list_struct/shift_mk2.rst index 1f7295e525ff60c1af173e7b638f264724458bad..4d2835c3072d94489f5898d713e48a7d8483067e 100644 --- a/docs/nodes/list_struct/shift_mk2.rst +++ b/docs/nodes/list_struct/shift_mk2.rst @@ -1,6 +1,9 @@ List Shift ========== +.. image:: https://user-images.githubusercontent.com/14288520/187798671-b50c6cfc-d4a9-4f20-8cc5-048b7fd1794f.png + :target: https://user-images.githubusercontent.com/14288520/187798671-b50c6cfc-d4a9-4f20-8cc5-048b7fd1794f.png + Functionality ------------- @@ -31,5 +34,19 @@ Outputs Examples -------- -.. image:: https://cloud.githubusercontent.com/assets/5783432/5603102/bec2bc6e-9384-11e4-9e4a-905da01b7ac1.gif - :alt: shift \ No newline at end of file +.. image:: https://user-images.githubusercontent.com/14288520/187798687-fb5f8564-43f6-40ac-bd87-6e02af1a1649.png + :target: https://user-images.githubusercontent.com/14288520/187798687-fb5f8564-43f6-40ac-bd87-6e02af1a1649.png + +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Zip ` +* Text-> :doc:`Stethoscope ` + +.. image:: https://user-images.githubusercontent.com/14288520/187798712-9237d83a-3b6b-4f9b-b3e7-f9794208838d.gif + :alt: shift + :target: https://user-images.githubusercontent.com/14288520/187798712-9237d83a-3b6b-4f9b-b3e7-f9794208838d.gif + +* Number-> :doc:`Number Range ` +* Generator-> :doc:`Segment ` +* Vector-> :doc:`Vector In ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Viz-> :doc:`Viewer Draw ` \ No newline at end of file diff --git a/docs/nodes/list_struct/shuffle.rst b/docs/nodes/list_struct/shuffle.rst index c045857f19677ea5672146c02729269524e1846d..8ff56bc4b5da8b813e58bb3cc24b99665d913743 100644 --- a/docs/nodes/list_struct/shuffle.rst +++ b/docs/nodes/list_struct/shuffle.rst @@ -1,6 +1,9 @@ List Shuffle ============ +.. image:: https://user-images.githubusercontent.com/14288520/187994149-88dec5a7-e39c-4752-b736-80d0c01f9327.png + :target: https://user-images.githubusercontent.com/14288520/187994149-88dec5a7-e39c-4752-b736-80d0c01f9327.png + Functionality ------------- @@ -43,3 +46,9 @@ Examples The shuffle operation is based on the python random.shuffle. https://docs.python.org/3.4/library/random.html?highlight=shuffle#random.shuffle Trying various inputs, adjusting the parameters, and piping the output to a *Debug Print* (or stethoscope) node will be the fastest way to acquaint yourself with the inner workings of the *List Shuffle* Node. + +.. image:: https://user-images.githubusercontent.com/14288520/187994179-bbc77d38-d352-48d6-add8-7346645fba0d.png + :target: https://user-images.githubusercontent.com/14288520/187994179-bbc77d38-d352-48d6-add8-7346645fba0d.png + +* Number-> :doc:`Number Range ` +* Text-> :doc:`Stethoscope ` \ No newline at end of file diff --git a/docs/nodes/list_struct/slice.rst b/docs/nodes/list_struct/slice.rst index eadefdd0344ae24a42d39d58a1271afb1bb9cf9b..c60d473d7329775c4c26a21d52e74b01229598d1 100644 --- a/docs/nodes/list_struct/slice.rst +++ b/docs/nodes/list_struct/slice.rst @@ -1,5 +1,10 @@ List Slice ========== + +.. image:: https://user-images.githubusercontent.com/14288520/187927363-e884daad-0fb7-46ab-b4bd-9c37db8014d4.png + :target: https://user-images.githubusercontent.com/14288520/187927363-e884daad-0fb7-46ab-b4bd-9c37db8014d4.png + + Functionality ------------- @@ -55,8 +60,12 @@ Some slice examples. >>> l[-1:2] [] +.. image:: https://user-images.githubusercontent.com/14288520/187927397-eaaec673-f32d-489a-8749-7eecfba79070.png + :target: https://user-images.githubusercontent.com/14288520/187927397-eaaec673-f32d-489a-8749-7eecfba79070.png + .. image:: https://cloud.githubusercontent.com/assets/5783432/5229789/771e02b8-7725-11e4-8970-ac33c87f55ec.png - :alt: slice multiple objects from one list (may be many objects also) + :target: https://cloud.githubusercontent.com/assets/5783432/5229789/771e02b8-7725-11e4-8970-ac33c87f55ec.png + :alt: slice multiple objects from one list (may be many objects also) Notes ----- diff --git a/docs/nodes/list_struct/sort.rst b/docs/nodes/list_struct/sort.rst index 93bb795bf6e788e11911d63a38d6f61ff3e8c5c9..2b161d14e5b4d7f201479b66fe2be69964ebabd9 100644 --- a/docs/nodes/list_struct/sort.rst +++ b/docs/nodes/list_struct/sort.rst @@ -1,6 +1,9 @@ List Sort ========= +.. image:: https://user-images.githubusercontent.com/14288520/187995646-ed8c3c53-3fad-4882-9175-6cf9bd037bf3.png + :target: https://user-images.githubusercontent.com/14288520/187995646-ed8c3c53-3fad-4882-9175-6cf9bd037bf3.png + Functionality ------------- @@ -28,13 +31,40 @@ Examples -------- Sorting a list of random numbers: + .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_00.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_00.png + +* Number-> :doc:`Random Num Gen ` +* Text-> :doc:`Stethoscope ` +* Viz-> :doc:`Viewer 2D ` Sorting a List of Objects: + .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_01.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_01.png + +* Scene-> :doc:`Objects In ` +* Number-> :doc:`List Input ` +* Text-> :doc:`Stethoscope ` + Sorting faces based on theirs center Z coordinate: + .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_02.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_02.png + +* Generator-> :doc:`Suzanne ` +* Text-> :doc:`Stethoscope ` +* Vector-> :doc:`Vector Out ` +* Text-> :doc:`Stethoscope ` Examples of sorting at different levels: + .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_03.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/list_struct/sort/list_sort_sverchok_blender_example_03.png + +* Number-> :doc:`Random Num Gen ` +* Generator-> :doc:`Line ` +* List->List Struct-> :doc:`List Reverse ` +* Text-> :doc:`Stethoscope ` \ No newline at end of file diff --git a/docs/nodes/list_struct/split.rst b/docs/nodes/list_struct/split.rst index 9ebc566cfe3f6c93e3a7a95a624035f9b89774b7..385a5a73afbb24d586c94c8d84eef90e143faac3 100644 --- a/docs/nodes/list_struct/split.rst +++ b/docs/nodes/list_struct/split.rst @@ -1,5 +1,9 @@ List Split ========== + +.. image:: https://user-images.githubusercontent.com/14288520/187968085-a2e503ea-5173-40b2-add1-ded7aa2dcc22.png + :target: https://user-images.githubusercontent.com/14288520/187968085-a2e503ea-5173-40b2-add1-ded7aa2dcc22.png + Functionality ------------- @@ -52,3 +56,9 @@ Examples -------- Trying various inputs, adjusting the parameters, and piping the output to a *Debug Print* (or stethoscope) node will be the fastest way to acquaint yourself with the inner workings of the *List Item* Node. + +.. image:: https://user-images.githubusercontent.com/14288520/187968105-3093b440-92a3-4ed2-9359-8f8ef1567fab.png + :target: https://user-images.githubusercontent.com/14288520/187968105-3093b440-92a3-4ed2-9359-8f8ef1567fab.png + +* Number-> :doc:`Number Range ` +* Text-> :doc:`Stethoscope ` diff --git a/docs/nodes/list_struct/start_end.rst b/docs/nodes/list_struct/start_end.rst index c808b140239e451e515f4a1a4d9d75e5a606a79e..bcefb3e45c2d7d43f99e71d3fa04b730868f374a 100644 --- a/docs/nodes/list_struct/start_end.rst +++ b/docs/nodes/list_struct/start_end.rst @@ -1,6 +1,9 @@ List First & Last ================= +.. image:: https://user-images.githubusercontent.com/14288520/187969524-7f440ab4-dd1d-446b-b8eb-035fc4641cfb.png + :target: https://user-images.githubusercontent.com/14288520/187969524-7f440ab4-dd1d-446b-b8eb-035fc4641cfb.png + Functionality ------------- @@ -26,5 +29,9 @@ Outputs Examples -------- -.. image:: https://cloud.githubusercontent.com/assets/5783432/5603173/c487d550-9387-11e4-8b3e-f45c2250048b.jpg - :alt: First-Last \ No newline at end of file +.. image:: https://user-images.githubusercontent.com/14288520/187969556-0a90526b-a897-4819-857a-f09bc17eac2f.png + :target: https://user-images.githubusercontent.com/14288520/187969556-0a90526b-a897-4819-857a-f09bc17eac2f.png + +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Zip ` +* Text-> :doc:`Stethoscope ` \ No newline at end of file diff --git a/nodes/list_struct/item.py b/nodes/list_struct/item.py index 6ea409c100a72484d89edd0261d88d8973514022..4a04086e214f41668a010797370fa0f9d20f7a9b 100644 --- a/nodes/list_struct/item.py +++ b/nodes/list_struct/item.py @@ -32,7 +32,7 @@ import numpy as np class SvListItemNode(bpy.types.Node, SverchCustomTreeNode): ''' Triggers: List Item Out - Tooltip: Get elements from list at desired indexes + Tooltip: Get elements from list at desired indexes\n\tL=[[5,6,7,8]], i=[0,0,2,1], lvl:2 => item: [[5,5,7,6]], other: [[8]]; lvl:1 => item: [[5,6,7,8], [5,6,7,8]], other: [] ''' bl_idname = 'SvListItemNode' bl_label = 'List Item' diff --git a/nodes/list_struct/levels.py b/nodes/list_struct/levels.py index 65088cbe85a7ac6426aaba646ed4c2b6602ba2e1..f8408bf42e30ef17e1f44b05f4dd0c42da893163 100644 --- a/nodes/list_struct/levels.py +++ b/nodes/list_struct/levels.py @@ -57,7 +57,7 @@ class SvNestingLevelEntryMK2(bpy.types.PropertyGroup): class SvListLevelsNodeMK2(SverchCustomTreeNode, bpy.types.Node): ''' Triggers: List Levels - Tooltip: List nesting levels manipulation + Tooltip: List nesting levels manipulation\n\t[[0,1,2,3,4]] (Flatten) => [0,1,2,3,4]\n\t[[0,1,2,3,4]] (Wrap) => [[[0,1,2,3,4]]] ''' bl_idname = 'SvListLevelsNodeMK2' bl_label = 'List Levels' diff --git a/nodes/list_struct/repeater.py b/nodes/list_struct/repeater.py index fc3e5b5eee98f43904af9c021ff2f9778be647db..ed951ed6c83c3bcd99a3a65b5b452c14e6527b58 100644 --- a/nodes/list_struct/repeater.py +++ b/nodes/list_struct/repeater.py @@ -24,7 +24,9 @@ from sverchok.data_structure import (updateNode, changable_sockets, fixed_iter) class ListRepeaterNode(bpy.types.Node, SverchCustomTreeNode): - ''' List repeater ''' + ''' List repeater + [[0,1,2,3,]] L=1,*3 => [[ [0,1,2,3], [0,1,2,3], [0,1,2,3] ]] + ''' bl_idname = 'ListRepeaterNode' bl_label = 'List Repeater' bl_icon = 'OUTLINER_OB_EMPTY' diff --git a/nodes/list_struct/reverse.py b/nodes/list_struct/reverse.py index 8b0bd6c82ff37b17a885298ff436116af93a135d..31d4941cc3913376df9b2d26fdf939a0ba935d53 100644 --- a/nodes/list_struct/reverse.py +++ b/nodes/list_struct/reverse.py @@ -26,7 +26,7 @@ from numpy import ndarray class ListReverseNode(bpy.types.Node, SverchCustomTreeNode): ''' Triggers: Invert list order - Tooltip: Reverse the elements order of a list + Tooltip: Reverse the elements order of a list\n\t[[1,2,3,4]] => [[4,3,2,1]] ''' bl_idname = 'ListReverseNode' bl_label = 'List Reverse' diff --git a/nodes/list_struct/shift_mk2.py b/nodes/list_struct/shift_mk2.py index 6279ee43cb3608b595c6974dad7829d5c40e8f84..38f05f4b76e0b5d12803a60598c4d7a9056c6c28 100644 --- a/nodes/list_struct/shift_mk2.py +++ b/nodes/list_struct/shift_mk2.py @@ -28,7 +28,7 @@ from sverchok.data_structure import (updateNode, changable_sockets) class ShiftNodeMK2(bpy.types.Node, SverchCustomTreeNode): ''' Triggers: Offset list items - Tooltip: Shift the order of the elements in a list [1,2,3] --> [2,3,1] + Tooltip: Shift the order of the elements in a list\n\t[1,2,3] --> [2,3,1] ''' bl_idname = 'ShiftNodeMK2' bl_label = 'List Shift' diff --git a/nodes/list_struct/shuffle.py b/nodes/list_struct/shuffle.py index c5d245801dae24b78f9fd0049d5d154e56eccdb1..98088dc89009e41ce40a4bd57bbd8cfd4b8c7999 100644 --- a/nodes/list_struct/shuffle.py +++ b/nodes/list_struct/shuffle.py @@ -28,7 +28,7 @@ from numpy import random as np_random, ndarray, array class ListShuffleNode(bpy.types.Node, SverchCustomTreeNode): ''' Triggers: Randomize list order - Tooltip: Change randomly the order of the elements in a list + Tooltip: Change randomly the order of the elements in a list\n\t [[0,1,2,3,4,5]] => [[4,2,1,0,5,3]] ''' bl_idname = 'ListShuffleNode' bl_label = 'List Shuffle' diff --git a/nodes/list_struct/slice.py b/nodes/list_struct/slice.py index 2e89efba3f59107bbbbf09b90172c3d4afb50965..a27eeb20c1ed41953cb5c99fe7f649d097bd74d6 100644 --- a/nodes/list_struct/slice.py +++ b/nodes/list_struct/slice.py @@ -33,7 +33,10 @@ from numpy import ndarray, arange, delete class ListSliceNode(bpy.types.Node, SverchCustomTreeNode): - ''' List Slice ''' + ''' List Slice + [0,1,2,3,4,5] [1:-1] => [1,2,3,4] + [0,1,2,3,4,5] [1: 3] => [1,2] + ''' bl_idname = 'ListSliceNode' bl_label = 'List Slice' bl_icon = 'OUTLINER_OB_EMPTY' diff --git a/nodes/list_struct/split.py b/nodes/list_struct/split.py index 55f5815e16520e18ca34d1788ba55b7b8cfb56dd..b652f49f25706beedca975d302809f58798866f0 100644 --- a/nodes/list_struct/split.py +++ b/nodes/list_struct/split.py @@ -30,7 +30,10 @@ def split(data, size): class SvListSplitNode(bpy.types.Node, SverchCustomTreeNode): - ''' List Split ''' + ''' List Split + [[0,1,2,3,4,5]] [lvl:1, size:1] => [ [0], [1], [2], [3], [4], [5] ] + [[0,1,2,3,4,5]] [lvl:1, size:3] => [ [0,1,2], [3,4,5] ] + ''' bl_idname = 'SvListSplitNode' bl_label = 'List Split' bl_icon = 'OUTLINER_OB_EMPTY' diff --git a/nodes/list_struct/start_end.py b/nodes/list_struct/start_end.py index 93c91c89ad5931419e94311ec2473e7dd4eef8a3..e2e707dee823044ce35a5deff6b53741e2b23654 100644 --- a/nodes/list_struct/start_end.py +++ b/nodes/list_struct/start_end.py @@ -27,7 +27,7 @@ from sverchok.data_structure import updateNode, changable_sockets, levels_of_lis class ListFLNode(bpy.types.Node, SverchCustomTreeNode): ''' Triggers: Split First and Last items - Tooltip: Get first and last elements of a list, also available the middle. + Tooltip: Get first and last elements of a list, also available the middle.\n\t[[0,1,2,3,4]] => first: [[0]], last: [[4]], middle: [[1,2,3]] ''' bl_idname = 'ListFLNode' bl_label = 'List First & Last'