Use the node group and the properties as arguments instead of the modifier. This may help to allow reusing the functions outside of the modifier execution context.
Use the node group and the properties as arguments instead of the modifier. This may help to allow reusing the functions outside of the modifier execution context.