Hi,
I want to create a gui interface similar to the Measure tool for my tool, but the gui is blank when my tool is running.
I read py-sculpt_grab_brush_r16 in github, but I still can't solve my problem
Here is my toolsscreenshot.h file
#ifndef TOOLSSCREENSHOT_H__
#define TOOLSSCREENSHOT_H__
enum
{
SSCREENSHOT_GROUPTWO_CUTBUTTON = 1051,
};
#endif
Here is my toolsscreenshot.res file
CONTAINER toolsscreenshot
{
NAME toolsscreenshot;
GROUP MDATA_MAINGROUP
{
SCALE_H;
COLUMNS 1;
BUTTON SSCREENSHOT_CUTBUTTON {}
}
}
Here is my toolsscreenshot.str file
STRINGTABLE toolsscreenshot
{
toolsscreenshot "S_ScreenShot";
SSCREENSHOT_CUTBUTTON "Cut";
}
and the toolsscreenshot.pyp file
class S_ScreenShot(plugins.ToolData):
def Draw(self, doc, data, bd, bh, bt, flags):
return c4d.TOOLDRAW_NONE
def MouseInput(self, doc, data, bd, win, msg):
return True
if __name__ == "__main__":
bmp = bitmaps.BaseBitmap()
dir, file = os.path.split(__file__)
fn = os.path.join(dir, "res", "S_PanZoom2D.tif")
bmp.InitWith(fn)
plugins.RegisterToolPlugin(id=PLUGIN_ID, str="S_ScreenShot",
info=0, icon=bmp,
help="",
dat=S_ScreenShot())
Thanks for any help