text file writer, continual update

MikeP's picture

Hey guys, Can't seem to get Kineme Text File Writer to update it's value in the .txt file.

I've attached a simple color change (RGB) to be updated in the text file as it gets updated in the composition. The text label of Kineme Text File Writer does change but does not transfer this value to the txt file, the only value written to the text file is the very first value and never changes.

Can someone tell me please what to do/modify to get the values updated in the txt file automatically?

Thank you, M

PreviewAttachmentSize
KinemeTextFileWriter.qtz2.84 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Swiftlikeninja's picture
Re: text file writer, continual update

I just tried your comp and it created the text file without any issues. I had to manually update it though. I dont know if your expecting the txt file to update everytime the color changes (like the image exporter plugin). But everything works without issue. I also did not build the app in quartz builder but I have other apps that are built and work fine as well.

MikeP's picture
Re: text file writer, continual update

Hi thanks for this, yes I expected the txt file to update every time the color changes. Any way round this? Any way to do this in QC?

You are right it works fine if you want to turn the comp on an off manually.

Swiftlikeninja's picture
Re: text file writer, continual update

You can use a timer to trigger the write such as what your controlling the color switch with. Your currently using the Interpolation patch, just plug the result of that patch into the write. You may want to plug result into a pulse to trim down the signal going into the write patch. (I don't know if the write patch will continuously evaluate with the write trigger set to true)

MikeP's picture
Re: text file writer, continual update

trimmed down the signal but the txt file still does not update automatically.

There must be a way to update the txt file automatically, any ideas?

M

dust's picture
Re: text file writer, continual update

you will want to update the writer with a signal patch. something like on start and every x seconds. seems the writer has no problems writing the file every .5 seconds.

if your trying to use this with network tools the file writer works well to generate php scripts and stuff like that. maybe what you need is the html5 web socket plugin for bi directional communications with a web page. instead of generating webpages as files.

https://github.com/mirek/quartzcomposer-websocket

Swiftlikeninja's picture
Re: text file writer, continual update

ive uploaded your comp with the color multiplexer and a watcher controlling the write signal

PreviewAttachmentSize
KinemeTextFileWriter.qtz3.44 KB

dust's picture
Re: text file writer, continual update

this updates the file automatically every .5 seconds.

PreviewAttachmentSize
updateFile.qtz34.39 KB

MikeP's picture
Re: text file writer, continual update

wow guys, they both work perfectly! Thank you so much Shayne and Dust

one can open the php file and see it updating the data in real-time, which is perfect, txt files have to be re-opened but they work. fantastic!