Please help, I have tried a Python forum and although I have had many suggestions none work.
I need to import data from a csv file.
Here is my code.
import bpy
ob1 = bpy.data.objects["Base"]
ob2 = bpy.data.objects["Middle Arm"]
ob3 = bpy.data.objects["Top Arm"]
ob1Strt = 0
ob1Dist = 1.5
ob1FrmEnd = ob1Dist*33
print (ob1FrmEnd)
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)
I get the error message;
49.5 Traceback (most recent call last): File "C:\Users\Owner\Desktop\Blender\Probot 2\ProbotPositions.blend\Text", line 21, in FileNotFoundError: [Errno 2] No such file or directory: 'Program.txt' Error: Python script fail, look in the console for now...