Add a channel to an action in python.

I’ve been trying to figure out how to define actions in python scripts, but I cannot find out a way to add a channel to an object of type Action. I looked at which gave a way to remove a channel, but not add one. It appears that a channel contains the all the IPO curves associated with a particular bone of the armature, and the channel holds the data as a Blender Ipo type, of type Action.

Also, I’m not quite sure about the way to make new actions. I have found that if I already have an action, I can do Blender.Armature.NLA.CopyAction(). Is this the only way to make a new action or is there a way to make a blank action?

I did another search on the forums and found this thread: . On that thread, someone said that it was not currently possible to create a channel in python. However, that thread is old (December 2005). Is it still the case that channels can’t be created in python?

I’m also interested to know how to do this.
Same conclusion so far…