  | | | How do I get the curveeditorcontrol 's fcurve object | How do I get the curveeditorcontrol 's fcurve object 2005-04-30 - By Felix Gebhardt
Back Hi,
I'm trying to equip a C++ operator with a fcurve editor (a profile curve like the Bulge op). If put a DSFCurveEditorCtrl in the operator's property set the editing framework appears but no default curve is shown. Any way at the moment to get this going?
As a workaround I hook up an external custom property to a dedicated port group. Question is: How do I get to it's fcurve object from the C++ API? Is there any information how to convert the COM pointer to a CRef?
That's what I got so far:
InputPort inPort( op.GetPort(L"I_Control",L"Group_1",0) ); if(inPort.IsConnected()) { Property ctrl(inPort.GetValue()); Parameter para(ctrl.GetParameter(L"Profile")); CComAPIHandler comPara(para.GetRef()); CValue val = comPara.GetProperty( L"Value" ); app.LogMessage(CValue(val.m_t==CValue::siIDispatch).GetAsText()); // INFO : siIDispatch thingy? true app.LogMessage(val.GetAsText()); // INFO : some address like 0D8F89B0 app.LogMessage(val); // INFO : FCurve }
I tried a lot of conversion gymnastic here but nothing seems to work. Any COM folks around?
Thanks in advance, Felix --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |