Get all properties for a specific frame
| 167 | |
| 168 | // Get all properties for a specific frame |
| 169 | std::string Shift::PropertiesJSON(int64_t requested_frame) const { |
| 170 | |
| 171 | // Generate JSON properties list |
| 172 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 173 | |
| 174 | // Keyframes |
| 175 | root["x"] = add_property_json("X Shift", x.GetValue(requested_frame), "float", "", &x, -1, 1, false, requested_frame); |
| 176 | root["y"] = add_property_json("Y Shift", y.GetValue(requested_frame), "float", "", &y, -1, 1, false, requested_frame); |
| 177 | |
| 178 | // Return formatted string |
| 179 | return root.toStyledString(); |
| 180 | } |