| 243 | |
| 244 | #if BLUE_WITH_PYTHON |
| 245 | PyObject* TriVectorSequencer::PyGetValueDoubleDotAt( PyObject* args ) |
| 246 | { |
| 247 | PyObject* t; |
| 248 | if( !PyArg_ParseTuple( args, "O", &t ) ) |
| 249 | return NULL; |
| 250 | |
| 251 | ITriVectorPtr q; |
| 252 | q.Attach( new OTriVector ); |
| 253 | |
| 254 | if( PyLong_Check( t ) ) |
| 255 | { |
| 256 | Vector3 temp; |
| 257 | q->SetVector( GetValueDoubleDotAt( &temp, (Be::Time)PyLong_AsLongLong( t ) ) ); |
| 258 | } |
| 259 | else if( PyFloat_Check( t ) ) |
| 260 | { |
| 261 | Vector3 temp; |
| 262 | q->SetVector( GetValueDoubleDotAt( &temp, PyFloat_AS_DOUBLE( t ) ) ); |
| 263 | } |
| 264 | else |
| 265 | { |
| 266 | BeOS->SetError( BEDEF, Clsid(), "arg must be of type LongLong (Be::Time) or float" ); |
| 267 | return nullptr; |
| 268 | } |
| 269 | return PyOS->WrapBlueObject( q ); |
| 270 | } |
| 271 | #endif |
| 272 | |
| 273 | |