| 470 | } |
| 471 | |
| 472 | luabind::object CtrlrPanel::getModulatorsWithPropertyLua (const String &propertyName, const String &propertyValue) |
| 473 | { |
| 474 | using namespace luabind; |
| 475 | object table = newtable (getCtrlrLuaManager().getLuaState()); |
| 476 | |
| 477 | for (int i = 0; i<ctrlrModulators.size(); i++) |
| 478 | { |
| 479 | if (ctrlrModulators[i]->getProperty(propertyName).toString() == propertyValue) |
| 480 | { |
| 481 | table[i + 1] = ctrlrModulators[i]; |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | return (table); |
| 486 | } |
| 487 | |
| 488 | /** @brief Get a a modulator with a specified property set to a specified value |
| 489 |
nothing calls this directly
no test coverage detected