logo

Live Production Software Forums


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

Notification

Icon
Error

4 Pages«<234
Options
Go to last post Go to first unread
DWAM  
#61 Posted : Tuesday, November 24, 2020 2:47:25 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,688
Man
France
Location: Bordeaux, France

Thanks: 237 times
Was thanked: 754 time(s) in 575 post(s)
Using SetPanX and SetPanY for PiP from a joystick

thanks 1 user thanked DWAM for this useful post.
Chris Daum on 11/25/2020(UTC)
Chris Daum  
#62 Posted : Tuesday, November 24, 2020 3:06:32 AM(UTC)
Chris Daum

Rank: Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 16
Man
Germany

Thanks: 4 times
Hi DWAM,

no, was fooling around with Panasonic, Ross and Analog Way Mixers :-)
Corona lead me to cope with those online and streaming tools...
which is fine but a new world to discover

thanks so far!

API.function("setpanX",Input:=2, Value:="+0.05")
just defined the final position of my image on X axis
but not to repeated steps by 0.05

doggy  
#63 Posted : Tuesday, November 24, 2020 3:22:20 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
Originally Posted by: Chris Daum Go to Quoted Post
Hi DWAM,

no, was fooling around with Panasonic, Ross and Analog Way Mixers :-)
Corona lead me to cope with those online and streaming tools...
which is fine but a new world to discover

thanks so far!

API.function("setpanX",Input:=2, Value:="+0.05")
just defined the final position of my image on X axis
but not to repeated steps by 0.05



Value:="+=0.05"
thanks 1 user thanked doggy for this useful post.
Chris Daum on 11/25/2020(UTC)
DWAM  
#64 Posted : Tuesday, November 24, 2020 4:23:53 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,688
Man
France
Location: Bordeaux, France

Thanks: 237 times
Was thanked: 754 time(s) in 575 post(s)
Quote:
API.function("setpanX",Input:=2, Value:="+0.05")
just defined the final position of my image on X axis but not to repeated steps by 0.05

Just as Doggy said, it's all about the syntax !
Added my demo video for PoC and clues (about repetitive process)
thanks 1 user thanked DWAM for this useful post.
Chris Daum on 11/25/2020(UTC)
Chris Daum  
#65 Posted : Wednesday, November 25, 2020 11:36:36 PM(UTC)
Chris Daum

Rank: Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 16
Man
Germany

Thanks: 4 times
Thanks DWAM & doggy,

that helped again!

No I proceeded to the next step and combined my x-axis control with a
midi knob (KORG control Studio).

That works quite fine but the steps in the movement are a bit to coarse for
my taste.

a 0,005 step is cool.

Now my next thougt...
The midi knob sends "speed" information 0-127.
Is there a way to connect certain "speed" values with a position change?
e.g.
"speed" 68-127 step +0.005
"speed" 67-0 step -0.005

like:
"get value" MIDICC 1:13 (that´s the knob used)
for value =68-127, API.function("SetPanx", input:=xy, value:="+=0.005")
for value =67-0; API.function("SetPanx", input:=xy, value:="-=0.005")
DWAM  
#66 Posted : Wednesday, November 25, 2020 11:52:13 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,688
Man
France
Location: Bordeaux, France

Thanks: 237 times
Was thanked: 754 time(s) in 575 post(s)
I don't think Midi Control Change can handle value ranges like 0-63 or 64-128 (to be confirmed) when using the "shortcuts" interface in vMix.

However setting this knob to activate a "script" designed to allow speed control (with a "for" loop) would be my first idea to work on. This would even allow to set dynamic (linear or logarithmic) speeds according to the knob value...
Chris Daum  
#67 Posted : Thursday, November 26, 2020 12:05:35 AM(UTC)
Chris Daum

Rank: Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 16
Man
Germany

Thanks: 4 times
UserPostedImage
doggy  
#68 Posted : Thursday, November 26, 2020 12:15:48 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
Originally Posted by: Chris Daum Go to Quoted Post
UserPostedImage


Script will not be able to read the MIDI codes

BTW preferably your question would have been better put in a separate post . Post was started as a way to show basic scripting examples to learn from not discuss various problems and wishes which obscure the useful posts.
Many people would look to the separate post to as many don't use scripts hence are not looking here to give advice on the scripting subject

snapoid  
#69 Posted : Saturday, December 12, 2020 12:45:28 AM(UTC)
snapoid

Rank: Member

Groups: Registered
Joined: 9/13/2016(UTC)
Posts: 14
Location: Russia

Was thanked: 1 time(s) in 1 post(s)
In some cases i use many video-inputs with "NO Restart after transition" - only start (and some pause) - on training this videos may stay on another time, but before starting main session i needed to manually restart this video to start position. Can i get in script list of video-inputs and set it to start position ? This script i can assist to key-button and press it before translation-workprocess
DWAM  
#70 Posted : Saturday, December 12, 2020 12:53:48 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,688
Man
France
Location: Bordeaux, France

Thanks: 237 times
Was thanked: 754 time(s) in 575 post(s)
Wouldn't it be much simpler to simply use the Restart after transition option ?
Or simply add a trigger to force restart on transition ?
snapoid  
#71 Posted : Saturday, December 12, 2020 1:34:29 AM(UTC)
snapoid

Rank: Member

Groups: Registered
Joined: 9/13/2016(UTC)
Posts: 14
Location: Russia

Was thanked: 1 time(s) in 1 post(s)
No, i use 1 input-video in many another - multiview, virtual set and other. And i need to switch between this. If i set checkbox "restart after transition" - my video restarted every time on switch
doggy  
#72 Posted : Saturday, December 12, 2020 3:30:10 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
Originally Posted by: snapoid Go to Quoted Post
Can i get in script list of video-inputs and set it to start position ?


one can go through the API XML and pick out all the video inputs , one can even pick them out using the xml data source with the proper xpath
Or just have shortcut duplicated under the same key each doing the restart for each individual video
doggy  
#73 Posted : Monday, December 28, 2020 6:11:46 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,647
Belgium
Location: Belgium

Thanks: 151 times
Was thanked: 484 time(s) in 394 post(s)
You want to transition to another input when a Photo Input (slideshow) has finished displaying all your images.
This can be done with a OnCompletion trigger
But this trigger does not work when the photos input is part of a multiview
Script to the rescue !


Code:
'Copy all this into a new script, name the script and save
'replace 13 with the input number of our Photos
'replace 14 with the input number you want to switch to
'trigger in your multiview to run the script (ontransitionin - scriptstart - name of script)


dim PhotoCompleted as string = ""
sleep(1000) 'a bit of delay to make sure the transition has finished, can be set in the trigger also 

do while true
  dim xml as string = API.XML()
  dim x as new system.xml.xmldocument
  x.loadxml(xml)

  PhotoCompleted = (x.SelectSingleNode("//input[13]/@state").InnerText)
  
  if PhotoCompleted = "Completed"
     API.Function("Fade",Input:="14",Duration:="500" ) , or any other function one wants to perform after all photos have been displayed
     exit do
  end if

  sleep(100)
loop


Edit: added the duration option to the transition
thanks 5 users thanked doggy for this useful post.
DWAM on 12/28/2020(UTC), stigaard on 12/28/2020(UTC), mburel1980 on 12/28/2020(UTC), dmwkr on 12/29/2020(UTC), clafarge on 1/5/2021(UTC)
Users browsing this topic
4 Pages«<234
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.