Hey folks, (new to Blender and I can’t find where this is described)
Desire:
Create 2 python files:
file 1: MyClass.py
class MyClass():
def init(self):
print(“hello from my class”)
file 2: CallMyClass.py
from MyClass import *
instance an object to get my output message
MyClass()
Questions:
Is there some place in the Blender folder structure I should put these files?
Are there preferences or globals I have to set up so that CallMyClass can properly import MyClass?
Once everything is set up correctly, what to I have to do the execute CallMyClass?
Is there a way I can make CallMyClass a ‘command’, by that I mean, can I do something like attach it to a key so every time I hit the key CallMyClass is executed?
Thanks for the help