Hello,
I’m taking my first steps into looking at Python’s modules and classes and how to create custom ones for Maya. I’ve created a basic class which creates a sphere and if you type:
s = MayaSphere(name="Sphere")
it will be created in the viewport, similarly it will be created if appended to a list:
sphereList = []
sphereList.append(MayaSphere(name="Sphere"))
but it won’t be created if you type
MayaSphere(name="Sphere")
What happens instead is that the memory location is returned, but nothing appears in the viewport. Can someone explain why this happens?
Thanks,
-Harry