<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SRT File Selection]]></title><description><![CDATA[<p>Hi Everyone, </p><p>I have a setup using the SRT Player. Lots of videos selected at Random and played through a projector, is there a way to select the matching SRT file to play in sync on a separate projector/screen? </p><p>I've no doubt Im overlooking an obvious Actor to make this happen, enjoying having the subtitles be adaptable through the text draw so would like to keep it that way if possible.</p><p>Many thanks</p><p>Simon</p>]]></description><link>https://community.troikatronix.com/topic/9049/srt-file-selection</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 11:40:53 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/9049.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Nov 2024 15:44:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SRT File Selection on Tue, 05 Nov 2024 04:08:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/740">@dillthekraut</a> I agree the text chopper should be able to do this - seems dumb that it cannot - at any rate this kind of work is better to offload to something a little more standardised than these strange actors. You can use the javascript actor for this easily. Make sure to connect the inputs and outputs of the actor to something that can send and receive text respectively othewise this will not work - the outputs dont automutate to types based on the code for some reason.</p>
<p></p>
<pre>
// iz_input 1 "fileName"
// iz_output 1 "fileNameWithoutExtension"
function main() {
    // Get the input file name from the first argument
    let fileName = arguments[0];
    
    // Use JavaScript to get the base name by removing the last segment after the dot
    let fileNameWithoutExtension = fileName.substring(0, fileName.lastIndexOf('.'));
    // If there is no dot (i.e., no extension), return the file name as it is
    if (fileNameWithoutExtension === "") {
        fileNameWithoutExtension = fileName;
    }
    return fileNameWithoutExtension;
}</pre>]]></description><link>https://community.troikatronix.com/post/55283</link><guid isPermaLink="true">https://community.troikatronix.com/post/55283</guid><dc:creator><![CDATA[Fred]]></dc:creator><pubDate>Tue, 05 Nov 2024 04:08:55 GMT</pubDate></item><item><title><![CDATA[Reply to SRT File Selection on Mon, 04 Nov 2024 21:51:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/5328">@simon100</a></p><p>you could use the "Get media file name" actor combined with the "text formatter". This way you'd always open the srt file with the same file name of the media file.</p><p>By the way, if some one reads this with knowledge; Is there a way to 'invert' the text chopper? To optimize this, it would be great to 'chop off' the .avi or what ever there is. But the "text chopper" actor just leaves the last three chars instead. I feel, this is misleading if one thinks to chop off three chars from the end. But the mouse over help tells otherwise.<br /></p>]]></description><link>https://community.troikatronix.com/post/55282</link><guid isPermaLink="true">https://community.troikatronix.com/post/55282</guid><dc:creator><![CDATA[DillTheKraut]]></dc:creator><pubDate>Mon, 04 Nov 2024 21:51:54 GMT</pubDate></item><item><title><![CDATA[Reply to SRT File Selection on Mon, 04 Nov 2024 21:00:37 GMT]]></title><description><![CDATA[<p>Big thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a> that looks great.  </p><p>Very much appreciated 👍🙏</p>]]></description><link>https://community.troikatronix.com/post/55279</link><guid isPermaLink="true">https://community.troikatronix.com/post/55279</guid><dc:creator><![CDATA[simon100]]></dc:creator><pubDate>Mon, 04 Nov 2024 21:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to SRT File Selection on Mon, 04 Nov 2024 17:37:21 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/5328">@simon100</a></p><p>I would suggest the table actor. Something like this:</p><img src="/assets/uploads/files/1730741789140-screenshot-2024-11-04-123500.png" /><p><br />Other options exist, like using Data Array, but this seems possibly the most straight forward. </p>]]></description><link>https://community.troikatronix.com/post/55278</link><guid isPermaLink="true">https://community.troikatronix.com/post/55278</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Mon, 04 Nov 2024 17:37:21 GMT</pubDate></item><item><title><![CDATA[Reply to SRT File Selection on Mon, 04 Nov 2024 16:32:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/5328">@simon100</a> said:</p>
<blockquote>&lt;p&gt;Hi Everyone, &lt;/p&gt;&lt;p&gt;I have a setup using the SRT Player. Lots of videos selected at Random and played through a projector, is there a way to select the matching SRT file to play in sync on a separate projector/screen? &lt;/p&gt;&lt;p&gt;I've no doubt Im overlooking an obvious Actor to make this happen, enjoying having the subtitles be adaptable through the text draw so would like to keep it that way if possible.&lt;/p&gt;&lt;p&gt;Many thanks&lt;/p&gt;&lt;p&gt;Simon&lt;/p&gt;</blockquote>
<p> </p><p><a href="https://community.troikatronix.com/uid/1435" class="plugin-mentions-user plugin-mentions-a">@woland</a></p>
<p>thanks</p>]]></description><link>https://community.troikatronix.com/post/55277</link><guid isPermaLink="true">https://community.troikatronix.com/post/55277</guid><dc:creator><![CDATA[electrologos]]></dc:creator><pubDate>Mon, 04 Nov 2024 16:32:30 GMT</pubDate></item></channel></rss>