OMC::ProjectResolution Class Reference

Detailed Description

The current resolution of the scene.

Public Attributes

int x
 Get/Set the X value of the current preview resolution.
 
int y
 Get/Set the Y value of the current preview resolution.
 
QString default_name
 The default resolution name, if one is being used. More...
 
double default_FOV
 Get the default FOV value.
 
QMap< QString, OMC::ProjectNamedResolution * > names
 Get/Set the Y value of the default resolution. More...
 

Member Data Documentation

◆ default_name

QString OMC::ProjectResolution::default_name
readwrite

The default resolution name, if one is being used.

The default_name is used to get the preset name of the project's resolution, or set it to a named resolution.

Setting the Project to a Named Resolution

from ToonBoom import harmony #Import the Harmony Module
sess = harmony.session() #Get access to the Harmony session, this class.
proj = sess.project #Get the current project.
resolution = proj.resolution #The resolution object.
resolution.default_name = "HDTV" #Set the resolution to the HDTV preset.

◆ names

OMC::ProjectResolution::names

Get/Set the Y value of the default resolution.

Named resolutions are preset resolutions available within the application. This is useful for applying standard resolutions to the scene.

from ToonBoom import harmony #Import the Harmony Module
sess = harmony.session() #Get access to the Harmony session, this class.
proj = sess.project #Get the current project.
resolution = proj.resolution #The resolution object.
named_resolutions = resolution.names
for named_resolution in named_resolutions:
this_resolution = named_resolutions[named_resolution]
print( "Resolution Name: %s"%(named_resolution) )
print( " Resolution: %s %s (%s) %s "%(this_resolution.x, this_resolution.y, this_resolution.fov, this_resolution.projection) )
Inheritance diagram for OMC::ProjectResolution:
Collaboration diagram for OMC::ProjectResolution: