我试图制作一个循环,它将移动物体移到前一个
之外 像那样 cube50 - move to 50y
cube100 - move to 50y + 100
cube400 - move to 150y + 400
但我遇到循环问题,我的想法是 location = locationY + dimensionY
import bpy
for ob in bpy.context.selected_objects:
bpy.context.scene.objects.active = ob
Y = ob.dimensions[1]
for Y in ob:
ob.location[1] = ob.dimensions[1] + Y
但是......希望有人可以帮忙^ _ ^