<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to make a calculation inside of set current time? in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9520829#M17404</link>
    <description>&lt;P&gt;It's amazing! This is a really good script! it's really useful for the project too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you sharing or have other scripts like that?&lt;BR /&gt;whatever, You make me motivated to learn more about the script!&lt;BR /&gt;thank you very much!&lt;BR /&gt;The question is resolved!&lt;/P&gt;</description>
    <pubDate>Sat, 16 May 2020 13:39:08 GMT</pubDate>
    <dc:creator>amaterasu-qbb</dc:creator>
    <dc:date>2020-05-16T13:39:08Z</dc:date>
    <item>
      <title>How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9515634#M17400</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Calculate +, -, /, * inside of set current time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="無題.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/770338i9DAE3AD5BD0309FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="無題.png" alt="無題.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example 24 frame*2=48&amp;gt;move to 48 frame on time slider.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know in script editor can do like in example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I don’t want to do that way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So Is there any good idea or tools?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 11:19:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9515634#M17400</guid>
      <dc:creator>amaterasu-qbb</dc:creator>
      <dc:date>2020-05-14T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9516521#M17401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6298760"&gt;@amaterasu-qbb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think setCurrentTime have math functionality like some other attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that is the way we can use math in attributes :&lt;/P&gt;&lt;P&gt;operation = number&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is a little script that might suit your need :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mathCurrentTime.gif" style="width: 800px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/770522i3CBBC87872309102/image-size/large?v=v2&amp;amp;px=999" role="button" title="mathCurrentTime.gif" alt="mathCurrentTime.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string $text;&lt;BR /&gt;string $result = `promptDialog&lt;BR /&gt;-title "math the current time"&lt;BR /&gt;-message "Enter math(only the operation and the number):"&lt;BR /&gt;-button "OK" -button "Cancel"&lt;BR /&gt;-defaultButton "OK" -cancelButton "Cancel"&lt;BR /&gt;-dismissString "Cancel"`;&lt;/P&gt;&lt;P&gt;if ($result == "OK") {&lt;BR /&gt;$text = `promptDialog -query -text`;&lt;BR /&gt;&lt;BR /&gt;string $forEval = "`currentTime -q`" + $text;&lt;BR /&gt;float $evaRes =`eval("$tempHolder=" + $forEval)`;&lt;BR /&gt;currentTime ($evaRes);&lt;BR /&gt;}else {print ("math operation canceled");}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 16:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9516521#M17401</guid>
      <dc:creator>Abdulla-Qaladzay</dc:creator>
      <dc:date>2020-05-14T16:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9519063#M17402</link>
      <description>&lt;P&gt;NICE!&lt;BR /&gt;But could you make the window keep opening when the script works? it'd be wonderful!&lt;BR /&gt;(I'm bad at the script, please forgive me.)&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 15:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9519063#M17402</guid>
      <dc:creator>amaterasu-qbb</dc:creator>
      <dc:date>2020-05-15T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9520137#M17403</link>
      <description>&lt;P&gt;🤍&lt;/P&gt;&lt;P&gt;sure, here is the script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc qwe(){&lt;BR /&gt;string $newMath = `textField -q -text mathField`;&lt;BR /&gt;string $forEval = "`currentTime -q`" + $newMath;&lt;BR /&gt;float $evaRes =`eval("$tempHolder=" + $forEval)`;&lt;BR /&gt;currentTime ($evaRes);}&lt;BR /&gt;global proc createCustomWorkspaceControlUI(){&lt;BR /&gt;rowColumnLayout;&lt;BR /&gt;text -l "only type the operation and the number";&lt;BR /&gt;textField mathField;&lt;BR /&gt;button -l "apply" -command "qwe()";}&lt;BR /&gt;workspaceControl -retain false -floating true -uiScript "createCustomWorkspaceControlUI();" mathCurrentTime;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mathCurrentTime.gif" style="width: 800px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/771313iB4B5E1DCCFCC23A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="mathCurrentTime.gif" alt="mathCurrentTime.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 22:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9520137#M17403</guid>
      <dc:creator>Abdulla-Qaladzay</dc:creator>
      <dc:date>2020-05-15T22:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9520829#M17404</link>
      <description>&lt;P&gt;It's amazing! This is a really good script! it's really useful for the project too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you sharing or have other scripts like that?&lt;BR /&gt;whatever, You make me motivated to learn more about the script!&lt;BR /&gt;thank you very much!&lt;BR /&gt;The question is resolved!&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 13:39:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9520829#M17404</guid>
      <dc:creator>amaterasu-qbb</dc:creator>
      <dc:date>2020-05-16T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a calculation inside of set current time?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9521375#M17405</link>
      <description>&lt;P&gt;you are very welcome &lt;SPAN&gt;I’m happy to help&amp;nbsp;&lt;/SPAN&gt;🤍&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;learning script saves a lot of our time, and it make us to think creative and look further .&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 23:22:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-make-a-calculation-inside-of-set-current-time/m-p/9521375#M17405</guid>
      <dc:creator>Abdulla-Qaladzay</dc:creator>
      <dc:date>2020-05-16T23:22:47Z</dc:date>
    </item>
  </channel>
</rss>

