Results 1 to 4 of 4
  1. #1

    Problem in PyQt with blender

    I create an interface with PyQt5 Inside Blender. i embed into this interface some buttons to run my script.
    My project is import a file .stl with a button from my hard drive and it works well.
    def importCommand(self, context): 
            qfd = QFileDialog()
            title = 'Open STL file'
            path = "C:/"
            f = QFileDialog.getOpenFileName(qfd, title, path, '*.stl')
    def Remake(self,context):
        main =['Main'] main
        bpy.ops.transform.resize(value=(1+pourcentageaugmentation, 1+pourcentageaugmentation, 1+pourcentageaugmentation), constraint_axis=(False, False, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1)
        return {'FINISHED'}
    But when i add a function to remake this stl file, The blender and my interface PyQt crashe:

    My problem is in this function bpy.ops.transform.resize
    Can you help me please?
    Last edited by Py3D; 16-Mar-17 at 05:51.

  2. #2
    is there any reply....

  3. #3
    What is the console output? (If you start blender from a console, there might be some error messages after crashing.)

  4. #4
    Member VincentG's Avatar
    Join Date
    Apr 2013
    Belgium, Brussels
    Originally Posted by Py3D View Post
    is there any reply....
    You can also read answers...

    Your Blender is probably not crashing but wait that the Qt window finish.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts