removing custom script command 2005-06-19 - By Stefan Andersson
Back the light became a little dim... :)
Anyhow, I managed to make my own litte menu in the main window. Next problem is now to get the plugins in there as submenus. I can only find examples how to add menus to existing "core" xsi menus, which is not what I want.
This is the code I have so far for making the little menu -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- --- function XSILoadPlugin( in_reg ) in_reg.Author = "Stefan Andersson" in_reg.Name = "Stefan XSI Plugin's" in_reg.Major = 1 in_reg.Minor = 0 in_reg.RegisterMenu siMenuMainTopLevelID,"Stefan",false,false XSILoadPlugin = true end function
function Stefan_Init( io_Context ) dim oCmd set oCmd = io_Context.Source Stefan_Init = true end function
function Stefan_Menu_Init( io_Context ) dim oMenu set oMenu = io_Context.Source end function
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---
Basicly a lot of cut and paste, with a few adjustments. I found this in the SDK docs
"in_reg.RegisterMenu siMenuMainWindowID, "CustomMenuItem", bDisplayAsSubmenu, bDynamic"
How can I use my "stefan" menu as a ID? So far all attemps has been unsuccessful. And I'm searching the docs, but I think I'm looking at the wrong thing...
Any pointers will be greatly appreciated.
regards stefan
On 6/19/05, Stefan Andersson <sanders3d@(protected)> wrote: > I'm beginning to see the light now.... :) > > regards > stefan > > > On 6/19/05, Bernard Lebel <3dbernard@(protected)> wrote: > > Create a Plugins directory in the Application directory of the workgroup. > > > > > > Cheers > > Bernard > > > > Stefan Andersson wrote: > > > > >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 > > > > > > > > > > > > > > > --- > > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > > unsubscribe xsi > > > > > -- > http://www.sanders3d.com/ >
-- http://www.sanders3d.com/
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|