removing custom script command 2005-06-19 - By Stefan Andersson
Back but moving it to the workgroup.. there are no such folder as "plugins" there. Does every user then have to update the plugin manually? Seems like a big hassle.
regards stefan
On 6/18/05, Bernard Lebel <3dbernard@(protected)> wrote: > Hi Stefan, > > I can't help it but to answer anyway, hopefully you'll not be mad at me ;-) > > With the XSI 4.0+ plugin architecture, you can do pretty much everything > "on-the-fly". If you check into your > users/you/Softimage/XSI_xx/Application directory, you'll see a Plugins > directory, next to the toolbars, spdl, layouts, view, bin and > potentially others. Anything you drop in these directories will be > picked up when you launch XSI. > > In the case of the Plugins dir, this is where you put self-installed > plugins, that is, plugins that can be loaded and unloaded and that don't > require you to register anything. This includes self-installed custom > commands, events, and even compiled tools. > > So what you are looking for right now is a self-installed custom > command. If you go to Application > Commands > New Self-Installed Custom > Command..., you get a wizard to create such a command. Fill in the > informations that you need, and click Generate Code. You can tell the > wizard that your command needs some arguments, however as far as I'm > concerned I never specify a handler for arguments (None) nor a default > value. > This will generate a template for this command, where you only need to > drop the actual script code. In the function called > <yourcommandname>_Execute( ), replace the line > ' TODO: Put your code here. > By your code. If you have functions in your script, you can put them > inside that Execute( ) function if you use JScript or Python. In > VBScript, put them outside the Execute( ) function. > > Now if you go back into your Plugins directory, you should that command > file there. If you edit this file and resave it, the only thing you need > to do to get the changes in XSI is to go to File > Plugins > Manager and > click the Update button. This will reload all plugins that have been > changed. You can even move the plugin file to your workgroup and click > the update button, XSI should pick the command from the new location. > > > Cheers > Bernard > > > > Stefan Andersson wrote: > > >btw... don't answer this just yet. I'm reading some SDK docs now and > >will see if I can find what I'm looking for :) > > > >regards > >stefan > > > > > >On 6/18/05, Stefan Andersson <sanders3d@(protected)> wrote: > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
-- http://www.sanders3d.com/
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|