zsoufianz
(zsoufianz)
January 15, 2017, 10:39am
1
Hello,
I use Blender as Python api. I want to display my STL file but i can’t do that.
I want to display it with tkinter or PyQt.
import bpyimport math
from bpy.props import IntProperty, FloatProperty
import mathutils
import tkinter
from tkinter import *
fenetre = tkinter.Tk()
canvas = Canvas(fenetre,width=900, height=600)
scene = bpy.context.scene
obj=bpy.ops.import_mesh.stl(filepath="C://Users//admin//Desktop//ProjetOrthese1//Main.stl")
print(scene)
can you help me please?
Spirou4D
(Spirou4D)
January 15, 2017, 11:46pm
2
import bpyimport mathfrom bpy.props import IntProperty, FloatProperty
import mathutils import tkinter
CORRECTION:
import bpy, math, tkinter
from bpy.props import IntProperty, FloatProperty
zsoufianz
(zsoufianz)
January 16, 2017, 12:47am
3
je cherche comment afficher l’objet STL sur l’interface plutot …
Spirou4D
(Spirou4D)
January 16, 2017, 1:27am
4
Corrige d’abord! Tu en est encore loin…
zsoufianz
(zsoufianz)
January 16, 2017, 3:03am
5
oui j’ai corrigé merci. est ce que tu peux me donné des pistes pour arrivé à la solution?
Spirou4D
(Spirou4D)
January 16, 2017, 3:25am
6
Non on ne dit par “oui j’ai corrigé” mais
“Merci beaucoup pour ton aide!”
Salut.
zsoufianz
(zsoufianz)
January 16, 2017, 3:40am
7
premièrement, je n’ai pas d’erreur au niveau de mon code c juste sur le site qui a coller bpy avec import.
deuxièmement, ma question est rien a voir avec tes réponse.
et enfin salut
Spirou4D
(Spirou4D)
January 16, 2017, 3:54am
8
Allez vous faire voir, pauvre con!
Vous aurez des réponses quand vous vous comporterez plus poliment avec les autres!
zsoufianz
(zsoufianz)
January 16, 2017, 4:21am
9
!!! je vais rien te dire, je vais pas baisser mon niveau.