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)
'''
@Harvie,你能帮我快速找到我写插件帮助信息的地方吗?(双击)
谢谢