Page 1 of 1

Clear text according to timeline

Posted: Mon Dec 30, 2024 6:20 pm
by dolven
Hello, I would like to know if it is possible to clear the text on the dialog according to the timeline clip.

The text seems to stay on the panel even after the clip has finished.

See attached picture.

Re: Clear text according to timeline

Posted: Mon Dec 30, 2024 8:47 pm
by Tony Li
Hi,

Set the conversation's Default Sequence to something like:

Code: Select all

ClearSubtitleText(all)@{{end}}
To override the Dialogue Manager's Default Sequence for a specific conversation, inspect the conversation in the Dialogue Editor. Select Menu > Conversation Properties. Then tick Override Display Settings > Camera Settings.

Re: Clear text according to timeline

Posted: Tue Dec 31, 2024 2:35 am
by dolven
Thanks, I ended up using

Code: Select all

WaitForMessage(0); ClearSubtitleText(all)@{{end}}
Which seems to work well.

Re: Clear text according to timeline

Posted: Tue Dec 31, 2024 7:10 am
by Tony Li
Hi,

Sounds good. I take it you're sending the sequencer message "0", maybe as a timeline event. In any case, I'm glad it's working.

Re: Clear text according to timeline

Posted: Tue Dec 31, 2024 8:19 pm
by dolven
Hi, thanks for the reply, seems I'm still not where I want to be. I assumed WaitForMessage(0) was the way to have the dialogue wait until the next clip. If I don't include this, then the conversation continues regardless of where I have placed the Continue Conversation clips.

I've included screens of before and after at the same timeline position with and without the WaitForMessage(0). However, this seems to present another issue - although the message clears, it seems to clear before the end of the clip in the timeline.

My intent is to play a conversation through without any user interaction and have the start and end points of the clip represent the start and end points of the dialogue visibility, If there's a better approach to all this, I'm all ears :)

Re: Clear text according to timeline

Posted: Tue Dec 31, 2024 8:46 pm
by Tony Li
Hi,

A Continue Conversation clip is a point-in-time clip. It tells the conversation to continue to the next dialogue entry. The Continue Conversation clip's inspector does have an Update Duration button that attempts to match the clip's visual length in the timeline window to the duration of the sequence, but since sequences can have variable durations, it primarily only looks at any audio clips that you might be playing in the entry's sequence.

Use WaitForMessage(0) to prevent the dialogue entry from continuing on its own, and use ClearSubtitleText(all)@{{end}} to hide the subtitle text after a duration based on the text length and the Dialogue Manager's Display Settings > Subtitle Settings. If you want to specify exact durations instead of using the special keyword {{end}}, you can do that, too. For example, to show the text for 3.5 seconds:

Code: Select all

WaitForMessage(0); ClearSubtitleText(all)@3.5

Re: Clear text according to timeline

Posted: Tue Dec 31, 2024 11:56 pm
by dolven
Thanks a lot for that, this has fixed the issue.

I have one final issue though, when I switch the Actor and Conversant in one of the Dialogue Entries, the Conversation stops at that point.

Re: Clear text according to timeline

Posted: Wed Jan 01, 2025 10:12 am
by Tony Li
Hi,

It might be trying to show that as a response menu. Since there's only one player response, you probably want to show it as a subtitle. Please see: How To: Bypass Response Menu When Player Has One Choice. You can do this on a per-conversation basis by setting the conversation's properties > Override Display Settings.

Re: Clear text according to timeline

Posted: Wed Jan 01, 2025 8:24 pm
by dolven
Thanks that's all done now, much appreciated for the help.

Re: Clear text according to timeline

Posted: Wed Jan 01, 2025 8:35 pm
by Tony Li
Glad to help!