vMix Forums
»
General
»
General Discussion
»
For loop and decimal values
Rank: Newbie
Groups: Registered
Joined: 8/5/2020(UTC) Posts: 3 Location: Perugia
|
Hi everyone, I'm a newbie here, so thanks to everyone that will spend a little of their time for helping me! Coming to the issue I'm facing at the moment, I'm usign the following script:
dim x as double = 0
for i as integer = 0 to 200 API.Function("SetPanY",Input:=2,Value:=x) x=(x+1)*0.1 console.writeline(x.tostring) sleep(4) next
the only problem is that Vmix does not accept the value that the script generates (as the come in the format "," instead of ".", so jumps straight to integers.
If you have any idea of what am I doing wrong, let me know! :)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
That is due to the Windows language settings
Change those settings but will mess up all the other programs use math or replace them in the string before further using
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/5/2020(UTC) Posts: 3 Location: Perugia
|
Originally Posted by: doggy That is due to the Windows language settings
Change those settings but will mess up all the other programs use math or replace them in the string before further using Thank you very much, I will try this way then and let you know!
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/5/2020(UTC) Posts: 3 Location: Perugia
|
Originally Posted by: doggy That is due to the Windows language settings
Change those settings but will mess up all the other programs use math or replace them in the string before further using I made it! it's now working as i wanted. Thanks for the hint!
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
For loop and decimal values
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close