[Cin] *Broken* patch - reset some parameters in Titler (crashes Cin!)

Rafa Mar Multimedia en Gnu\Linux rafamar.mm.ig at gmail.com
Sat Jan 23 21:06:43 CET 2021


Please don't worry Phyllis, everyone does what their time allows. And I
think it's very good that you are cautious about including code in Git.

Andrew, I can think of a simple solution, but I don't know if this is
possible, I don't know if it is possible to change information about the
application loaded in memory. Can the reset button load the following
parameters into the open project memory and load these settings into the
title wizard?
The default settings are these:

<TITLE FONT="" ENCODING="" STYLE=8 SIZE=48 COLOR=0 ALPHA=255 OUTLINE_SIZE=0
OUTLINE_COLOR=16777215 OUTLINE_ALPHA=255 COLOR_STROKE=16711680
STROKE_WIDTH=0 MOTION_STRATEGY=0 LOOP=0 LINE_PITCH=0 PIXELS_PER_SECOND=100
HJUSTIFICATION=1 VJUSTIFICATION=1 FADE_IN=0 FADE_OUT=0 TITLE_X=0 TITLE_Y=0
TITLE_W=0 TITLE_H=0 DROPSHADOW=0 TIMECODE=0 TIMECODEFORMAT=0 WINDOW_W=958
WINDOW_H=460 BACKGROUND=0 BACKGROUND_PATH="" LOOP_PLAYBACK=0>
</TITLE>

The button "Reset" which would open a warning window with a message:
"The default settings will be restored, all current content and settings
will be lost. The wizard will close, you must open it again"

And if the user clicks OK, the information that he has read when loading
effect will be replaced in memory, which comes from the cinelerra cache of
the titler.xml file inside .bcast5 with the one that is opened by default
the first time, now when it returns To open the wizard, it will be with all
its parameters reset and without content.

I don't know if this is possible, or is it silly on the part of a person
who knows nothing about programming.

Another solution could be that the button opens the "Preset Edit" window
and in this there is a button that indicates. "Load defaults" that does
this, if we accept, the content in the title window will is blank whit all
parameters reset.
[image: imagen.png]

This solution seems simpler and does not have to give errors, it is like
having a preset with the default values that cannot be deleted or
manipulated.

El sáb, 23 ene 2021 a las 19:48, Phyllis Smith via Cin (<
cin at lists.cinelerra-gg.org>) escribió:

> Always fun to Hack!  I am so far behind in keeping up with you and RafaMar
> and Andrea working on the manual so I have not had a chance to test any of
> your latest modifications.  And as the "official moderator" I want to be
> very careful about checking anything into GIT without lots of verification.
>
> On Sat, Jan 23, 2021 at 11:40 AM Andrew Randrianasulu via Cin <
> cin at lists.cinelerra-gg.org> wrote:
>
>> So, I tried to implement resetting of most numerical
>> parameters in Titler  gui.
>>
>> Yet, my attempt crashes at Titler window close/Cin exit :(
>>
>> So, DEFINITELY not for merging, but only as
>> my current state of hacking
>> --
>> Cin mailing list
>> Cin at lists.cinelerra-gg.org
>> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210123/b746869b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagen.png
Type: image/png
Size: 56898 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210123/b746869b/attachment-0001.png>


More information about the Cin mailing list