[Bf-python] Refresh the Ipo editor window to show curves of the selected bone

bkurdali at freefac.org bkurdali at freefac.org
Fri Jul 24 22:04:30 CEST 2009


If it's the same thing I ran into a while ago, it could be that the 'sel'
flag sets the bone selected, but not active. The IPO curve window only
displays the active bone.
If it is not the same thing, then you could try doing a redraw in your
script to refresh the curve window.
Based on what you say about the user having to manually click on the bone
I think it's the first problem (you can only make the bone selected in
python but not active).

This is clearly not helpful to you, since I only had an idea of what the
problem could be and not the solution (I think my reaction in the past was
to give up on what I was trying to do), but maybe it can help someone else
with the answer.

cheers
Bassam


> Hi all,
>
> when i select bones using python ( i.e. setting the .sel property of a
> posebone), the ipo editor does not refresh to show the according curves.
> Is there any way to trigger this refresh? This is very important to me, i
> would write a patch for it if i could. But i cannot find the right place
> in the source code that makes it happen. I am tankful for any suppport!
>
> The reason that i need this that i wrote some Character Rig UI that makes
> the selection of bones easier. But if the ipo curves are not being
> displayed right away, the user has to manually click at the bone *again*
> to make it happen, but that is not very comfortable especially if the bone
> is invisible on purpose or hard to reach.
>
> I want to make it work in Blender 2.49
>
> I had the idea to use QAdd and fake a LMB click at the bone. But when
> objects overlap or are out of the screen space it would not work either. I
> am desperately in need of help.
> --
> Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>





More information about the Bf-python mailing list