3ds Max C++ API Reference
MotionBlurSettings Struct Reference

Encapsulates the camera shutter settings used with motion blur. More...

#include <MotionBlurSettings.h>

Public Member Functions

 MotionBlurSettings ()
 Initializes the both shutter_duration and shutter_offset to 0. More...
 
 MotionBlurSettings (const TimeValue duration, const TimeValue offset)
 Initializes the shutter duration and offset with the given values. More...
 
bool IsMotionBlurEnabled () const
 Returns whether motion blur is enabled, e.e. whether shutter_duration is not 0. More...
 
bool operator== (const MotionBlurSettings &other) const
 
bool operator!= (const MotionBlurSettings &other) const
 

Public Attributes

TimeValue shutter_duration
 The shutter duration, 0 if and only if motion blur is disabled. More...
 
TimeValue shutter_offset
 The offset, to be applied to the time value for the current frame, to calculate the shutter open time. More...
 

Detailed Description

Encapsulates the camera shutter settings used with motion blur.

See also
ICameraContainer::GetGlobalMotionBlurSettings()
IRenderSessionContext::GetMotionBlurSettingsForNode()

Constructor & Destructor Documentation

◆ MotionBlurSettings() [1/2]

MotionBlurSettings ( )
inline

Initializes the both shutter_duration and shutter_offset to 0.

22  : shutter_offset(0),
24 {
25 
26 }
TimeValue shutter_offset
The offset, to be applied to the time value for the current frame, to calculate the shutter open time...
Definition: MotionBlurSettings.h:34
TimeValue shutter_duration
The shutter duration, 0 if and only if motion blur is disabled.
Definition: MotionBlurSettings.h:30

◆ MotionBlurSettings() [2/2]

MotionBlurSettings ( const TimeValue  duration,
const TimeValue  offset 
)
inline

Initializes the shutter duration and offset with the given values.

29  : shutter_offset(offset),
30  shutter_duration(duration)
31 {
32 
33 }

Member Function Documentation

◆ IsMotionBlurEnabled()

bool IsMotionBlurEnabled ( ) const
inline

Returns whether motion blur is enabled, e.e. whether shutter_duration is not 0.

36 {
37  return (shutter_duration != 0);
38 }

◆ operator==()

bool operator== ( const MotionBlurSettings other) const
inline
41 {
42  return (shutter_duration == other.shutter_duration)
43  && (shutter_offset == other.shutter_offset);
44 }

◆ operator!=()

bool operator!= ( const MotionBlurSettings other) const
inline
47 {
48  return !(*this == other);
49 }

Member Data Documentation

◆ shutter_duration

TimeValue shutter_duration

The shutter duration, 0 if and only if motion blur is disabled.

◆ shutter_offset

TimeValue shutter_offset

The offset, to be applied to the time value for the current frame, to calculate the shutter open time.

Remarks
shutter_open_time = current_frame_time + shutter_offset
shutter_close_time = currrent_frame_time + shutter_offset + shutter_duration