Points & Lists with multi-D

Would be helpful in avoiding Process List when having to do math (Add Lists, Multiply Lists, Calculate List) on multi-D lists: the results could simply be integrated as new Ds in the original point or list.

The ultimate solution to this would be Iteration: Turn most nodes into iterators by allowing single-value ports to accept lists and Lists within lists. I see how adding 5D, 6D, etc. points could be useful in the meantime, but after discussing with some of the team, we’re thinking it would be better not to add these temporary nodes that, for some people, might just clutter their node library, and that would enable us to get to iteration and lists of lists a little bit sooner. If you or anyone else would be interested in a little C coding, it would be pretty straightforward to make custom nodes for as many multi-Ds as you want if you started with the source code for 4D point nodes.

1 Like

Thanks, if it’s coming in some form or another, I’ll gladly work with it when it’s available.

Looking at the code for Make 4D Point, modifying the source code seems straightforward enough. What should I use for compiling (or are there instructions somewhere on how to compile)?

#include "node.h"

					 "title" : "Make 4D Point",
					 "keywords" : [ "homogenous", "xyzw", "coordinates", "vector" ],
					 "version" : "2.0.0",
					 "node": {
						  "exampleCompositions" : [ ]

void nodeEvent
		VuoInputData(VuoReal, {"default":0.0}) x,
		VuoInputData(VuoReal, {"default":0.0}) y,
		VuoInputData(VuoReal, {"default":0.0}) z,
		VuoInputData(VuoReal, {"default":0.0}) w,
		VuoOutputData(VuoPoint4d) point
	point->x = x;
	point->y = y;
	point->z = z;
	point->w = w;

Great! Instructions are here: http://api.vuo.org/1.2.6/group__DevelopingNodeClasses.html

Quick start / The easiest way to start developing a node class is with one of the example Qt projects for a node class, which are provided with the Vuo SDK. / Install Qt and Qt Creator.

As Qt ask for Xcode, I would write “Install Xcode, Qt, and Qt Creator.”

Yeah, good point. There’s also the Making nodes in C tutorial, which covers the workspace setup in more detail.  

1 Like

Hum… Xcode installed, Command Line Tools installed, Qt and Qt Creator installed, opened a copy of the stateless project. I get this warning, not sure what to do with it: No valid kit found.

In the transcript of the Making nodes in C tutorial, see the Troubleshooting section on the “No valid kits found” message.

1 Like

Now Qt is saying:

Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

Error while parsing file /Applications/Vuo SDK/vuo-1.2.6-sdk/example/node/stateless copie/example.stateless.pro. Giving up.

So I run /usr/bin/xcodebuild in the Terminal and it outputs this:

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

This is with macOS 10.13 and Xcode 9.

Ugh. Does this help? https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error

1 Like

Thanks. In Terminal: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer