Quantcast
Channel: eX-SI » arrays
Browsing latest articles
Browse All 20 View Live

Image may be NSFW.
Clik here to view.

ICE: Building an array from an fcurve

Suppose you have an animated scalar value, and you want to store its values as you play through a simulation. And suppose you also want to keep a running total of all the values up to the current...

View Article



Image may be NSFW.
Clik here to view.

More fun with arrays

Here’s a recent array question from the mailing list: How do you build an array that looks like this? [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, ...] ? I didn’t check the other answers yet, because that...

View Article

Image may be NSFW.
Clik here to view.

Context matters: Get Set Size versus Get Array Size

PointNeighbors is a set of per-point arrays, so when you feed that into Get Array Size, you get a set of per-point integers (the number of neighbors for each point). Get Set Size, in contrast, will...

View Article

Image may be NSFW.
Clik here to view.

Getting the neighbors of a specific point

There’s surely a better way, but this was a good little exercise in using ICE array nodes.

View Article

Image may be NSFW.
Clik here to view.

Getting the neighbors of a specific point, part 2

As I wrote yesterday, there surely was a better way to get the neighbors of a specific point than messing around with a bunch of arrays. Here it is. Hat tip to Eric Thivierge

View Article


Image may be NSFW.
Clik here to view.

Scripting: Getting the StrandPosition arrays

StrandPosition is an array of arrays: one array of positions for each strand. Here’s a Python snippet: from win32com.client import constants xsi = Application def dispFix( badDispatch ): import...

View Article

Image may be NSFW.
Clik here to view.

ICE: Removing every Nth element from an array

The interesting part (to me) is generating the sequence of indices. It’s too bad I have to create a second array to do it, but I keep the size down to an Nth of the original.

View Article

Image may be NSFW.
Clik here to view.

Using geometry queries to find and update points

Here’s a couple of examples of how to use a geometry query to modify certain points in a point cloud. The geometry queries return locations, and you can’t plug locations into Set Data nodes, so you...

View Article


Image may be NSFW.
Clik here to view.

Sorting points with Sort Array with Value

Here’s a couple of examples to illustrate how to use Sort Array with Key. This ICE tree sorts points by their Y position. And this tree sorts points by their brightness.

View Article


Image may be NSFW.
Clik here to view.

ICE: Summing up array elements by group

Given an array like [0, 3, 7, 22, 6, 71, 1, 0, 9] how do you sum up the first group of three elements (0+3+7), the second group of three elements (22+6+71), the third group (1+0+9), and so on and so...

View Article
Browsing latest articles
Browse All 20 View Live




Latest Images