Read a cvs or txt file dynamically?

Hello,

I would like to know if it’s possible to read a cvs or txt file in blender
to make a polygon, I saw a script to do this.

But my ask is it possible to tell in python to read this file every second
and if this file is modified change the polygon in the viewport.

I would like to work with a python programmer to make this type of script.
I have a little budget to do this, and I am a js/nodejs programmer.

Im interested in this topic if you make any headway with this please let me know. I use a older version of blender to import csv files.

@ZeKK + @Brontobyte you can check these resources in order to create the script.

  • You can read csv this way:
    https://realpython.com/python-csv/

  • Check for python modification date:
    https://www.w3resource.com/python-exercises/python-basic-exercise-64.php

  • You can write a modal operator to run in the background:
    2.90\scripts\templates_py\operator_modal_timer.py

1 Like

thank you for sharing that. So we had this deal that took points from satellite data. We put it on a 4 wheeler and you would press a button every time you wanted a elevation. It created a CSV file full of xyz points.

By that time I had not tested mesh generation myself. Now I can show these recommendations as well.