View Full Version : What am I doing wrong?

06 June 2007, 01:16 PM
I am trying to store a value of a object keyframe in a variable but I am getting a error and I donīt know what is wrong.

My expression:

float $div = `keyframe -in 1 -q -vc splash_Emitter.rate`;

And I am getting this error:

"// Error: Cannot convert data of type float[] to type float. //"

the value should be "50000".

Can someone help me?

Robert Bateman
06 June 2007, 01:31 PM
float $temp[] = `keyframe -in 1 -q -vc splash_Emitter.rate`;
float $fdiv = temp[0];

06 June 2007, 05:17 PM
thank you very much!!


CGTalk Moderation
06 June 2007, 05:17 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.