Input Patch Value updated with presets?

Adrianh's picture

Hi Forum, Im developing a composition that is using presets. The presets are being saved as XML files and similarly read back when requested.

The problem Im having is that the presets are fed by Input value patches and when recalling the required preset I cannot work out how to update the Input Value.

The composition is being run from a NIB file and my input sliders are bound to the input patches in the composition. When recalling a preset how would one go about updating the input value so that it is also shown/reflected in the UI. Currently, because its an input it doesnt update.....

I have tried creating output patches from the XML tree and have successfully made a connection to the preset values but I cant work out how to feed these values to update the sliders in the UI.

Thanks,

Adrian

.lov.'s picture
Re: Input Patch Value updated with presets?

Are you using QCRenderer or a QCView to render the composition? Could you post a sample of code where you do the import?

franz's picture
Re: Input Patch Value updated with presets?

you have to publish OUTPUTs , as in QC, each pin can only have 1 input, whereas it can have multiple outputs. Be sure to check lov.'s COGE source, it has a preset system. Meanwhile, you SHOULD do a search on the forums, as this has already been discussed (somewhere, unfortunately i don't remember where ...).