You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Adding additional meta data to effects Json()
This commit is contained in:
@@ -70,6 +70,12 @@ Json::Value EffectBase::JsonValue() {
|
||||
|
||||
// Create root json object
|
||||
Json::Value root = ClipBase::JsonValue(); // get parent properties
|
||||
root["name"] = info.name;
|
||||
root["class_name"] = info.class_name;
|
||||
root["short_name"] = info.short_name;
|
||||
root["description"] = info.description;
|
||||
root["has_video"] = info.has_video;
|
||||
root["has_audio"] = info.has_audio;
|
||||
root["order"] = Order();
|
||||
|
||||
// return JsonValue
|
||||
|
||||
@@ -308,7 +308,7 @@ string Blur::PropertiesJSON(long int requested_frame) {
|
||||
Json::Value root;
|
||||
root["id"] = add_property_json("ID", 0.0, "string", Id(), false, 0, -1, -1, CONSTANT, -1, true);
|
||||
root["position"] = add_property_json("Position", Position(), "float", "", false, 0, 0, 1000 * 60 * 30, CONSTANT, -1, false);
|
||||
root["layer"] = add_property_json("Layer", Layer(), "int", "", false, 0, 0, 1000, CONSTANT, -1, false);
|
||||
root["layer"] = add_property_json("Layer", Layer(), "int", "", false, 0, 0, 20, CONSTANT, -1, false);
|
||||
root["start"] = add_property_json("Start", Start(), "float", "", false, 0, 0, 1000 * 60 * 30, CONSTANT, -1, false);
|
||||
root["end"] = add_property_json("End", End(), "float", "", false, 0, 0, 1000 * 60 * 30, CONSTANT, -1, false);
|
||||
root["duration"] = add_property_json("Duration", Duration(), "float", "", false, 0, 0, 1000 * 60 * 30, CONSTANT, -1, true);
|
||||
|
||||
Reference in New Issue
Block a user