0
$\begingroup$

in command bpy.ops.object.text_add scale not worked #scale=(0.005, 0.005, 0.005)

import bpy
bpy.ops.object.text_add(enter_editmode=False, align='WORLD', location=(2, 1  ,0), scale=(0.005, 0.005, 0.005), rotation=(1.5708, 0, 1.5708))
ob=bpy.context.object
ob.data.body = "test" #row[0] 
$\endgroup$
3
  • $\begingroup$ one the one hand it appears to be a bug. However if I use a method like primitive_cube_add(...scale=(2.0,1.0,0.5)...) the resulting objects ends up with a scale of (1,1,1) but with Dimensions changed to accord with my desired scale, i.e., Object:: apply :: scale. The question is whether you want to report this as a bug (perhaps you should try), or ask the question in this forum: "If I apply scale of a text object, the result is not as expected" (try this yourself). $\endgroup$ Commented Mar 25, 2023 at 17:28
  • 1
    $\begingroup$ use radius=0.5 $\endgroup$ Commented Mar 26, 2023 at 4:32
  • $\begingroup$ the scale has 3 axes ... $\endgroup$ Commented Mar 26, 2023 at 18:10

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.