logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
GerryGee  
#1 Posted : Wednesday, August 5, 2020 7:24:35 PM(UTC)
GerryGee

Rank: Newbie

Groups: Registered
Joined: 8/5/2020(UTC)
Posts: 3
Italy
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! :)

doggy  
#2 Posted : Wednesday, August 5, 2020 8:24:43 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
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
GerryGee  
#3 Posted : Wednesday, August 5, 2020 8:42:51 PM(UTC)
GerryGee

Rank: Newbie

Groups: Registered
Joined: 8/5/2020(UTC)
Posts: 3
Italy
Location: Perugia

Originally Posted by: doggy Go to Quoted Post
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!
GerryGee  
#4 Posted : Thursday, August 6, 2020 5:46:07 PM(UTC)
GerryGee

Rank: Newbie

Groups: Registered
Joined: 8/5/2020(UTC)
Posts: 3
Italy
Location: Perugia

Originally Posted by: doggy Go to Quoted Post
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!
Users browsing this topic
Guest
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.