Re: designing a self-installed plugin...
| Date : Mon, 03 Apr 2006 13:56:26 +1000 |
| To : XSI(at)Softimage.COM |
| From : Rafe Sacks <rafes(at)al.com.au> |
| Subject : Re: designing a self-installed plugin... |
"Now lets say the above library is returned by a command called GetLibrary()." The object or Library is returned by a command. The benefit, in this case, becomes obvious when you have a bunch of functions you want access to. Lets say you have 10. That would be 10 commands to register and support. If you made those methods of an object, you only have to register 1 command but you still have access to all the functions. If nothing else, it is an organizational tool. As object-oriented coding gets more advanced however, it becomes very powerful. Especially across large projects. If the object is in the same file, you can get it using "new". in my example, the object is called "Library" so to get an instance of it, this is the syntax: var oLibrary = new Library();Other wise a command has to return it: function GetLibrary_Execute() If you need an example of a simple object, I'm sure we would be willing to post a few. I just didn't want to hijack your thread any further. ________________________________ R A F E S A C K S Lead Character TD - Technical Animal Logic Film +612 9383 - 4800 Steven Caron wrote: I think i got it. you write you main code as a function with objects. and use them inside callbacks available to you as self-installed plugins? |
- 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>
- Re: designing a self-installed plugin...
- From: Rafe Sacks <rafes(at)al.com.au>
- Re: 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: designing a self-installed plugin...
- Next by Date: Re: designing a self-installed plugin...
- Previous by Thread: Re: designing a self-installed plugin...
- Next by Thread: Re: designing a self-installed plugin...
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |