Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
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