Hello people of the forum! I’ve just started working with rhino script and am relatively new to Python (though quite experienced in other languages) I’m on a mac and developing using the Atom text editor.
The issue I’m having is as follows:
I have written a fairly straightforward class called CombinationEngine located in a file called CombinationEngineClass.py (2.5 KB) the code is attached as discourse is having trouble formatting it properly.
If I instantiate this class in the same file like this I have no issues and the code runs fine in rhino (there are supposed to be underscores on name and main)
if( name == “main” ):
combiner = CombinationEngine()
combiner.make_salad([-600, 600], [-1000, 1000], [0, 500])
If I do the same from a seperate file salad.py (located in the same directory) the class initializes no problem, but when I try and call any of the methods I get this error message
Message: CombinationEngine instance has no attribute 'add_objects'
the only other code: salad.py (288 Bytes)
What could be going on here? Does this have anything to do with running the code through Atom? I am super confused!
Thanks, I’m sure it’s something silly, but would love to get some fresh eyes on this.