Results 1 to 2 of 2

Thread: Change active area type?

  1. #1

    Change active area type?

    OK, how do I change just the active area to a different type. I got this and it does what I want ,but it changes every area that is image editor to 3d view. I've searched and searched ,but can't get anything to work.


    Code:
                for area in bpy.context.screen.areas:
                    if area.type == 'IMAGE_EDITOR':
                        area.type = 'VIEW_3D'



  2. #2
    Member Meta-Androcto's Avatar
    Join Date
    Aug 2006
    Location
    australia
    Posts
    4,043
    have you tried the editor type pies? the editor type code is in there to a degree.
    maybe your looking for this?
    https://github.com/meta-androcto/ble..._switch-master



Posting Permissions

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