help:Get FCurve From Parameter....

Discussions concerning programming of SOFTIMAGE©
Post Reply
mjd3d
Posts: 23
Joined: 13 Sep 2011, 22:31

help:Get FCurve From Parameter....

Post by mjd3d » 30 Apr 2012, 15:11

hi all,can any one help me to get FCurve From Parameter in C++???...
i want to get the maximum Key Frame on FCurve....


Application app;

Selection selection( app.GetSelection() );
LONG lCount = selection.GetCount();
if (lCount == 1){
X3DObject obj(selection[0]);

Parameter posx( obj.GetParameter( L"posx" ) );
Parameter posy( obj.GetParameter( L"posy" ) );
Parameter posz( obj.GetParameter( L"posz" ) );
}

Ahmidou
Posts: 106
Joined: 04 Jan 2010, 14:00

Re: help:Get FCurve From Parameter....

Post by Ahmidou » 30 Apr 2012, 18:26

Hello
try Parameter.GetSource()

mjd3d
Posts: 23
Joined: 13 Sep 2011, 22:31

Re: help:Get FCurve From Parameter....

Post by mjd3d » 30 Apr 2012, 18:39

Ahmidou wrote:Hello
try Parameter.GetSource()
I tried but did not succeed.
Do you have another way?

Thanks...

Ahmidou
Posts: 106
Joined: 04 Jan 2010, 14:00

Re: help:Get FCurve From Parameter....

Post by Ahmidou » 30 Apr 2012, 18:41

FCurve Curve( param.GetSource()); is working for me and there is no other way....

mjd3d
Posts: 23
Joined: 13 Sep 2011, 22:31

Re: help:Get FCurve From Parameter....

Post by mjd3d » 30 Apr 2012, 18:59

how can i get the maximum key frame on FCurve???

Is this True???
CTime Frame(Curve.GetMaxKeyFrame());

Ahmidou
Posts: 106
Joined: 04 Jan 2010, 14:00

Re: help:Get FCurve From Parameter....

Post by Ahmidou » 30 Apr 2012, 19:18

Do you want the key with the highest value or the highest time?
GetMaxKeyFrame() give you a time, if you want a value use GetMaxKeyValue().

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests