That’s all: I can’t found the 2.28 method, function, attribute… in an object to be linked to an existing IPO. Thanks.
Io can link an existing IPO BLOCK to an object only if IPO type matches.
If the menu button on the IPO Window Header does not show any IPO BLOCK then there are none of the right Kind.
You can Cut & Paste an IPO CURVE from one block to another though, but first you must create an empty BLOCK for holding it.
<edit> OK, I’m getting tired, I Believed I Was in the Q&A General…</edit>
Stefano
Sorry? I’m talking about PYTHON
ruta=Blender.Ipo.New('Object','name')
curX=ruta.addCurve('LocX')
curY=ruta.addCurve('LocY')
curX.addBezier(...)
curY.addBezier(...)
obj=Blender.Object.New('Empty')
etc.
I want to link ruta to obj
What NOW, please? There’s neither obj.assignIPO(), obj.setIPO(), …
(Thanks anyway )
Klopes:
Sorry to say I don’t know enough about Python and/or the new API to help you.
I hope you do not mind, but I had a couple questions regarding your rotlopes python script that I posted in a thread that has since sunk to page 2. (They are at the bottom of the post).
https://blenderartists.org/forum/viewtopic.php?t=16330
Thank you for any assistance.
I hope you fnd help for your question also.
Klopes:
Maybe you would have better luck posting this over in the Python forum at:
http://www.blender.org/modules.php?op=modload&name=phpBB2&file=index
I found an article on the status of the Python API, but it was fairly old (May 18,2003):
Also, I see that stani has made a nicely formatted document at:
http://spe.pycs.net/stories/2.html
but as you have already mentioned, there does not seem to be any existing method yet to assign an IPO to an object.
Perhaps, this simply has not been implemented yet?
Also, thanks for the help with your rotlopes.py script.
I plan on trying it out this weekend.
It looks like it will be a very useful script.
Do you know about the ‘game to ipo’ script, http://olivierblin.free.fr/blender/python/ ? I hadn’t studied it before but did a little now and it seems to deal with IPOs like this:
obj = Blender.Object.Get(name)
ipo_erase(obj)
# store info in an ipo
ipo_insert(obj,my_frame,xpos,ypos,zpos,xrot,yrot,zrot)
hopefully this helps,
~Toni
Merci antont, but it looks too old for the new API. We’ll have to wait to new functions been implemented. Maybe in Blender2.3??? :-?
And thanks Jarrell! I didn’t realized about the existence of such that forum!
ah, i’ll try to have the time to look at the state of the new implementation 'cause might need that functionality badly soon
~Toni