Tracking Objects in RealFlow
A node.js utility to convert
.obj files exported from RealFlow to
.csv files for importing to Grasshopper.
You've got a series of objects that move within a RealFlow scene and you would like to track their coordinates frame by frame so you can import and plot the data in Grasshopper.
- Enable the export of
.ascfiles for each object in RealFlow
- Simulate the scene
- Download, install & run obj_to_csv on your scene's objects folder (instructions below)
- Download & open the Grasshopper Import file
- Set the path to the
.csvfile generated by obj_to_csv.js
The application requires Node.js and npm to be installed, instructions can be found at nodejs.org. Then follow the following steps:
- Download the latest zip from GitHub and extract to a clean directory
- Open the Node.js command prompt and change to the realflow-object-tracking directory using the command:
npm updateto install & update realflow-object-tracking's dependencies
Once installed ensure to change the
source_directory variable in the
./config.js file to your RealFlow scene objects folder and
object_name to match the name of your object.
You may also like to change the other settings:
source_directoryThe objects folder of your RealFlow scene
object_nameName of the RealFlow object you wish to track
export_directoryDirectory to export files to
track_framesAn array of frame numbers to track
track_modeTrack the object vertices using
vertor midpoints with
To run the utility change to the relevant directory and run
cd C:\Users\path\to\realflow-object-tracking\ node obj_to_csv
Ensure you've followed the installation and configuration instructions precisely. If you're still having issues feel free to create an issue here on GitHub and I'll try and assist you as soon as I can.