Video

Summary

A video widget

Instance Properties

NameReturn TypeDescription

index

number Read-only

Gets the index of this Video

layer

Layer Read/Write

The layer the video is on

group

Group Read/Write

The group this video is part of

transform

Transform Read/Write

The Transform (position, rotation, scale) of the Video Widget

position

Vector3 Read/Write

The 3D position of the Video Widget

rotation

Rotation Read/Write

The 3D orientation of the Video Widget

scale

number Read/Write

The scale of the Video Widget

Class Methods

Video:Import(location)

Imports a video file from the user's MediaLibrary/Videos folder

Returns: Video

Parameters:

NameTypeDefaultDescription

location

string

The filename of the video file to import from the user's MediaLibrary/Videos folder

Example

myVideo = Video.Import("myVideo.mp4")

Instance Methods

video:Select()

Adds this Video Widget to the current selection

Returns: nil

Example

myVideo:Select()

video:Deselect()

Removes this Video Widget from the current selection

Returns: nil

Example

myVideo:Deselect()

video:Delete()

Deletes this Video Widget

Returns: nil

Example

myVideo:Delete()

Last updated