| 406 | return out_list |
| 407 | |
| 408 | def calc_fe(_, x_d_new, eyes, eyebrow, wink, pupil_x, pupil_y, mouth, eee, woo, smile, |
| 409 | rotate_pitch, rotate_yaw, rotate_roll): |
| 410 | |
| 411 | x_d_new[0, 20, 1] += smile * -0.01 |
| 412 | x_d_new[0, 14, 1] += smile * -0.02 |
| 413 | x_d_new[0, 17, 1] += smile * 0.0065 |
| 414 | x_d_new[0, 17, 2] += smile * 0.003 |
| 415 | x_d_new[0, 13, 1] += smile * -0.00275 |
| 416 | x_d_new[0, 16, 1] += smile * -0.00275 |
| 417 | x_d_new[0, 3, 1] += smile * -0.0035 |
| 418 | x_d_new[0, 7, 1] += smile * -0.0035 |
| 419 | |
| 420 | x_d_new[0, 19, 1] += mouth * 0.001 |
| 421 | x_d_new[0, 19, 2] += mouth * 0.0001 |
| 422 | x_d_new[0, 17, 1] += mouth * -0.0001 |
| 423 | rotate_pitch -= mouth * 0.05 |
| 424 | |
| 425 | x_d_new[0, 20, 2] += eee * -0.001 |
| 426 | x_d_new[0, 20, 1] += eee * -0.001 |
| 427 | #x_d_new[0, 19, 1] += eee * 0.0006 |
| 428 | x_d_new[0, 14, 1] += eee * -0.001 |
| 429 | |
| 430 | x_d_new[0, 14, 1] += woo * 0.001 |
| 431 | x_d_new[0, 3, 1] += woo * -0.0005 |
| 432 | x_d_new[0, 7, 1] += woo * -0.0005 |
| 433 | x_d_new[0, 17, 2] += woo * -0.0005 |
| 434 | |
| 435 | x_d_new[0, 11, 1] += wink * 0.001 |
| 436 | x_d_new[0, 13, 1] += wink * -0.0003 |
| 437 | x_d_new[0, 17, 0] += wink * 0.0003 |
| 438 | x_d_new[0, 17, 1] += wink * 0.0003 |
| 439 | x_d_new[0, 3, 1] += wink * -0.0003 |
| 440 | rotate_roll -= wink * 0.1 |
| 441 | rotate_yaw -= wink * 0.1 |
| 442 | |
| 443 | if 0 < pupil_x: |
| 444 | x_d_new[0, 11, 0] += pupil_x * 0.0007 |
| 445 | x_d_new[0, 15, 0] += pupil_x * 0.001 |
| 446 | else: |
| 447 | x_d_new[0, 11, 0] += pupil_x * 0.001 |
| 448 | x_d_new[0, 15, 0] += pupil_x * 0.0007 |
| 449 | |
| 450 | x_d_new[0, 11, 1] += pupil_y * -0.001 |
| 451 | x_d_new[0, 15, 1] += pupil_y * -0.001 |
| 452 | eyes -= pupil_y / 2. |
| 453 | |
| 454 | x_d_new[0, 11, 1] += eyes * -0.001 |
| 455 | x_d_new[0, 13, 1] += eyes * 0.0003 |
| 456 | x_d_new[0, 15, 1] += eyes * -0.001 |
| 457 | x_d_new[0, 16, 1] += eyes * 0.0003 |
| 458 | x_d_new[0, 1, 1] += eyes * -0.00025 |
| 459 | x_d_new[0, 2, 1] += eyes * 0.00025 |
| 460 | |
| 461 | |
| 462 | if 0 < eyebrow: |
| 463 | x_d_new[0, 1, 1] += eyebrow * 0.001 |
| 464 | x_d_new[0, 2, 1] += eyebrow * -0.001 |
| 465 | else: |