Get all properties for a specific frame
| 292 | |
| 293 | // Get all properties for a specific frame |
| 294 | std::string Saturation::PropertiesJSON(int64_t requested_frame) const { |
| 295 | |
| 296 | // Generate JSON properties list |
| 297 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 298 | |
| 299 | // Keyframes |
| 300 | root["saturation"] = add_property_json("Saturation", saturation.GetValue(requested_frame), "float", "", &saturation, 0.0, 4.0, false, requested_frame); |
| 301 | root["saturation_R"] = add_property_json("Saturation (Red)", saturation_R.GetValue(requested_frame), "float", "", &saturation_R, 0.0, 4.0, false, requested_frame); |
| 302 | root["saturation_G"] = add_property_json("Saturation (Green)", saturation_G.GetValue(requested_frame), "float", "", &saturation_G, 0.0, 4.0, false, requested_frame); |
| 303 | root["saturation_B"] = add_property_json("Saturation (Blue)", saturation_B.GetValue(requested_frame), "float", "", &saturation_B, 0.0, 4.0, false, requested_frame); |
| 304 | root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame); |
| 305 | root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", SATURATION_MASK_POST_BLEND, mask_mode)); |
| 306 | root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", SATURATION_MASK_DRIVE_AMOUNT, mask_mode)); |
| 307 | |
| 308 | // Return formatted string |
| 309 | return root.toStyledString(); |
| 310 | } |