diff --git a/baton_colle/batoncolle.py b/baton_colle/batoncolle.py index 979c112..897e934 100644 --- a/baton_colle/batoncolle.py +++ b/baton_colle/batoncolle.py @@ -20,9 +20,10 @@ import cine # Bibliothèque du player 3d d'analyse de cinématique # Récupérer la scène 3D scene = bge.logic.getCurrentScene() -# print("Objets de la scene : ", scene.objects) -# Mécanisme (objets 3D) +############################################################################### +# Mécanisme +############################################################################### objects=['Corps', 'Support', 'Colle', 'Bouton', 'Bouchon'] objects_anim=['Support', 'Colle', 'Bouton', 'Bouchon'] @@ -54,10 +55,6 @@ colors_dict={'Color-1' : [0.202, 0.114, 0.512, 1], 'Color-8' : [0.75,0.75, 0.75, 0], 'White' : [0.8, 0.8, 0.8, 1]} -############################################################################### -# Mécanisme -############################################################################### - # Initialisation def init(cont): scene.objects['Mecanism']['objects'] = objects diff --git a/cine.py b/cine.py index 26ff3d4..2df3926 100644 --- a/cine.py +++ b/cine.py @@ -91,7 +91,6 @@ def keyboard(cont): # Touche Home -> Reset de la vue if JUST_ACTIVATED in keyboard.inputs[bge.events.HOMEKEY].queue: manip_reset() - print ("hihhi") # Touche Space -> Play et Pause if JUST_ACTIVATED in keyboard.inputs[bge.events.SPACEKEY].queue: diff --git a/pince_schrader/schrader.py b/pince_schrader/schrader.py index bf40eb3..474ce96 100644 --- a/pince_schrader/schrader.py +++ b/pince_schrader/schrader.py @@ -3,8 +3,8 @@ import math import cine # Bibliothèque du player 3d d'analyse de cinématique ############################################################################### -# batoncolle.py -# @title: Player 3D cinématique du baton de colle +# schrader.py +# @title: Player 3D cinématique de la pince schrader # @project: Blender-EduTech # @lang: fr # @authors: Philippe Roy @@ -20,21 +20,16 @@ import cine # Bibliothèque du player 3d d'analyse de cinématique # Récupérer la scène 3D scene = bge.logic.getCurrentScene() -# print("Objets de la scene : ", scene.objects) -# Mécanisme (objets 3D) +############################################################################### +# Mécanisme +############################################################################### objects=['Corps', 'Piston', 'Doigt sup', 'Doigt inf', 'Biellette sup', 'Biellette inf', 'Bouchon','Axe piston', 'Axe doigt sup', 'Axe doigt inf', 'Axe biellette sup', 'Axe biellette inf', 'Joint piston', 'Joint bouchon', 'Circlips 1', 'Circlips 2', 'Circlips 3', 'Circlips 4', 'Circlips 5'] objects_anim=['Axe biellette inf', 'Axe biellette sup', 'Axe piston', 'Biellette inf', 'Biellette sup', 'Doigt inf', 'Doigt sup', 'Joint piston', 'Piston'] -# objects=['Axe biellette inf', 'Axe biellette sup', 'Axe doigt inf', 'Axe doigt sup', 'Axe piston', 'Biellette inf', 'Biellette sup', 'Bouchon', 'Circlips 1', 'Circlips 2', -# 'Circlips 3', 'Circlips 4', 'Circlips 5', 'Corps', 'Doigt inf', 'Doigt sup', 'Joint bouchon', 'Joint piston', 'Piston'] -# objects_anim=['Axe biellette inf', 'Axe biellette sup', 'Axe piston', 'Biellette inf', 'Biellette sup', 'Doigt inf', 'Doigt sup', 'Joint piston', 'Piston'] -# objets_couleur=['MagentaF', 'MagentaF', 'VioletF', 'VioletF', 'VertF', 'Couleur5', 'Couleur5', 'TurquoiseF', 'Gris', 'Gris', 'Gris', 'Gris', 'Gris', -# 'Couleur1', 'Couleur7', 'Couleur7', 'Couleur2', 'Couleur6', 'Vert'] - objects_dict={'Corps' : [1, '1 : Corps', 'Couleur1', []], 'Piston' : [2, '2 : Piston', 'Vert', []], 'Doigt sup' : [3, '3 : Doigt sup.', 'Couleur7', []], @@ -55,12 +50,6 @@ objects_dict={'Corps' : [1, '1 : Corps', 'Couleur1', []], 'Circlips 4' : [18, '18 : Circlips 4', 'Gris', []], 'Circlips 5': [19, '19 : Circlips 5', 'Gris', []]} -# objects=['Axe biellette inf', 'Axe biellette sup', 'Axe doigt inf', 'Axe doigt sup', 'Axe piston', 'Biellette inf', 'Biellette sup', 'Bouchon', 'Circlips 1', 'Circlips 2', -# 'Circlips 3', 'Circlips 4', 'Circlips 5', 'Corps', 'Doigt inf', 'Doigt sup', 'Joint bouchon', 'Joint piston', 'Piston'] -# objects_anim=['Axe biellette inf', 'Axe biellette sup', 'Axe piston', 'Biellette inf', 'Biellette sup', 'Doigt inf', 'Doigt sup', 'Joint piston', 'Piston'] -# objets_couleur=['MagentaF', 'MagentaF', 'VioletF', 'VioletF', 'VertF', 'Couleur5', 'Couleur5', 'TurquoiseF', 'Gris', 'Gris', 'Gris', 'Gris', 'Gris', -# 'Couleur1', 'Couleur7', 'Couleur7', 'Couleur2', 'Couleur6', 'Vert'] - # Couleurs colors=[['Couleur1', [0.202, 0.114, 0.512, 1]], @@ -87,10 +76,6 @@ colors_dict={'Couleur1' : [0.202, 0.114, 0.512, 1], 'Gris' : [0.258,0.275, 0.319, 1], 'VioletF' : [0.100,0.058, 0.254, 1]} -############################################################################### -# Mécanisme -############################################################################### - # Initialisation def init(cont): scene.objects['Mecanism']['objects'] = objects