Paul Robinson
Paul Robinson
About Me
EXPERTISE
Student
INDUSTRY
Film/TV
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Python error for listing directories March 19, 2018, 10:47 a.m.
As per the tutorial
import os
buildings_path = hou.node(“.”).parm(“path_to_buildings”).eval()
buildings_folder = os.listdir(buildings_path)
print buildings_folder
returns following error
Error running callback:
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “<string>”, line 4, in <module>
AttributeError: ‘NoneType’ object has no attribute ‘eval’
Also noted the tutorial file supplied as a checkpoint also shows this error so how would I carry out this task of listing the folder directory.
best regards
Paulie Paul
import os
buildings_path = hou.node(“.”).parm(“path_to_buildings”).eval()
buildings_folder = os.listdir(buildings_path)
print buildings_folder
returns following error
Error running callback:
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “<string>”, line 4, in <module>
AttributeError: ‘NoneType’ object has no attribute ‘eval’
Also noted the tutorial file supplied as a checkpoint also shows this error so how would I carry out this task of listing the folder directory.
best regards
Paulie Paul