Skip to content

Latest commit

 

History

History
101 lines (41 loc) · 2.21 KB

File metadata and controls

101 lines (41 loc) · 2.21 KB

Video

Summary

A video widget

Instance Properties

NameReturn TypeDescription
indexnumber
Read-only
Gets the index of this Video
layerLayer
Read/Write
The layer the video is on
groupGroup
Read/Write
The group this video is part of
transformTransform
Read/Write
The Transform (position, rotation, scale) of the Video Widget
positionVector3
Read/Write
The 3D position of the Video Widget
rotationRotation
Read/Write
The 3D orientation of the Video Widget
scalenumber
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
locationstringThe 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()