Probé esto pero no sirve:
Código: Seleccionar todo
import bge
import bpy
cont = bge.logic.getCurrentController()
own = cont.owner
m = [ ]
for k in range (1, 95):
m[k] = cont.actuators["Motion"+ str(k)]
Código: Seleccionar todo
import bge
import bpy
cont = bge.logic.getCurrentController()
own = cont.owner
m = [ ]
for k in range (1, 95):
m[k] = cont.actuators["Motion"+ str(k)]
Código: Seleccionar todo
m =[]
k = 0
while k <=94 :
k = k+1
m.append("Motion" + str(k))
print(m)
Código: Seleccionar todo
['Motion1', 'Motion2', 'Motion3', 'Motion4', 'Motion5', 'Motion6', 'Motion7', 'Motion8', 'Motion9', 'Motion10', 'Motion11', 'Motion12', 'Motion13', 'Motion14', 'Motion15', 'Motion16', 'Motion17', 'Motion18', 'Motion19', 'Motion20', 'Motion21', 'Motion22', 'Motion23', 'Motion24', 'Motion25', 'Motion26', 'Motion27', 'Motion28', 'Motion29', 'Motion30', 'Motion31', 'Motion32', 'Motion33', 'Motion34', 'Motion35', 'Motion36', 'Motion37', 'Motion38', 'Motion39', 'Motion40', 'Motion41', 'Motion42', 'Motion43', 'Motion44', 'Motion45', 'Motion46', 'Motion47', 'Motion48', 'Motion49', 'Motion50', 'Motion51', 'Motion52', 'Motion53', 'Motion54', 'Motion55', 'Motion56', 'Motion57', 'Motion58', 'Motion59', 'Motion60', 'Motion61', 'Motion62', 'Motion63', 'Motion64', 'Motion65', 'Motion66', 'Motion67', 'Motion68', 'Motion69', 'Motion70', 'Motion71', 'Motion72', 'Motion73', 'Motion74', 'Motion75', 'Motion76', 'Motion77', 'Motion78', 'Motion79', 'Motion80', 'Motion81', 'Motion82', 'Motion83', 'Motion84', 'Motion85', 'Motion86', 'Motion87', 'Motion88', 'Motion89', 'Motion90', 'Motion91', 'Motion92', 'Motion93', 'Motion94', 'Motion95']