DAZ Script | |
---|---|
Rotation | { NO_ROTATION, ROTATE_LEFT_90, ROTATE_RIGHT_90, ROTATE_180 } |
DAZ Script |
---|
DzBackdrop () |
DAZ Script | |
---|---|
void | adjustRenderAspectRatioToMatchTexture () |
void | adjustRenderDimensionsToMatchTexture () |
void | clear () |
DzColorProperty | getBackgroundColorControl () |
DzBoolProperty | getHorizontalFlipControl () |
DzMaterial | getMaterial () |
DzEnumProperty | getRotationControl () |
DzTexture | getTexture () |
DzBoolProperty | getVerticalFlipControl () |
DzBoolProperty | getVisibleControl () |
DzBoolProperty | getVisibleInRenderControl () |
void | setTexture ( DzTexture img ) |
void | showOptions ( QWidget parent=undefined ) |
void | backgroundColorChanged () |
void | drawnDataChanged () |
void | visiblityChanged () |
This class encapsulates a 2D image and the parameters for drawing the image as a backdrop for the scene. An instance of this class only contributes to the scene if it is set as the current backdrop for the scene.
See Also:
Enumerated image rotation types
Holds the background color of the backdrop.
Since:
Holds whether or not the backdrop is flipped horizontally.
Holds whether or not the backdrop is flipped vertically.
Holds the rotation applied to the backdrop.
Holds whether or not the backdrop is visible in the viewport.
Since:
Holds whether or not the backdrop is visible in a render.
Since:
void : adjustRenderAspectRatioToMatchTexture()
Changes the render aspect ratio to match the backdrop image, and the image dimensions.
Since:
void : adjustRenderDimensionsToMatchTexture()
Changes the render image dimensions and aspect ratio to match the backdrop image.
Since:
void : clear()
Clears the current back drop image, and resets all parameters.
Example:
// Get the backdrop for the scene var oBackdrop = Scene.getBackdrop(); // Clear the backdrop oBackdrop.clear();
DzColorProperty : getBackgroundColorControl()
Return Value:
Since:
DzBoolProperty : getHorizontalFlipControl()
Return Value:
Return Value:
Example:
// Get the backdrop for the scene var oBackdrop = Scene.getBackdrop(); // Get the material for the backdrop var oMaterial = oBackdrop.getMaterial(); // Set the color of the backdrop to red oMaterial.setDiffuseColor( new Color( 255, 0, 0 ) );
DzEnumProperty : getRotationControl()
Return Value:
DzTexture : getTexture()
Return Value:
Example:
// Get the backdrop for the scene var oBackdrop = Scene.getBackdrop(); // Get the texture for the backdrop var oTexture = oBackdrop.getTexture(); // Log the file name of the current backdrop image if ( oTexture ){ print( String( "Current Backdrop: %1" ).arg( oTexture.getFilename() ) ); } else { print( "No Current Backdrop Image" ); }
See Also:
DzBoolProperty : getVerticalFlipControl()
Return Value:
DzBoolProperty : getVisibleControl()
Return Value:
Since:
DzBoolProperty : getVisibleInRenderControl()
Return Value:
Since:
void : setTexture( DzTexture img )
Sets the backdrop image.
Parameter(s):
Example:
// Get the backdrop for the scene var oBackdrop = Scene.getBackdrop(); // Get the image manager var oImageMgr = App.getImageMgr(); // Get an image var sImage = String( "%1/../Pictures/Sample Pictures/Desert.jpg" ).arg( App.getCommonUserDocumentPath() ); var oImage = oImageMgr.getImage( sImage ); // Set the backdrop image oBackdrop.setTexture( oImage ); // Make the backdrop visible oBackdrop.visible = true;
See Also:
void : showOptions( QWidget parent=undefined )
Deprecated
Shows the options dialog for this backdrop.
Example:
// Get the backdrop for the scene var oBackdrop = Scene.getBackdrop(); // Display options for the backdrop to the user oBackdrop.showOptions( MainWindow );
void : backgroundColorChanged()
Signature:“backgroundColorChanged()”
Emitted when the background color of this backdrop changes.
Since:
void : drawnDataChanged()
Signature:“drawnDataChanged()”
Emitted when the information in this backdrop changes.
void : visiblityChanged()
Signature:“visiblityChanged()”
Emitted when the visibility of this backdrop changes.
Since: