"MOGRT" スライダー制御の値を変更しても値が変わらない。
"MOGRT" スライダー制御の値を変更しても値が変わらない。
下記の条件に全てあてはまると再現します。
・元の値は小数点が含まれていて、入力した値が整数である。
・元の値と入力する値は、四捨五入すると同じ値の整数になる。
(例)
元の値 (入力値) 返される値
1.4 (1) 1.4
1.5 (2) 1.5
1.6 (2) 1.6

Entering the decimal into the hot text after the number resolved this issue :)
11 comments
-
Thats awesome!! So happy we were able to figure it out together. Thanks for your patience with the translation barrier. :)
Have a great day!
Dacia -
英樹 向田 commented
Thank you.
Entering 0.0 , 1.0 , 2.0 It's working correctly.Hope to be improved.
-
Hi no worries! I feel like we are getting closer to a common understanding.
Please download the attached Mogrt https://adobe.ly/3brlH5X
A couple of things:
I added an expression called toFixed(1) which takes a value and limits the number of decimal points that will be displayed (instead of displaying the very long string).Next if you have changed the value to 1.5 and you want to change it to 1, you have to enter 1.0 into the hot text field in the EGP.
Enter 1.4 > it will change to 1.4
Enter 1.0 > it will change to 1
Enter 1.5 > it will change to 1.5
Enter 2.0 > it will change to 2.0If you don't need the decimal points and only want to switch between 1 and 2, then use the Math.round function to clamp the values to whole integers.
Hope this helps :)
-
Hi no worries! I feel like we are getting closer to a common understanding.
Please download the attached Mogrt https://adobe.ly/3brlH5X
A couple of things:
I added an expression called toFixed(1) which takes a value and limits the number of decimal points that will be displayed (instead of displaying the very long string).Next if you have changed the value to 1.5 and you want to change it to 1, you have to enter 1.0 into the hot text field in the EGP.
Enter 1.4 > it will change to 1.4
Enter 1.0 > it will change to 1
Enter 1.5 > it will change to 1.5
Enter 2.0 > it will change to 2.0If you don't need the decimal points and only want to switch between 1 and 2, then use the Math.round function to clamp the values to whole integers.
Hope this helps.
-
Hi no worries! I feel like we are getting closer to a common understanding.
Please download the attached Mogrt https://adobe.ly/3brlH5X
A couple of things:
I added an expression called toFixed(1) which takes a value and limits the number of decimal points that will be displayed (instead of displaying the very long string).Next if you have changed the value to 1.5 and you want to change it to 1, you have to enter 1.0 into the hot text field in the EGP.
Enter 1.4 > it will change to 1.4
Enter 1.0 > it will change to 1
Enter 1.5 > it will change to 1.5
Enter 2.0 > it will change to 2.0If you don't need the decimal points and only want to switch between 1 and 2, then use the Math.round function to clamp the values to whole integers.
Hope this helps.
-
Hi no worries! I feel like we are getting closer to a common understanding.
Please download the attached Mogrt https://adobe.ly/3brlH5X
A couple of things:
I added an expression called toFixed(1) which takes a value and limits the number of decimal points that will be displayed (instead of displaying the very long string).Next if you have changed the value to 1.5 and you want to change it to 1, you have to enter 1.0 into the hot text field in the EGP.
Enter 1.4 > it will change to 1.4
Enter 1.0 > it will change to 1
Enter 1.5 > it will change to 1.5
Enter 2.0 > it will change to 2.0If you don't need the decimal points and only want to switch between 1 and 2, then use the Math.round function to clamp the values to whole integers.
Hope this helps.
-
Hi no worries! I feel like we are getting closer to a common understanding.
Please download the attached Mogrt https://adobe.ly/3brlH5X
A couple of things:
I added an expression called toFixed(1) which takes a value and limits the number of decimal points that will be displayed (instead of displaying the very long string).Next if you have changed the value to 1.5 and you want to change it to 1, you have to enter 1.0 into the hot text field in the EGP.
Enter 1.4 > it will change to 1.4
Enter 1.0 > it will change to 1
Enter 1.5 > it will change to 1.5
Enter 2.0 > it will change to 2.0If you don't need the decimal points and only want to switch between 1 and 2, then use the Math.round function to clamp the values to whole integers.
Hope this helps.
-
英樹 向田 commented
Please excuse my lack of explanation.
Enter numbers in the same order as the instructional video.
Check the value on the preview screen.
Sometimes the value does not change.The order is as follows.
1.5 / enter / 2 / enter : Does not change to 2
1 / enter : no problem
1.4 / enter / 1 / enter : Does not change to 1
1.2 / enter / 1 / enter : Does not change to 1
1.6 / enter / 2 / enter : Does not change to 2
1.7 / enter / 2 / enter : Does not change to 2
1.8 / enter / 2 / enter : Does not change to 2
1.9 / enter / 2 / enter : Does not change to 2 -
英樹 向田 commented
ありがとうございます。
ビデオを添付したので確認してください。
https://adobe.ly/2v8bSt3時間設定(デュレーション)にスライダーを使用している為、小数点以下の値も必要でした。
しかし、Math.round(Slider * 100000) / 100000 で対応しようと思います。
-
Google翻訳を使用しているため、問題を完全に理解していない場合は、事前におApび申し上げます。
Mogrtを使用しましたが、スライダーを動かすとプログラムモニターに表示される値が変化します。
小数点以下はすべて表示されますが、これは望ましくない場合があります。ただし、Math.round関数を使用すると、整数のみを表示するように制限できます。
私が問題を誤解してしまった場合、あなたがやろうとしていることの例を挙げてもらえますか?
-
英樹 向田 commented
Add a link for the MOGRT file.
https://adobe.ly/385vQDt(example)
1.5 (original value) → 2(input) → 1.5 (display) NG
1.5 (original value) →1 (input) → 1 (display) OK1.4 (original value) → 2(input) → 2 (display) OK
1.4 → 1 (input) → 1.4 (display) NG