Support Forum

[Frage] Points from List

Schlagworte:
  • Points
  • Visual
  • Scripting
  • Polygon3D

Hi everyone

I have a List that contains lengths for (X) & (Y) points structured Like the below:
X points
List[4]0 List[5]1 List[5]2 List[5]3 List[5]Y points
0 List[5]1 List[5]2 List[5]3 List[5]

I want to create 16 points combination using the above with Point3D Nod, but if I connect both List (X, Y) to the Point3D Nod I get the result as attached (Result) with 4 points . my target is to combine 0 List in the x with all 4 Y and to do this with all X List. I could achieve this by dividing the Y using ListItem Node as shown in the correct-Points attachment.

thanks

Anhänge (3)

Typ: image/jpeg
109-mal heruntergeladen
Größe: 793,76 KiB
Typ: image/jpeg
42-mal heruntergeladen
Größe: 978,74 KiB
Typ: image/jpeg
30-mal heruntergeladen
Größe: 798,12 KiB

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Hallo Horst,

vielleicht ist es ein gute Idee, die Optionen
-One list with single elements
-All Elements as a block
-Input lists as single element list per row
-Input lists as block per row

mal irgendwo zu erklären. In der Hilfe habe ich dazu nichts gefunden.
Insbesondere müssen folgende Dinge erklärt werden:

Werden die Operationen an der/den Listen vor der Ausführung des Nodes gemacht, oder mit dem Ergebnis?
Dabei sollte "Input lists" vs. "list" erklärt werden.

Was ist ein "Block"? Es gibt eigentlich nur verschachtelte Listen!

Was ist mit "per Row" gemeint. Die Listen können beliebig tief verschachtelt sein.
Eine "zweidimensionale" Liste mit Spalten und Zeilen ist sicher verbreitet, aber es kommen auch tiefer verschachtelte Listen vor!

Was ist eine "single element list"? Eine lineare List, mit atomaren Werten/Elementen ?

Nur zum Vergleich: Dynamo hat die "Listenmodifikation an den Eingängen und Ausgängen" wieder entfernt, und setzt darauf, dass der User die mit Listen mit Nodes in die richtige Form bringt.
Darüber hinaus ist es ein grunlegendes Paradigma, dass die Struktur der Listen hinsichtlich Verschachtelung am Ausgang erhalten bleiben muss. D.h. aus der Listenstruktur an den (zwei) Eingängen
muss eine äquivalente Listenstruktur am Ausgang unter Berücksichtigung des Lacings erzeugt werden. Die Verschachtelungstiefe der Elemente darf dabei keine Rolle spielen. Sonst ist ein Script/Node ggf. nicht in der Lage, mehrere Elemente aus Listen zu erzeugen.

Anhänge (1)

Typ: image/png
17-mal heruntergeladen
Größe: 13,82 KiB
11 - 16 (16)

Hi,

I'm not able to open the avsprj file. Please attach the pyp file.

Best regards
Horst

Zitiert von: Horst_Hohmann
Hi,
I'm not able to open the avsprj file. Please attach the pyp file.
Best regards

Horst

attached

best regards

Anhänge (1)

Typ: text/xml
694-mal heruntergeladen
Größe: 17,13 KiB

Hi,

please try

- X: Input list as single element list per row
- Y: All elements as block

Best regards
Horst

Zitiert von: Horst_Hohmann
Hi,
please try
- X: Input list as single element list per row

- Y: All elements as block
Best regards

Horst

Hi

this will generate 4List each containing 20 Lists. the X will be paired with a single value from the Y List.attached

regards

Anhänge (1)

Typ: image/jpeg
13-mal heruntergeladen
Größe: 389,76 KiB

Hi,

please show me the current problem. Is it the list structure?

Best regards
Horst

Zitiert von: Horst_Hohmann
Hi,
please show me the current problem. Is it the list structure?
Best regards

Horst

Hi

the problem is I am trying to get the list in the Point3d node to be structured Like Points-Correct. jpg using the script List2.pyp. I changed how the node read the list using all four options but I was not able to get the required List structure.

Anhänge (2)

Typ: image/jpeg
24-mal heruntergeladen
Größe: 863,06 KiB
Typ: text/xml
701-mal heruntergeladen
Größe: 17,13 KiB
11 - 16 (16)