On Thu, Jul 4, 2019 at 10:18 AM likage <[email protected]> wrote:
> Hi, I have not. I was not aware of the above 2 you have mentioned. This > may sounds very noobish of me - but how do I use them? > You could likely search the mailing list for the previous conversations on MEventMessage / MMessage / scriptJob With MEventMessage , that is the Maya API, where you register a callback against a named event, scriptJob is commands a wrapper around the API that does a similar thing, giving you back an id that can be used to unregistered your callback later. > Additionally, I could be wrong on this but while I was googling around, > trying to find a way, I chanced upon Model View Controller (something that > I was not aware of too). > It seems that this case of MVC may or may not be applicable in my cause, > but what is the best scenario to use MVC then? > That is a pretty general term for structuring an application that may or may not apply to your own project, but may not have specific relevance to your current problem. It deals with encapsulating the source of your data, the presentation layer, and the business logic that glues together the data model and the views. It leads to the effect of having many different types of views onto the same data, and a business logic layer that is not tied to the dependencies of your UI. Your current problem is in wiring together 2 different 'applications'. While your UI is running within Maya, it is not Maya itself and Maya is only hosting it. You could consider Maya your data model and then use MMessages/scriptJobs as your business logic to connect and drive your views. > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/8a569a28-2fa2-43a7-ba54-9bc5152008cf%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/8a569a28-2fa2-43a7-ba54-9bc5152008cf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3-xrgrYLK8hCguh_dznuZfy61bBJgq9Sit-MB2p%2BZCeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
