Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is the FbxTime::eFrames30Drop mode usable?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
i_radax
208 Views, 2 Replies

Is the FbxTime::eFrames30Drop mode usable?

I've run into problems using FbxTime::eFrames30Drop.

I've written the following code snippet to demonstrate:

FbxTime time;
time.SetSecondDouble( 1.0 );
auto frameCount = time.GetFrameCount( FbxTime::eFrames30Drop );

FbxTime time2;
time2.SetFrame( 100, FbxTime::eFrames30Drop );
auto milliseconds = time2.GetMilliSeconds();

auto oneFrameValue = FbxTime::GetOneFrameValue( FbxTime::eFrames30Drop );

frameCount is always 0, doesn't matter what I initialize time with.

GetMilliSeconds() always returns 0, it seems that 0 was stored in time2.

And GetOneFrameValue() return 0.

 

All other modes seem to work fine, this only happens with FbxTime::eFrames30Drop.

I'm wondering if FbxTime::eFrames30Drop is even usable, or if there is some bug here.

2 REPLIES 2
Message 2 of 3
regalir
in reply to: i_radax

Hi, to answer your question: no eFrames30Drop is not usable! It was defined, long time ago, exclusively for MotionBuilder. It cannot be removed from the enumeration because it would break the backward compatibility with older files. However, this enum being equivalent to the NTSC drop, you can get the correct value by using : eNTSCDropFrame.

 

Hope this answers your question.

Regards

Message 3 of 3
i_radax
in reply to: i_radax

Thanks, yes that answers my question.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report