Class CameraDOFSettings


  • public class CameraDOFSettings
    extends CFacade
    Generated facet for DNA struct type 'CameraDOFSettings'.

    Class Documentation

    Blender Source Code

    Properties for dof effect.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct CameraDOFSettings.

        It is required when allocating a new block to store data for CameraDOFSettings.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__focus_object

        public static final long[] __DNA__FIELD__focus_object
        Field descriptor (offset) for struct member 'focus_object'.

        Field Documentation

        Blender Python API

        Use this object to define the depth of field focal point

        Blender Source Code

        Focal distance for depth of field.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__focus_object);
         CPointer<CPointer<BlenderObject>> p_focus_object = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

        • Field: 'focus_object'
        • Signature: 'Object*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__focus_distance

        public static final long[] __DNA__FIELD__focus_distance
        Field descriptor (offset) for struct member 'focus_distance'.

        Field Documentation

        Blender Python API

        Distance to the focus point for depth of field

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__focus_distance);
         CPointer<Float> p_focus_distance = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'focus_distance'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__aperture_fstop

        public static final long[] __DNA__FIELD__aperture_fstop
        Field descriptor (offset) for struct member 'aperture_fstop'.

        Field Documentation

        Blender Python API

        F-Stop ratio (lower numbers give more defocus, higher numbers give a sharper image)

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__aperture_fstop);
         CPointer<Float> p_aperture_fstop = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'aperture_fstop'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__aperture_rotation

        public static final long[] __DNA__FIELD__aperture_rotation
        Field descriptor (offset) for struct member 'aperture_rotation'.

        Field Documentation

        Blender Python API

        Rotation of blades in aperture

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__aperture_rotation);
         CPointer<Float> p_aperture_rotation = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'aperture_rotation'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__aperture_ratio

        public static final long[] __DNA__FIELD__aperture_ratio
        Field descriptor (offset) for struct member 'aperture_ratio'.

        Field Documentation

        Blender Python API

        Distortion to simulate anamorphic lens bokeh

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__aperture_ratio);
         CPointer<Float> p_aperture_ratio = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'aperture_ratio'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__aperture_blades

        public static final long[] __DNA__FIELD__aperture_blades
        Field descriptor (offset) for struct member 'aperture_blades'.

        Field Documentation

        Blender Python API

        Number of blades in aperture for polygonal bokeh (at least 3)

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__aperture_blades);
         CPointer<Integer> p_aperture_blades = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'aperture_blades'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CameraDOFSettings cameradofsettings = ...;
         CPointer<Object> p = cameradofsettings.__dna__addressof(CameraDOFSettings.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
    • Constructor Detail

      • CameraDOFSettings

        public CameraDOFSettings​(long __address,
                                 Block __block,
                                 BlockTable __blockTable)
    • Method Detail

      • getFocus_object

        public CPointer<BlenderObject> getFocus_object()
                                                throws java.io.IOException
        Get method for struct member 'focus_object'.

        Field Documentation

        Blender Python API

        Use this object to define the depth of field focal point

        Blender Source Code

        Focal distance for depth of field.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__focus_object
      • setFocus_object

        public void setFocus_object​(CPointer<BlenderObject> focus_object)
                             throws java.io.IOException
        Set method for struct member 'focus_object'.

        Field Documentation

        Blender Python API

        Use this object to define the depth of field focal point

        Blender Source Code

        Focal distance for depth of field.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__focus_object
      • getFocus_distance

        public float getFocus_distance()
                                throws java.io.IOException
        Get method for struct member 'focus_distance'.

        Field Documentation

        Blender Python API

        Distance to the focus point for depth of field
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__focus_distance
      • setFocus_distance

        public void setFocus_distance​(float focus_distance)
                               throws java.io.IOException
        Set method for struct member 'focus_distance'.

        Field Documentation

        Blender Python API

        Distance to the focus point for depth of field
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__focus_distance
      • getAperture_fstop

        public float getAperture_fstop()
                                throws java.io.IOException
        Get method for struct member 'aperture_fstop'.

        Field Documentation

        Blender Python API

        F-Stop ratio (lower numbers give more defocus, higher numbers give a sharper image)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_fstop
      • setAperture_fstop

        public void setAperture_fstop​(float aperture_fstop)
                               throws java.io.IOException
        Set method for struct member 'aperture_fstop'.

        Field Documentation

        Blender Python API

        F-Stop ratio (lower numbers give more defocus, higher numbers give a sharper image)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_fstop
      • getAperture_rotation

        public float getAperture_rotation()
                                   throws java.io.IOException
        Get method for struct member 'aperture_rotation'.

        Field Documentation

        Blender Python API

        Rotation of blades in aperture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_rotation
      • setAperture_rotation

        public void setAperture_rotation​(float aperture_rotation)
                                  throws java.io.IOException
        Set method for struct member 'aperture_rotation'.

        Field Documentation

        Blender Python API

        Rotation of blades in aperture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_rotation
      • getAperture_ratio

        public float getAperture_ratio()
                                throws java.io.IOException
        Get method for struct member 'aperture_ratio'.

        Field Documentation

        Blender Python API

        Distortion to simulate anamorphic lens bokeh
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_ratio
      • setAperture_ratio

        public void setAperture_ratio​(float aperture_ratio)
                               throws java.io.IOException
        Set method for struct member 'aperture_ratio'.

        Field Documentation

        Blender Python API

        Distortion to simulate anamorphic lens bokeh
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_ratio
      • getAperture_blades

        public int getAperture_blades()
                               throws java.io.IOException
        Get method for struct member 'aperture_blades'.

        Field Documentation

        Blender Python API

        Number of blades in aperture for polygonal bokeh (at least 3)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_blades
      • setAperture_blades

        public void setAperture_blades​(int aperture_blades)
                                throws java.io.IOException
        Set method for struct member 'aperture_blades'.

        Field Documentation

        Blender Python API

        Number of blades in aperture for polygonal bokeh (at least 3)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__aperture_blades
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad