major

Syntax

PluginVersion.major;

Access

readonly

Parameters

Return value number

The major version number of the installed Studio plug-ins.

Description

The major property returns the major version number component of the installed WoodWing Studio plug-ins version. In a version string such as “v21.0.1 DAILY build 34”, the major version number is 21.

Examples

Check if the installed plug-in meets a minimum major version requirement

// Get the major version number of the installed Studio plug-in.
var major = app.studioPlugins.version.major;

// Verify the plug-in meets the minimum required version.
if (major < 21) {
  alert(
    "This script requires Studio plug-in version 21 or higher. Installed version: " +
      major,
  );
}

Supported versions

Adobe Version Supported
2023  
2024  
2025 (v20.0.4)
2026 (v21.0.1)

See also