74 self.__class__.Icon = os.path.join(FreeCAD.getHomePath(),
"Mod",
75 "Animate",
"Resources",
"Icons",
77 self.__class__.MenuText =
"Animate" 78 self.__class__.ToolTip =
"Animation workbench" 94 import CollisionDetector
99 self.
list = [
"ServerCommand",
"ControlCommand",
"TrajectoryCommand",
100 "CollisionDetectorCommand",
"RobWorldCommand",
101 "RobRotationCommand",
"RobTranslationCommand"]
103 self.appendToolbar(
"Animate", self.
list)
105 self.appendMenu(
"Animate", self.
list[:4])
107 self.appendMenu([
"Animate",
"Robotics"], self.
list[4:])
115 FreeCAD.Console.PrintMessage(
"Animate workbench activated\n")
123 FreeCAD.Console.PrintMessage(
"Animate workbench deactivated\n")
149 return "Gui::PythonWorkbench" 152 FreeCADGui.addWorkbench(
Animate())
Animate workbench class according to the PythonWorkbench template.
def Activated(self)
This function is executed when the workbench is activated.
def GetClassName(self)
Mandatory method for full python workbenches.
list
A list of str which are the names of imported commands.
def ContextMenu(self, recipient)
Method to add custom commands to a context menu with respect to a recipient.
def Initialize(self)
Method used to setup workbench upon being selected on the workbench toolbar.
def Deactivated(self)
This function is executed when the workbench is deactivated.
def __init__(self)
Initialization method for Animate workbench.