Creating new layers and objects 2d/3d dynamically?

This might have been asked before so forgive me if I’m being redundant:)

I have dome some searching around vvvv.org and the web but have not found specific tutorials/solutions to the below questions.

Is there a way to do the following:

1. Dynamically add new layers in the group node
I am aware of CreateNode but Im interested in further examples of
this feature.

2. Dynamically create new 2d/3d objects from a file or by user imput.
Not sure if this could be done with spreads or not. Example"user presses a button and an object is created or deleted.

3. Save current user session(# of objects with their x,y,z positions, to a file for later use.

Any sugguestions / guidance is greatly appriciated!

Thanks!

Ken

It is not advisable to use Createnode to add nodes in your patches.
Normaly objects, layers, whatevers, are turned off or moved out of the renderer when not needed.

I think you are missing the point about spreads here. If a user presses a button, and you want to show that as an extra quad (example), just increase the spreadcount of the thing that makes the quads. (see patch)

You can not save and load running patches exactly like they are when running. Best example is an LFO, this will always start with 0 cycles when you create it, or when a patch is loaded that contains one. It doesn’t mather if it is saved on cycle 433121. So to do this, you must prepare you patches to have an “initial” state, and be able to extract the values you need when you save them to, for example, a separate textfile. So yes you can save it, but not by simple saving the patch, you need to build your own load and save mechanism. We use reader and writer nodes for that.

SpaceCounter.v4p (8.9 kB)

Thank you Westbam for the informative reply!

The reason I was looking at spreads is that they are arrays and I know with traditional programming you can load your data into an array and then go from there.

I figured I could insert the saved data into spread slices as needed then passing the data from the spread to the various nodes.

I will experiment with the reader and writer nodes.

I am somewhat of a beginner with VVVV but see that great potential in the power of the vvvv software platform.

I see that you have experience with DMX for lighting. I too had worked with lighting. I started my own lighting company back in 2003 called Spectral Lighting. Our lighting shows went from my garage to about 10,000+ people in 4 years. I used Martin Lighting equipment as it was some of best professional gear out there.

Here is a list of what I owned. Unfortunately I had to sell it to move to California but I hope to get back into lighting one day.

This was back in 2004

4 Martin MX1’s
http://www.martin.com/product/product.asp?product=mx-1

2 Martin Wizard’s
http://www.martin.com/product/product.asp?product=wizard

2 Martin MX4’s
http://www.martin.com/product/product.asp?product=mx-4

4 Martin Acrobat’s
http://martin.com/product/product.asp?product=acrobat

8 Martin Roboscan 812’s
http://www.martin.com/product/product.asp?product=roboscan812

1 Martin MC- Show time controller
http://www.martin.com/product/product.asp?product=mc-showtime

1 American DJ Operator II
http://www.americandj.com/ProductDetails.aspx?ItemNumber=957&

1 Chauvett Show Xpress Plus Controller
http://www.chauvetlighting.com/xpress-plus.html