Jan-28-2018, 11:16 PM
(This post was last modified: Jan-28-2018, 11:16 PM by SeanBassett.)
I am using Python in Blender.
my code can not find the CSV file.
The file is in the same folder as the blender file and this did work when I was using blender Game Render.
But now I need it to work in Blender Render.
When I check the error it has added two folders to the actual path.
The actual location is "C:\Users\Owner\Desktop\Blender\Probot 2"
My code,
Thank you for any help
my code can not find the CSV file.
The file is in the same folder as the blender file and this did work when I was using blender Game Render.
But now I need it to work in Blender Render.
When I check the error it has added two folders to the actual path.
Quote:Traceback (most recent call last):
File "C:\Users\Owner\Desktop\Blender\Probot 2\ProbotPositions.blend\Untitled", line 12, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'Program.txt'
The actual location is "C:\Users\Owner\Desktop\Blender\Probot 2"
My code,
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)How do I point to the CSV File?
Thank you for any help