Ipo addCurve issue

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
lukacu
Posts: 2
Joined: Sun May 16, 2004 12:48 am
Location: L-Space
Contact:

Ipo addCurve issue

Post by lukacu » Fri Dec 15, 2006 10:35 pm

hello,

I am having a bit of a trouble using python api to access ipo curves. example:

Code: Select all

c = ipo.addCurve('SizeX')
and blender returns error: NameError: curve name is not valid. ipo is of course Ipo object of type Object. The funny thing is that it works for curve name 'LocX' for example. according to the api specification 'SizeX' is a valid curve name or am i missing something here?

I am using blender 2.42a on OSX (python 2.3)

teppic
Posts: 45
Joined: Tue Aug 22, 2006 12:14 pm
Location: Gothenburg, Sweden

Post by teppic » Mon Dec 18, 2006 10:37 am

I think SizeX was recently renamed to ScaleX to avoid confusion when DimX was added to the transform properties.

lukacu
Posts: 2
Joined: Sun May 16, 2004 12:48 am
Location: L-Space
Contact:

Post by lukacu » Mon Dec 18, 2006 3:08 pm

Thanks for your help, it works now ... i would have never thought the solution could be so simple :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest