Materials not linking

Hi All,

sorry for flooding the forum and thanks a lot for the help!

So I have a matherial:

print ‘Will use material <’,, ‘>’

it gives me out the name I wanted. I assume everything is ok.

Then I want to assign it to a curve. It is called curve. Here is what I do with it:

    curve = Blender.Curve.New( name )


    ob = Blender.Object.New('Curve', name) 
    scn = Blender.Scene.GetCurrent() 

It should work like this, shouldn’t it?
But when I type

   print 'Materials: ', curve.getTotcol()

it says that there aren’t any materials. :frowning: Needless to say, the curve is rendered without a material.

What am I doing wrong?