2
from bee.segments import *
3
from libcontext.socketclasses import *
4
from libcontext.pluginclasses import *
6
class object_(bee.worker):
8
The object actuator creates a new 3D object of "object class" at "location".
9
If a process class of the same name as "object class" has been registered, launch it.
10
Output contains the name of the last spawned object.
14
trig = antenna("push", "trigger")
15
class_ = antenna("pull", ("str", "identifier"))
16
placement = antenna("pull", ("object", "matrix"))
17
outp = output("pull", ("str", "identifier"))
18
v_outp = variable(("str", "identifier"))
21
subprocess = variable("bool")
22
parameter(subprocess, True)
24
# Mark "object class" as an initially folded, and define the I/O names
26
"trig" : {"name": "Trigger"},
27
"class_" : {"name": "Object Class", "fold" : True},
28
"placement" : {"name": "Object Placement"},
29
"outp" : {"name": "Output"},
30
"_memberorder" : ["trig", "class_", "placement", "outp"],
33
# Method to manipulate the parameter form as it appears in the GUI
36
f.subprocess.name = "Subprocess mode"
37
f.subprocess.advanced = True
39
# Finally, declare our sockets and plugins, to communicate with the rest of the hive
41
raise NotImplementedError("sparta.sensors.object_ has not been implemented yet")
b'\\ No newline at end of file'