Pivot Point

(animani) #1

Hi guys,

Anyone would know how to change the space to View_3D before I run some other lines?

It seems is the error I get when trying to change the pivot_point.

AttributeError: ‘SpaceTextEditor’ object has no attribute ‘pivot_point’

(Martynas Žiemys) #2

It will be very interesting to see the help people are able to provide with the amount of information and context you provided.

(animani) #3

Thanks for trying to help mate. It’s pretty simple I am trying to change the pivot center from a script but I get that error. When you change the pivot center you get this in the info window:

bpy.context.space_data.pivot_point = ‘INDIVIDUAL_ORIGINS’

But that doesn’t work as any other lines taken from the info window. So I was wondering why.

Did that help?

(Martynas Žiemys) #4

Oh, OK.

import bpy

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

(animani) #5

Thanks a million MartinZ.