diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 6d16c28..af3c649 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -987,6 +987,24 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase ft->fRTFree(w,chunk); return res; } + + static auto fromArgs(Unit*, FloatControlsIter& args,typename LongArrayT::type&, int) + { + //first is array size, then items + + using Container = typename LongArrayT::type; + using Value = typename Container::type; + + index size = static_cast(args.next()); + + Container res(size); + + for (index i = 0; i < size; ++i) + res[i] = static_cast(args.next()); + + return res; + } + template static std::enable_if_t::value, T>