The only change that made is that it doesn’t use the self
on the top of your first code example. So that plays a role here. Basically what you did made the function equivalent to self.Camera.Indoor()
instead of self.Camera:Indoor()
that uses self. Using self means that self.Camera:Indoor()
is equal to self.Camera.Indoor(self, ...)
meaning that self
is passed in as the first function argument.
1 Like
They’re showing as within their respective folders now and not seeming to overwrite eachother? Still accessing the initial ‘self’?
Before that the self
of the function was overriding the self
on the top of your code due to the self
argument being a local variable within the function instead of a global one, so it has priority.
If you change your main self
name to something like framework
you should be able to access both of them within the function.