Contact me: hankecnc@gmail.com

帮助请求在插件中编写帮助(双击) #1080

推推 grbl 3年前 (2023-02-02) 209次浏览
关闭
MARIOBASZ 打开了这个问题 2018 年 12 月 6 日 · 1条评论
关闭

帮助请求在插件中编写帮助(双击)#1080

MARIOBASZ 打开了这个问题 2018 年 12 月 6 日 · 1条评论

注释

帮助请求在插件中编写帮助(双击) #1080
贡献者

@Harvie,你能帮我快速找到我写插件帮助信息的地方吗?(双击)
谢谢

帮助请求在插件中编写帮助(双击) #1080 哈维 补充道 问题 标签 2018 年 12 月 6 日
帮助请求在插件中编写帮助(双击) #1080
合作者

以我的 slicemesh 插件为例:

		self.variables = [			#<<< Define a list of components for the GUI
			("name"    ,    "db" ,    "", _("Name")),							#used to store plugin settings in the internal database
			("file"    ,    "file" ,    "", _(".STL/.PLY file to slice"), "What file to slice"),
			("flat"    ,    "bool" ,    True, _("Get flat slice"), "Pack all slices into single Z height?"),
			("cam3d"    ,    "bool" ,    False, _("3D slice (devel)"), "This is just for testing"),
			("faceup"    ,    "Z,-Z,X,-X,Y,-Y" ,    "Z", _("Flip upwards"), "Which face goes up?"),
			("scale"    ,    "float" ,    1, _("scale factor"), "Size will be multiplied by this factor"),
			("zoff"  ,    "mm" ,    0, _("z offset"), "This will be added to Z"),
			("zstep"    ,    "mm" ,    0.1, _("layer height (0 = only single zmin)"), "Distance between layers of slices"),
			("zmin"    ,    "mm" ,    -1, _("minimum Z height"), "Height to start slicing"),
			("zmax"    ,    "mm" ,    1, _("maximum Z height"), "Height to stop slicing")
		]
		self.buttons.append("exe")  #<<< This is the button added at bottom to call the execute method below
		self.help = '''This plugin can slice meshes
#mesh

Currently it supports following formats:
STL (Binary and ASCII)
PLY (ASCII only)
'''