Get all properties for a specific frame
| 253 | |
| 254 | // Get all properties for a specific frame |
| 255 | std::string Blur::PropertiesJSON(int64_t requested_frame) const { |
| 256 | |
| 257 | // Generate JSON properties list |
| 258 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 259 | |
| 260 | // Keyframes |
| 261 | root["horizontal_radius"] = add_property_json("Horizontal Radius", horizontal_radius.GetValue(requested_frame), "float", "", &horizontal_radius, 0, 100, false, requested_frame); |
| 262 | root["vertical_radius"] = add_property_json("Vertical Radius", vertical_radius.GetValue(requested_frame), "float", "", &vertical_radius, 0, 100, false, requested_frame); |
| 263 | root["sigma"] = add_property_json("Sigma", sigma.GetValue(requested_frame), "float", "", &sigma, 0, 100, false, requested_frame); |
| 264 | root["iterations"] = add_property_json("Iterations", iterations.GetValue(requested_frame), "float", "", &iterations, 0, 100, false, requested_frame); |
| 265 | root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame); |
| 266 | root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", BLUR_MASK_POST_BLEND, mask_mode)); |
| 267 | root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", BLUR_MASK_DRIVE_AMOUNT, mask_mode)); |
| 268 | |
| 269 | // Return formatted string |
| 270 | return root.toStyledString(); |
| 271 | } |