I need to read data in a CSV file to control my models animation.
(see below) This seems to be the most common answer but it does not work.
I get a file or directory not found error.
My file (Program.txt is in the same folder as the blender model)
import bpy
import csv
line = 1
column = 2
with open(“Program.txt”,“r”) as file:
mycsv = csv.reader(file)
mycsv = list(mycsv)
text = mycsv[line][column]
print(text)
rotate=int(text)