Re: designing a self-installed plugin...
| Date : Mon, 03 Apr 2006 09:05:17 +1000 |
| To : XSI(at)Softimage.COM |
| From : Rafe Sacks <rafes(at)al.com.au> |
| Subject : Re: designing a self-installed plugin... |
|
This is a bit long winded... let me know if it makes
sense... Strictly from a code design point of view, I like to keep my main code and UI separate. It makes changes easier to implement and it doesn't muddy up the top level code with a bunch of UI vs command line handling. I tend to put all code in objects then treat the menu as a user. In other words, I use the menu callbacks to run a short script which calls external code with the right variables. For example, lets say I have this library function Library() Now lets say the above library is returned by a command called GetLibrary(). Lets also assume your scene property has a parameter called 'HowManyTimes'. The callback looks like this... MenuCallback_DoSomething() I find I almost never put code directly in commands these days. Usually, if a command is needed (which tends to only be the case when some special batch mode system is needed - human users should just know how to use my objects ;-) ), I'll just wrap the object call in the command. It provides a buffer which makes code changes under-the-hood easy without affecting end users (human or otherwise). ________________________________ R A F E S A C K S Lead Character TD - Technical Animal Logic Film +612 9383 - 4800 Steven Caron wrote: Hey Everyone, |
- Follow-Ups:
- Re: designing a self-installed plugin...
- From: "Steven Caron" <carons(at)gmail.com>
- Re: designing a self-installed plugin...
- References:
- designing a self-installed plugin...
- From: "Steven Caron" <carons(at)gmail.com>
- designing a self-installed plugin...
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: 5.1 Download now
- Next by Date: Re: 5.1 Download now
- Previous by Thread: Re: 5.1 Download now
- Next by Thread: Re: 5.1 Download now
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |