Hi

Mainframe seems like the wrong word here. Makes me think of a hardware
server :-)

I would say that you should try to make your business logic (the stuff that
actually does work) all in one library layer. And then the code that
handles user interactions (gui) in another layer. The GUI should just be
able to call the business logic. And another user should also be able to
use it as a library without a gui. This decouples your code and makes for a
good reusable design. It means you can replace the gui any time but your
business logic stays the same.

It also helps to further separate generic logic that can be reused without
Maya.

Justin

On Sun, 2 Oct 2016, 12:40 PM Padraig Ó Cuínn <[email protected]>
wrote:

> Hi Just a curious question for everyone.
>
> I was wondering when you are building a mainframe for your tools and
> separate your code from your GUI work,
> what part of the tool do you decide is GUI and what part is maya code?
>
> i.e
> I have a tool that lists, relists, renames and changes attributes of
> nodes,
>
> GUI = Buttons, layout look and feel etc
>
> MayaCode = Pymel section for changing names, adding nodes etc
>
> Where would you put the relisting section as it deals with both aspects of
> the tool?
> Would you strictly have pure GUI on it own and then create a sub function
> to call from the maya code?
>
> I'm sure you have difference experiences and results but its good to hear
> from both.
>
> padraig
>
> --
> 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/bf57a823-c36a-419e-ae67-e5162da6a14e%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/bf57a823-c36a-419e-ae67-e5162da6a14e%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/CAPGFgA2wwNVSJu%2Bs%2BWt5ASGFqtV8d%3DMnvb_V144ypDTEGhVJfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to