Get all properties for a specific frame
| 158 | |
| 159 | // Get all properties for a specific frame |
| 160 | std::string Bars::PropertiesJSON(int64_t requested_frame) const { |
| 161 | |
| 162 | // Generate JSON properties list |
| 163 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 164 | |
| 165 | // Keyframes |
| 166 | root["color"] = add_property_json("Bar Color", 0.0, "color", "", &color.red, 0, 255, false, requested_frame); |
| 167 | root["color"]["red"] = add_property_json("Red", color.red.GetValue(requested_frame), "float", "", &color.red, 0, 255, false, requested_frame); |
| 168 | root["color"]["blue"] = add_property_json("Blue", color.blue.GetValue(requested_frame), "float", "", &color.blue, 0, 255, false, requested_frame); |
| 169 | root["color"]["green"] = add_property_json("Green", color.green.GetValue(requested_frame), "float", "", &color.green, 0, 255, false, requested_frame); |
| 170 | root["left"] = add_property_json("Left Size", left.GetValue(requested_frame), "float", "", &left, 0.0, 0.5, false, requested_frame); |
| 171 | root["top"] = add_property_json("Top Size", top.GetValue(requested_frame), "float", "", &top, 0.0, 0.5, false, requested_frame); |
| 172 | root["right"] = add_property_json("Right Size", right.GetValue(requested_frame), "float", "", &right, 0.0, 0.5, false, requested_frame); |
| 173 | root["bottom"] = add_property_json("Bottom Size", bottom.GetValue(requested_frame), "float", "", &bottom, 0.0, 0.5, false, requested_frame); |
| 174 | |
| 175 | // Return formatted string |
| 176 | return root.toStyledString(); |
| 177 | } |