Jump to content

Access vectors from array of array of array of vectors


dfred

Recommended Posts

I'm following a Grasshopper tutorial on how to connect points from two cubes and loft the edges together. Using Hrvoje's Index Display capsule set up I was able to get to the arrays of vectors, but I can't get to the individual points to create the edges. I'm thinking I need to flatten the array somehow? Or maybe there's a better way to do this altogether. Thanks.

 

image.thumb.png.eef085e05205736e802410cfa9bb16a4.png

image.thumb.png.9f6b44019870624ed9710d58c94b4962.png

 

image.thumb.png.72f3e0587d4770c8cc7da526f209ef2c.png

 

 Here's the section in the tutorial: 

 

 

LoftCubes_v4.c4d

 

 

 

 

 

 

 

Link to comment

On the outside of the Loop Carried Value node you iterate over the single elements of the vector array to transform each individual position, then on the inside you expect that data to be an array again. You need to do an Assemble Collection to deliver an array into the LCV node.

Edit: On a second look, the Inner Scope of the LCV you are using is not an index, you can't use it as such inside of the LCV.

To be honest, i have no idea what you are trying to achieve with the Children Op nodes.

Keep in mind that you can access the Distirbution data directly. Just plug a Decompose Container into the Distribution Output of the Polygon Center Distribution to get all matrices in an array.
image.png.a02820a0c7096688f08c5878152c01a2.png

Link to comment
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • LATEST ACTIVITIES

    1. 16

      3D world #310

    2. 53

      Looking forward to the next C4D release

    3. 8

      CORE 4D Youtube channel

    4. 1

      Nodes Modifier result isn't updated anymore

    5. 8

      CORE 4D Youtube channel

×
×
  • Create New...

Copyright Core 4D © 2023 Powered by Invision Community