THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2009 at 22:35, xxxxxxxx wrote:
Not sure why but when I try using the GetNBit(NBIT_TL1_SELECT) like you mentioned above, I keep getting false returned even though I see the key selected.
Here is a snippet of code
//Set Curr_Key to first found key
Curr_Key =Curr_Seq->GetKey(0);
//Loop through all the keys on this track
while(Curr_Key )
{ GePrint(LongToString(Curr_Key->GetTime().GetFrame(GetActiveDocument()->GetFps())));
GePrint(LongToString(Curr_Key->GetNBit(NBIT_TL1_SELECT)));
//When an active key if(Curr_Key->GetNBit(NBIT_TL1_SELECT) || Curr_Key->GetNBit(NBIT_TL2_SELECT) || Curr_Key->GetNBit(NBIT_TL3_SELECT) || Curr_Key->GetNBit(NBIT_TL4_SELECT))
{
//DO something
GePrint("ENTERED");
}
I have confirmed that the keys exist and the 1st GePrint statement show print the value of their time. But the second one always comes up as zero/false. And I cannot get into the above if statement. Any advice?