I am very confused that I did not directly found a topic about my concern:
I got the class RoadMark. In this class, I wanna create a member that is a specific instance of that class. But I am not able to call the constructor.
I tried:
- calling the init function (but it has no return, so its worthless)
- define the member as a function with the @property attribute (but these returns cannot have members, so worthless for an object)
- Trying "solid = self.RoadMark..." (also not working)
- Using a factory function to create the object (but in the method, RoadMark is also not defined)
Is there a way to solve my problem or do I have to outsource the "solid" variable?
Kind regards