@@ -79,9 +79,9 @@ void Clip::init_settings()
7979 wave_color = Color ((unsigned char )0 , (unsigned char )123 , (unsigned char )255 , (unsigned char )255 );
8080
8181 // Init crop settings
82- crop_gravity = GRAVITY_CENTER ;
83- crop_width = Keyframe (- 1.0 );
84- crop_height = Keyframe (- 1.0 );
82+ crop_gravity = GRAVITY_TOP_LEFT ;
83+ crop_width = Keyframe (1.0 );
84+ crop_height = Keyframe (1.0 );
8585 crop_x = Keyframe (0.0 );
8686 crop_y = Keyframe (0.0 );
8787
@@ -716,6 +716,11 @@ string Clip::PropertiesJSON(int64_t requested_frame) {
716716 root[" has_audio" ] = add_property_json (" Enable Audio" , has_audio.GetValue (requested_frame), " int" , " " , &has_audio, -1 , 1.0 , false , requested_frame);
717717 root[" has_video" ] = add_property_json (" Enable Video" , has_video.GetValue (requested_frame), " int" , " " , &has_video, -1 , 1.0 , false , requested_frame);
718718
719+ root[" crop_x" ] = add_property_json (" Crop X" , crop_x.GetValue (requested_frame), " float" , " " , &crop_x, -1.0 , 1.0 , false , requested_frame);
720+ root[" crop_y" ] = add_property_json (" Crop Y" , crop_y.GetValue (requested_frame), " float" , " " , &crop_y, -1.0 , 1.0 , false , requested_frame);
721+ root[" crop_width" ] = add_property_json (" Crop Width" , crop_width.GetValue (requested_frame), " float" , " " , &crop_width, 0.0 , 1.0 , false , requested_frame);
722+ root[" crop_height" ] = add_property_json (" Crop Height" , crop_height.GetValue (requested_frame), " float" , " " , &crop_height, 0.0 , 1.0 , false , requested_frame);
723+
719724 root[" wave_color" ] = add_property_json (" Wave Color" , 0.0 , " color" , " " , &wave_color.red , 0 , 255 , false , requested_frame);
720725 root[" wave_color" ][" red" ] = add_property_json (" Red" , wave_color.red .GetValue (requested_frame), " float" , " " , &wave_color.red , 0 , 255 , false , requested_frame);
721726 root[" wave_color" ][" blue" ] = add_property_json (" Blue" , wave_color.blue .GetValue (requested_frame), " float" , " " , &wave_color.blue , 0 , 255 , false , requested_frame);
0 commit comments