Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
removing custom script command

removing custom script command

2005-06-19       - By Stefan Andersson

 Back
Reply:     <<     21     22     23     24     25     26     27     28     29     30  

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