This comand is on “OnInitialized” event on my plugin, so, every time rhino open
if my skin is running then the command run and the Toolbar is hide, but,
before hide the rhino it shows for a second.
And since, in my plugin I will only use custom tools, I will never use the “toolbars” plugin, could I completely disable just when my skin runs?
You should try then in OnUnloadPlugIn() or the C# equivalent.
In my case I run it in an Idle watcher event after starting Rhino and I never see the toolbar appearing. I do see other controls being hidden but the toolbar is usually fine.
I think the problem is that, the comand is on my plugin, and maybe we take some time
to be load on startup, may be enough to let the toolbar show for a second.
I need this comand earlier, or disable the toolbars plugin when my skin runs.
This makes the plugin not exist when rhino starts, which in turn does not load, but i think it is just a very tricky solution, i think it is not a good practice?
I’d like to discourage disabling or renaming the Toolbars plug-in as it does stuff other than toolbars. If you won’t want any toolbars to appear, just clear the collections.
Skin SkinName = Skin.ActiveSkin;
if (SkinName.ToString() == "MySkin.MyHippoSkin")
{
foreach (var f in Rhino.RhinoApp.ToolbarFiles)
f.Close(false);
}
This is on my plugin “RhinoApp.Initialized” event, because this command dont work on Skin.
But is show the toolbar for a seconde before hide, is not a good look interface for my skin, is there any place I can put it that runs a little before?