コード例 #1
0
ファイル: marqueeTool.cs プロジェクト: venerin/Maya-devkit
        public marqueeContext()
        {
            titleString = "Marquee Tool";
            // Tell the context which XPM to use so the tool can properly
            // be a candidate for the 6th position on the toolbar.
            // path examples\assemblies\examples.nll.dll relative to examples\marqueeTool\marqueeTool.xpm
            string fullPath = ExamplesPlugin.convertRefPathToFullPath(@"..\marqueeTool\marqueeTool.xpm");

            if (System.IO.File.Exists(fullPath))
            {
                setImage(fullPath, MPxContext.ImageIndex.kImage1);
            }
        }
コード例 #2
0
ファイル: moveTool.cs プロジェクト: venerin/Maya-devkit
        public MoveContext()
        {
            titleString = "moveTool";

            // Tell the context which XPM to use so the tool can properly
            // be a candidate for the 6th position on the mini-bar.
            string fullPath = ExamplesPlugin.convertRefPathToFullPath(@"..\moveTool\moveTool.xpm");

            if (System.IO.File.Exists(fullPath))
            {
                setImage(fullPath, MPxContext.ImageIndex.kImage1);
            }
        }