<div dir="ltr">Hello!<div><br></div><div>"First time, long time", as they say... JW Lua is amazing - The amount of time I've saved... <br><div><br></div><div>Anyway, sorry if this has been covered, but I can't seem to find anything in the docs or the archives. <br><div><br></div><div>I'm working on a script that would take an expression (or multiple expressions) I've selected and change its assignment so that it only appears in parts, not in the score. However, because I want it to apply to specific expressions within a given region, I can't use a measure selection, which would change the assignment of everything in that region. </div><div><br></div><div>Is there a way to access expressions by which handles are selected rather than by using finenv.Region()? </div><div><br></div><div>I feel like I could be missing something obvious, but I could use a hand. My code for where I'm starting (the finenv.Region version, which works) is below. </div><div><br></div><div>Thanks so much!</div><div><br></div><div>JW</div><div>---</div><div><div>local region = finenv.Region()</div><div>local expressions = finale.FCExpressions()</div><div><br></div><div>expressions:LoadAllForRegion(region)</div><div><br></div><div>for expression in each(expressions) do</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>expression.ScoreAssignment = false</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>expression.PartAssignment = true</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>expression:Save()</div><div>end<span class="sewud3c7vd4brdc"></span><span class="sewb7ncmnujyr0i"></span></div></div><div><div>---</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jesse Wiener<div>Composer:<a href="http://www.jessewiener.com" target="_blank"> www.jessewiener.com</a></div><div>Copyist: <a href="http://www.JAWLinemusic.com" target="_blank">www.JAWLinemusic.com</a><br></div></div></div></div></div></div></div></div>