Get all properties for a specific frame
| 182 | |
| 183 | // Get all properties for a specific frame |
| 184 | std::string Hue::PropertiesJSON(int64_t requested_frame) const { |
| 185 | |
| 186 | // Generate JSON properties list |
| 187 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 188 | |
| 189 | // Keyframes |
| 190 | root["hue"] = add_property_json("Hue", hue.GetValue(requested_frame), "float", "", &hue, 0.0, 1.0, false, requested_frame); |
| 191 | root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame); |
| 192 | root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", HUE_MASK_LIMIT_TO_AREA, mask_mode)); |
| 193 | root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", HUE_MASK_VARY_STRENGTH, mask_mode)); |
| 194 | |
| 195 | // Return formatted string |
| 196 | return root.toStyledString(); |
| 197 | } |