FXint included = 0; // get the existing "included" channels fxKeyInclusionGet( obj, 2, &included, FX_NOFLAG ); // add xpos and zpos to it included |= (FX_X_POSITION_BIT|FX_Z_POSITION_BIT); // set the new inclusion fxKeyInclusionSet( obj, 2, included, FX_NOFLAG );
FXint keyID = 0; FXint created = FX_FALSE; created = fxKeyCreate( obj, 5.0, &keyID, FX_NOFLAG ); if( created == FX_TRUE ) // new key created { // ... } else if( created == 2 ) // key already existed { // ... }
fxKeyChannelsSet( object, 0, FX_Y_POSITION, &value, FX_NOFLAG );
FXvecd values; // ... fxKeyChannelsSet( object, 0, FX_ROTATION, values, FX_NOFLAG );
FXchannels allValues; //... fxKeyChannelsSet( object, 0, FX_ALL_CHANNELS, allValues, FX_NOFLAG );
FXvecd values = { 1.0, 1.0, 1.0 }; fxChannelsSet( object, FX_POSITION, values, FX_NOFLAG );
FXdouble val = 2.0; fxChannelsBlend( object, FX_Y_POSITION, &val, FX_CHANOP_ADD, FX_NOFLAG );
© 2003 pmG WorldWide,
LLC.
|
Last
Updated on Thu Jul 10 04:49:36 2003
|