FluidDataSet read?

Hi there -

I am attempting to recall a FluidDataSet that was stored to a json file, using SuperCollider.

In the help file, it suggests that FluidDataSet.read(pathname) should work - but it produces an error (ERROR: Message ‘read’ not understood.) and it doesn’t appear that the “read” method is included in the FluidDataSet.sc class.

Am I making a simple mistake?

Thanks!

Hello!!!

I think you forget to make an instance. The FluidDataSet needs to be created first, then you can load something to it.

in 2 steps:

~myDS = FluidDataSet(s);
~myDS.read("fullpath");

you can also be quick and do that in one line as we return the dataset to the action function:

~myDS = FluidDataSet(s).read("fullpath");

I hope this helps!

2 Likes