mirror of
https://forge.apps.education.fr/blender-edutech/jumeaux-numeriques.git
synced 2024-01-27 06:56:18 +01:00
Focus aussi sur les actionneurs : monte-charge et volet roulant
This commit is contained in:
parent
d42127601a
commit
d3f56362e1
@ -71,6 +71,21 @@ def init(cont):
|
||||
scene.objects['Moteur pignon']['init_ry']=scene.objects['Moteur pignon'].worldOrientation.to_euler().y
|
||||
scene.objects['Moteur pignon']['init_rz']=scene.objects['Moteur pignon'].worldOrientation.to_euler().z
|
||||
|
||||
# Groupe de focus pour les actionneurs
|
||||
twin.cycle_def_focusgroup([["Moteur","blue-dark"] ,
|
||||
["Moteur arriere","blue-dark"] ,
|
||||
["Moteur condensateur","grey"],
|
||||
["Reducteur flanc droit","blue"],
|
||||
["Reducteur flanc gauche","blue"],
|
||||
["Moteur vis sans fin","blue-dark"],
|
||||
["Moteur pignon","blue-dark"],
|
||||
["Moteur axe 1","blue"],
|
||||
["Moteur axe 2","blue-dark"],
|
||||
["Moteur gaine thermo","blue"],
|
||||
["Cable","blue"]], "Moteur : mot_m(True | False), mot_d(True | False)")
|
||||
twin.cycle_def_focusgroup([["Led niveau 0", "led_yellow"]], "Voyant témoin d\"étage niveau 0 : voy_0(True | False)")
|
||||
twin.cycle_def_focusgroup([["Led niveau 1", "led_yellow"]], "Voyant témoin d\"étage niveau 1 : voy_1(True | False)")
|
||||
|
||||
# Description des composants sensibles
|
||||
scene.objects['Bp niveau 0']['description']="Bouton poussoir appel niveau 0 : ba_0()"
|
||||
scene.objects['Bp niveau 1']['description']="Bouton poussoir appel niveau 1 : ba_1()"
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<data>
|
||||
<screen>
|
||||
<width>1609</width>
|
||||
<height>905</height>
|
||||
<width>1325</width>
|
||||
<height>745</height>
|
||||
<quality>1</quality>
|
||||
</screen>
|
||||
</data>
|
Binary file not shown.
@ -59,6 +59,16 @@ def init(cont):
|
||||
# print (pin_config[pin][1][0], pin_config[pin][1][1])
|
||||
scene.objects[pin_config[pin][1][0]][pin_config[pin][1][1]] = None
|
||||
|
||||
# Groupe de focus pour les actionneurs
|
||||
twin.cycle_def_focusgroup([["Moteur","blue"],
|
||||
["Capuchon moteur","blue"],
|
||||
["Arriere moteur","blue"],
|
||||
["Moteur axe-1","blue"],
|
||||
["Moteur coupleur","blue-dark"],
|
||||
["Moteur vis1","grey"],
|
||||
["Moteur vis2","grey"]], "Moteur : mot_m(True | False), mot_d(True | False)")
|
||||
twin.cycle_def_focusgroup([["Led auto", "led_yellow"]], "Voyant témoin mode automatique : voy_auto(True | False)")
|
||||
|
||||
# Description des composants sensibles
|
||||
scene.objects['Bp monter']['description']="Bouton poussoir monter volet : bp_m()"
|
||||
scene.objects['Bp descendre']['description']="Bouton poussoir descendre volet : bp_d()"
|
||||
@ -85,7 +95,7 @@ def mot (cont):
|
||||
if scene.objects['System']['run']:
|
||||
obj = cont.owner
|
||||
layer = 0
|
||||
|
||||
|
||||
# Monter
|
||||
if obj['up']:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user