A Structure from an Iterator?

gutsblow's picture

I have an iterator with say like 30 gl points in it and I applied noise in the iterator so that they move randomly. Is there anyway I can get a structure containing the position values of all these points? Thank you!

cwright's picture
Re: A Structure from an Iterator?

You cannot have outputs from iterators unless you're on Snow Leopard.

gutsblow's picture
Re: A Structure from an Iterator?

Can you tell me how to achieve that in Snow Leopard?

itsthejayj's picture
Re: A Structure from an Iterator?

By 'eck! i can output from an iterator ... finally! didn't notice that in SL, thanks for the heads up cwright

gutsblow's picture
Re: A Structure from an Iterator?

Yes, its pretty cool that we can output from iterators, but i couldn't get a structure out of it. Any sample composition would be of great help

dust's picture
Re: A Structure from an Iterator?

what is the requisite to publishing an output from an iterator, the inspector says it has values for published port and keys on both the out and input but when i go to publish an output it is grayed ? ? does anyone know what the iterator is expecting as far as types i have tried numbers booleans, virtual etc... i have tried publishing on root and copy/paste but no good, i have tried output splitters etc....

gutsblow's picture
Re: A Structure from an Iterator?

I figured out a way to export structures from the iterator. I am attaching the composition. It is a quick comparison between iteration w/structures and without structures. I don't know if this is the right way, but works fine.

PreviewAttachmentSize
iteration_structure.qtz6.67 KB

gutsblow's picture
Re: A Structure from an Iterator?

I think you can't publish data from an iterator if it has renderers or consumers. Have a look at the attached composition. It is a comparison between iteration without publishing output and with publishing output.

PreviewAttachmentSize
iteration_structure.qtz6.67 KB

dust's picture
Re: A Structure from an Iterator?

ah very cool, i was trying to get number out of an iterator with consumers in it that seems to be my problem thanks for bringing this to my attention now i can have some recursion fun.

itsthejayj's picture
Re: A Structure from an Iterator?

Its late i don't know whats wrong with me asides from my lack of javascript skills ... but why is my structure outputting in the wrong order.

Please see my example composition its a very simple javascript fix im sure :(

PreviewAttachmentSize
outputfromiterator_flat.qtz35.35 KB

itsthejayj's picture
Re: A Structure from an Iterator?

need to reverse the structure. Weird, but i should have work that out an hour ago!

PreviewAttachmentSize
outputfromiterator_fix2.qtz34.78 KB

jrs's picture
Re: A Structure from an Iterator?

For some reason iterators seem to evaluate backwards