title: Nuke frame range with python script button
body: <p>thanks in advance for your help.</p>
  
  <p>I have a set read nodes that need to be populated depending on the sequence and shot number. Correspondingly their frame range needs to be adjusted to the proper one. I have all this working, however I want to Nuke to change it's frame range according to the frame range I introduced in the dialog box .I've been trying with the code below in a script button but and I get an error that name 'Shot_Selector' is not defined. I've tried several things and can't make this work. I'm new to python, any help will be extremely appretiated.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>nuke.Root()['first_frame'].setValue(int({Shot_Selector.FStart}))
  nuke.Root()['last_frame'].setValue(int({Shot_Selector.FEnd}))</code></pre>
  </div>
  </div>
  </p>