<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Subfixtures &#8211; Stefan&#039;s Place</title>
	<atom:link href="https://stkrumm.de/tag/subfixtures/feed/" rel="self" type="application/rss+xml" />
	<link>https://stkrumm.de</link>
	<description>Tutorials and more</description>
	<lastBuildDate>Wed, 08 Nov 2023 15:42:56 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Select Subfixtures</title>
		<link>https://stkrumm.de/select-subfixtures/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 08 Nov 2023 13:43:44 +0000</pubDate>
				<category><![CDATA[GrandMA3]]></category>
		<category><![CDATA[LUA scripts MA3]]></category>
		<category><![CDATA[Fixture selection]]></category>
		<category><![CDATA[GrandMA3 onPC]]></category>
		<category><![CDATA[LUA script]]></category>
		<category><![CDATA[Subfixtures]]></category>
		<guid isPermaLink="false">https://stkrumm.de/?p=415</guid>

					<description><![CDATA[This grandMA3 LUA script allows easy selection of combinations of subfixtures. The example above uses 5 parent fixtures, starting at FID 401. Selection starts with the first warm-white beam (subfixture #2: 401.2). The fixture in total has 24 subfixtures. Stepsize &#8222;2&#8220; means the gap between selected subfixtures is &#8222;1&#8220;, every second subfixture is selected.For some [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This grandMA3 LUA script allows easy selection of combinations of subfixtures.</p>



<p> <img decoding="async" loading="lazy" width="1100" height="904" class="wp-image-414" style="width: 600px;" src="https://stkrumm.de/wp-content/uploads/2023/11/SelectSubfixtures-Plugin.png" alt="" srcset="https://stkrumm.de/wp-content/uploads/2023/11/SelectSubfixtures-Plugin.png 1100w, https://stkrumm.de/wp-content/uploads/2023/11/SelectSubfixtures-Plugin-300x247.png 300w, https://stkrumm.de/wp-content/uploads/2023/11/SelectSubfixtures-Plugin-1024x842.png 1024w, https://stkrumm.de/wp-content/uploads/2023/11/SelectSubfixtures-Plugin-768x631.png 768w" sizes="(max-width: 1100px) 100vw, 1100px" /></p>



<p>The example above uses 5 parent fixtures, starting at FID 401. Selection starts with the first warm-white beam (subfixture #2: 401.2). The fixture in total has 24 subfixtures. Stepsize &#8222;2&#8220; means the gap between selected subfixtures is &#8222;1&#8220;, every second subfixture is selected.<br>For some applications the parent fixture has to be selected either. Just select the checkbox.</p>



<p><strong><a href="https://stkrumm.de/wp-content/tutorialMA3/SelectSubfixtures.lua">Download LUA script</a></strong></p>



<pre class="wp-block-code"><code>
-- Messagebox code from Hoss at
-- https://forum.malighting.com/forum/thread/5913-lua-messagebox-and-var/

-- Stefan Krumm, 20231103
-- tutorials@stkrumm.de
-- https://stkrumm.de/grandma3-tutorial/




function BOX()
    local options = {
        title="Select subfixtures",         --string
        backColor="Global.Focus",           --string: Color based on current theme.
        messageTextColor=nil,               --int|string
        message="Please enter values",      --string
        display= nil,                       --int? | handle?
        
        inputs={
            {name="1:   Parent FID                 ", value="401", blackFilter="", whiteFilter="0123456789", vkPlugin="TextInputNumOnly", maxTextLength = 6},
            {name="2:   No. of fixtures       ", value="5", blackFilter="", whiteFilter="0123456789", vkPlugin="TextInputNumOnly", maxTextLength = 6},            
            {name="3:   First child                ", value="2", blackFilter="", whiteFilter="0123456789", vkPlugin="TextInputNumOnly", maxTextLength = 6},
            {name="4:   No. of subfixtures", value="24", blackFilter="", whiteFilter="0123456789", vkPlugin="TextInputNumOnly", maxTextLength = 6},
            {name="5:   Step size                ", value="2", blackFilter="", whiteFilter="0123456789", vkPlugin="TextInputNumOnly", maxTextLength = 6},
        },
        states={{state=false, name="Select also parent fixture "}},
        commands={{value=1, name="O K"}}
    }
    
    local messageBoxResult = MessageBox(options);   
    
    local startfix = tonumber(messageBoxResult&#91;"inputs"]&#91;"1:   Parent FID                 "])
    local endfix = tonumber(messageBoxResult&#91;"inputs"]&#91;"2:   No. of fixtures       "]) + startfix -1
    local startchild = tonumber(messageBoxResult&#91;"inputs"]&#91;"3:   First child                "])
    local numchild = tonumber(messageBoxResult&#91;"inputs"]&#91;"4:   No. of subfixtures"])
    local stepchild = tonumber(messageBoxResult&#91;"inputs"]&#91;"5:   Step size                "])
    
   
      
    for i = startfix, endfix, 1
	do
	   if messageBoxResult&#91;"states"]&#91;"Select also parent fixture "] then
	       Cmd("Selfix Fixture " .. i  ) 
	   end
	    
	    for k = startchild, numchild, stepchild 
	    do
	        Cmd("Selfix Fixture " .. i .. "." .. k  )
	    end
   end
  
    
end

return BOX</code></pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
