Hello,
I'm trying to import a class of helper methods I found on GitHub here:
https://gist.github.com/andreberg/888507#file-cinema-4d-python-helpers-py
I renamed the Python class file PythonHelpers
In the Python script to which I'd like to import the Helpers class, I've added the following lines:
from PythonHelpers import Helpers as ph
When I try using this class like so, I get an error.
ph.select(obj)
Error message:
File "PythonHelpers.py", line 118, in select
def select(op):
NameError:global name 'c4d' is not defined
I'm importing c4d into my script. I tried adding 'import c4d' to the PythonHelpers file also, but it didn't fix the issue. How do I use this Python Helpers class and get it to recognize the c4d module?
Thank you!