Skip to content

Change Video

Change Video

Adjusts the playback properties of a currently playing video over a duration.

Properties

System

Name Explanation Type
Color Mask The color mask to apply to the video. Color
Color Mask Enabled Whether color mask adjustment is enabled. Toggle
Duration (milliseconds) The duration to adjust the video over in milliseconds. Variable or Value
Fullscreen Whether to play the video at fullscreen. Switch or Value
Fullscreen Enabled Whether fullscreen adjustment is enabled. Toggle
Height The height to apply to the video. Variable or Value
Height Enabled Whether height adjustment is enabled. Toggle
Hue Shift The hue shift to apply to the video. Variable or Value
Hue Shift Enabled Whether hue shift adjustment is enabled. Toggle
ID The ID of the video to use. Variable or Value
Looping Whether to play the video in a loop. Switch or Value
Looping Enabled Whether looping adjustment is enabled. Toggle
Opacity The opacity to apply to the video. Variable or Value
Opacity Enabled Whether opacity adjustment is enabled. Toggle
Rotation (Degrees) The rotation to apply to the video, in degrees. Variable or Value
Rotation Enabled Whether rotation adjustment is enabled. Toggle
Use As Delta Values Whether to adjust the video by this amount, rather than to the set value. Toggle
Use Relative Positioning Whether the video is using relative coordinates. Toggle
Volume The volume to apply to the video. Variable or Value
Volume Enabled Whether volume adjustment is enabled. Toggle
Width The width to apply to the video. Variable or Value
Width Enabled Whether width adjustment is enabled. Toggle
X The X position to apply to the video. Variable or Value
X Enabled Whether X position adjustment is enabled. Toggle
Y The Y position to apply to the video. Variable or Value
Y Enabled Whether Y position adjustment is enabled. Toggle
Z-Index The Z-index to apply to the video. Variable or Value
Z-Index Enabled Whether Z-index adjustment is enabled. Toggle

Examples

Fade a Video to Half Opacity Over One Second

Adjusts the opacity of a video to 0.5 over 1000 milliseconds using delta mode.

change_video($gv[0], duration: 1000, opacity: 0.5);
{"Data":{"ID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"AdjustmentDuration":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1000","VariableIndex":0,"Metadata":null},"ColorMask":"#FFFFFFFF","Height":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"HueShift":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsColorMaskEnabled":false,"IsDeltaOperation":true,"IsFullscreenEnabled":false,"IsHeightEnabled":false,"IsHueShiftEnabled":false,"IsLoopingEnabled":false,"IsOpacityEnabled":true,"IsRelativeCoordinates":false,"IsRotationEnabled":false,"IsVolumeEnabled":false,"IsWidthEnabled":false,"IsXEnabled":false,"IsYEnabled":false,"IsZIndexEnabled":false,"IsFullscreen":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":true,"SwitchIndex":0},"IsLooping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0},"Opacity":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0.5","VariableIndex":0,"Metadata":null},"Rotation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Volume":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Width":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"ZIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.Video.ChangeVideoCommand"}

Move a Video to a Set Position Over Half a Second

Moves a video to absolute coordinates using set mode with relative positioning enabled.

change_video($gv[0], duration: 500, set, relative_coordinates, x: $gv[1], y: $gv[2]);
{"Data":{"ID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"AdjustmentDuration":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"500","VariableIndex":0,"Metadata":null},"ColorMask":"#FFFFFFFF","Height":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"HueShift":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsColorMaskEnabled":false,"IsDeltaOperation":false,"IsFullscreenEnabled":false,"IsHeightEnabled":false,"IsHueShiftEnabled":false,"IsLoopingEnabled":false,"IsOpacityEnabled":false,"IsRelativeCoordinates":true,"IsRotationEnabled":false,"IsVolumeEnabled":false,"IsWidthEnabled":false,"IsXEnabled":true,"IsYEnabled":true,"IsZIndexEnabled":false,"IsFullscreen":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":true,"SwitchIndex":0},"IsLooping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0},"Opacity":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Rotation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Volume":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Width":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Y":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":2,"Metadata":null},"ZIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.Video.ChangeVideoCommand"}

Set Video Opacity Instantly

Sets a video's opacity to a value from a variable immediately without any transition duration.

change_video($gv[0], set, opacity: $gv[1]);
{"Data":{"ID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"AdjustmentDuration":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"ColorMask":"#FFFFFFFF","Height":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"HueShift":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsColorMaskEnabled":false,"IsDeltaOperation":false,"IsFullscreenEnabled":false,"IsHeightEnabled":false,"IsHueShiftEnabled":false,"IsLoopingEnabled":false,"IsOpacityEnabled":true,"IsRelativeCoordinates":false,"IsRotationEnabled":false,"IsVolumeEnabled":false,"IsWidthEnabled":false,"IsXEnabled":false,"IsYEnabled":false,"IsZIndexEnabled":false,"IsFullscreen":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":true,"SwitchIndex":0},"IsLooping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0},"Opacity":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Rotation":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Volume":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Width":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"ZIndex":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.Video.ChangeVideoCommand"}