Class Material


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__id);
         CPointer<ID> p_id = p.cast(new Class[]{ID.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'ID'
        • Actual Size (32bit/64bit): 128/160
      • __DNA__FIELD__adt

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

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__adt);
         CPointer<CPointer<AnimData>> p_adt = p.cast(new Class[]{CPointer.class, AnimData.class});
         

        Metadata

        • Field: 'adt'
        • Signature: 'AnimData*'
        • Actual Size (32bit/64bit): 4/8
      • __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:

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__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___pad1

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__r

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

        Field Documentation

        Blender Source Code

        Colors from Blender Internal that we are still using.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__r);
         CPointer<Float> p_r = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'r'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__g

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__g);
         CPointer<Float> p_g = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'g'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__b

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__b);
         CPointer<Float> p_b = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'b'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__a

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__a);
         CPointer<Float> p_a = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'a'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__specr

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__specr);
         CPointer<Float> p_specr = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'specr'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__specg

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__specg);
         CPointer<Float> p_specg = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'specg'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__specb

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__specb);
         CPointer<Float> p_specb = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'specb'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__alpha

        public static final long[] __DNA__FIELD__alpha
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__alpha);
         CPointer<Float> p_alpha = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'alpha'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
        Field descriptor (offset) for struct member 'alpha'.

        Field Documentation

        Blender Source Code

      • __DNA__FIELD__ray_mirror

        public static final long[] __DNA__FIELD__ray_mirror
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__ray_mirror);
         CPointer<Float> p_ray_mirror = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'ray_mirror'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
        Field descriptor (offset) for struct member 'ray_mirror'.

        Field Documentation

        Blender Source Code

      • __DNA__FIELD__spec

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__spec);
         CPointer<Float> p_spec = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'spec'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__gloss_mir

        public static final long[] __DNA__FIELD__gloss_mir
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__gloss_mir);
         CPointer<Float> p_gloss_mir = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'gloss_mir'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
        Field descriptor (offset) for struct member 'gloss_mir'.

        Field Documentation

        Blender Source Code

        Renamed and inversed to roughness.

      • __DNA__FIELD__roughness

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

        Field Documentation

        Blender Python API

        Roughness of the material

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__roughness);
         CPointer<Float> p_roughness = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'roughness'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__metallic

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

        Field Documentation

        Blender Python API

        Amount of mirror reflection for raytrace

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__metallic);
         CPointer<Float> p_metallic = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'metallic'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__use_nodes

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

        Field Documentation

        Blender Python API

        Use shader nodes to render the material

        Blender Source Code

        Nodes

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__use_nodes);
         CPointer<Byte> p_use_nodes = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'use_nodes'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__pr_type

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

        Field Documentation

        Blender Source Code

        Preview render.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__pr_type);
         CPointer<Byte> p_pr_type = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'pr_type'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__pr_texture

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__pr_texture);
         CPointer<Short> p_pr_texture = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'pr_texture'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__pr_flag

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__pr_flag);
         CPointer<Short> p_pr_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'pr_flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__index

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

        Field Documentation

        Blender Source Code

        Index for render passes.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__index);
         CPointer<Short> p_index = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'index'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__nodetree

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__nodetree);
         CPointer<CPointer<bNodeTree>> p_nodetree = p.cast(new Class[]{CPointer.class, bNodeTree.class});
         

        Metadata

        • Field: 'nodetree'
        • Signature: 'bNodeTree*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__ipo

        public static final long[] __DNA__FIELD__ipo
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__ipo);
         CPointer<CPointer<Ipo>> p_ipo = p.cast(new Class[]{CPointer.class, Ipo.class});
         

        Metadata

        • Field: 'ipo'
        • Signature: 'Ipo*'
        • Actual Size (32bit/64bit): 4/8
        Field descriptor (offset) for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        Old animation system, deprecated for 2.5.

      • __DNA__FIELD__preview

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__preview);
         CPointer<CPointer<PreviewImage>> p_preview = p.cast(new Class[]{CPointer.class, PreviewImage.class});
         

        Metadata

        • Field: 'preview'
        • Signature: 'PreviewImage*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__line_col

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

        Field Documentation

        Blender Source Code

        Freestyle line settings.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__line_col);
         CPointer<CArrayFacade<Float>> p_line_col = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'line_col'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__line_priority

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

        Field Documentation

        Blender Python API

        The line color of a higher priority is used at material boundaries

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__line_priority);
         CPointer<Short> p_line_priority = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'line_priority'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__vcol_alpha

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__vcol_alpha);
         CPointer<Short> p_vcol_alpha = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'vcol_alpha'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__paint_active_slot

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

        Field Documentation

        Blender Python API

        Index of active texture paint slot

        Blender Source Code

        Texture painting slots.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__paint_active_slot);
         CPointer<Short> p_paint_active_slot = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'paint_active_slot'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__paint_clone_slot

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

        Field Documentation

        Blender Python API

        Index of clone texture paint slot

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__paint_clone_slot);
         CPointer<Short> p_paint_clone_slot = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'paint_clone_slot'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__tot_slots

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__tot_slots);
         CPointer<Short> p_tot_slots = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'tot_slots'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad2

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD___pad2);
         CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad2'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__alpha_threshold

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

        Field Documentation

        Blender Python API

        A pixel is rendered only if its alpha value is above this threshold

        Blender Source Code

        Transparency.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__alpha_threshold);
         CPointer<Float> p_alpha_threshold = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'alpha_threshold'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__refract_depth

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__refract_depth);
         CPointer<Float> p_refract_depth = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'refract_depth'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__blend_method

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

        Field Documentation

        Blender Python API

        Blend Mode for Transparent Faces

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__blend_method);
         CPointer<Byte> p_blend_method = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'blend_method'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__blend_shadow

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__blend_shadow);
         CPointer<Byte> p_blend_shadow = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'blend_shadow'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__blend_flag

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__blend_flag);
         CPointer<Byte> p_blend_flag = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'blend_flag'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD___pad3

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

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD___pad3);
         CPointer<CArrayFacade<Byte>> p__pad3 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad3'
        • Signature: 'char[1]'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__texpaintslot

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

        Field Documentation

        Blender Source Code

        Cached slots for texture painting, must be refreshed in refresh_texpaint_image_cache before using.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__texpaintslot);
         CPointer<CPointer<TexPaintSlot>> p_texpaintslot = p.cast(new Class[]{CPointer.class, TexPaintSlot.class});
         

        Metadata

        • Field: 'texpaintslot'
        • Signature: 'TexPaintSlot*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__gpumaterial

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

        Field Documentation

        Blender Source Code

        Runtime cache for GLSL materials.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__gpumaterial);
         CPointer<ListBase> p_gpumaterial = p.cast(new Class[]{ListBase.class});
         

        Metadata

        • Field: 'gpumaterial'
        • Signature: 'ListBase'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__gp_style

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

        Field Documentation

        Blender Source Code

        Grease pencil color.

        Pointer Arithmetics

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

         Material material = ...;
         CPointer<Object> p = material.__dna__addressof(Material.__DNA__FIELD__gp_style);
         CPointer<CPointer<MaterialGPencilStyle>> p_gp_style = p.cast(new Class[]{CPointer.class, MaterialGPencilStyle.class});
         

        Metadata

        • Field: 'gp_style'
        • Signature: 'MaterialGPencilStyle*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • Material

        public Material​(long __address,
                        Block __block,
                        BlockTable __blockTable)
      • Material

        protected Material​(Material that)
    • Method Detail

      • getId

        public ID getId()
                 throws java.io.IOException
        Get method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(ID id)
                   throws java.io.IOException
        Set method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getAdt

        public CPointer<AnimData> getAdt()
                                  throws java.io.IOException
        Get method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • setAdt

        public void setAdt​(CPointer<AnimData> adt)
                    throws java.io.IOException
        Set method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • 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_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • getR

        public float getR()
                   throws java.io.IOException
        Get method for struct member 'r'.

        Field Documentation

        Blender Source Code

        Colors from Blender Internal that we are still using.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__r
      • setR

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

        Field Documentation

        Blender Source Code

        Colors from Blender Internal that we are still using.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__r
      • getG

        public float getG()
                   throws java.io.IOException
        Get method for struct member 'g'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__g
      • setG

        public void setG​(float g)
                  throws java.io.IOException
        Set method for struct member 'g'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__g
      • getB

        public float getB()
                   throws java.io.IOException
        Get method for struct member 'b'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__b
      • setB

        public void setB​(float b)
                  throws java.io.IOException
        Set method for struct member 'b'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__b
      • getA

        public float getA()
                   throws java.io.IOException
        Get method for struct member 'a'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__a
      • setA

        public void setA​(float a)
                  throws java.io.IOException
        Set method for struct member 'a'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__a
      • getSpecr

        public float getSpecr()
                       throws java.io.IOException
        Get method for struct member 'specr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specr
      • setSpecr

        public void setSpecr​(float specr)
                      throws java.io.IOException
        Set method for struct member 'specr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specr
      • getSpecg

        public float getSpecg()
                       throws java.io.IOException
        Get method for struct member 'specg'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specg
      • setSpecg

        public void setSpecg​(float specg)
                      throws java.io.IOException
        Set method for struct member 'specg'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specg
      • getSpecb

        public float getSpecb()
                       throws java.io.IOException
        Get method for struct member 'specb'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specb
      • setSpecb

        public void setSpecb​(float specb)
                      throws java.io.IOException
        Set method for struct member 'specb'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__specb
      • getAlpha

        public float getAlpha()
                       throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'alpha'.

        Field Documentation

        Blender Source Code

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha
      • setAlpha

        public void setAlpha​(float alpha)
                      throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'alpha'.

        Field Documentation

        Blender Source Code

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha
      • getRay_mirror

        public float getRay_mirror()
                            throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'ray_mirror'.

        Field Documentation

        Blender Source Code

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ray_mirror
      • setRay_mirror

        public void setRay_mirror​(float ray_mirror)
                           throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'ray_mirror'.

        Field Documentation

        Blender Source Code

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ray_mirror
      • getSpec

        public float getSpec()
                      throws java.io.IOException
        Get method for struct member 'spec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spec
      • setSpec

        public void setSpec​(float spec)
                     throws java.io.IOException
        Set method for struct member 'spec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spec
      • getGloss_mir

        public float getGloss_mir()
                           throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'gloss_mir'.

        Field Documentation

        Blender Source Code

        Renamed and inversed to roughness.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gloss_mir
      • setGloss_mir

        public void setGloss_mir​(float gloss_mir)
                          throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'gloss_mir'.

        Field Documentation

        Blender Source Code

        Renamed and inversed to roughness.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gloss_mir
      • getRoughness

        public float getRoughness()
                           throws java.io.IOException
        Get method for struct member 'roughness'.

        Field Documentation

        Blender Python API

        Roughness of the material
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__roughness
      • setRoughness

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

        Field Documentation

        Blender Python API

        Roughness of the material
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__roughness
      • getMetallic

        public float getMetallic()
                          throws java.io.IOException
        Get method for struct member 'metallic'.

        Field Documentation

        Blender Python API

        Amount of mirror reflection for raytrace
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__metallic
      • setMetallic

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

        Field Documentation

        Blender Python API

        Amount of mirror reflection for raytrace
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__metallic
      • getUse_nodes

        public byte getUse_nodes()
                          throws java.io.IOException
        Get method for struct member 'use_nodes'.

        Field Documentation

        Blender Python API

        Use shader nodes to render the material

        Blender Source Code

        Nodes

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__use_nodes
      • setUse_nodes

        public void setUse_nodes​(byte use_nodes)
                          throws java.io.IOException
        Set method for struct member 'use_nodes'.

        Field Documentation

        Blender Python API

        Use shader nodes to render the material

        Blender Source Code

        Nodes

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__use_nodes
      • getPr_type

        public byte getPr_type()
                        throws java.io.IOException
        Get method for struct member 'pr_type'.

        Field Documentation

        Blender Source Code

        Preview render.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_type
      • setPr_type

        public void setPr_type​(byte pr_type)
                        throws java.io.IOException
        Set method for struct member 'pr_type'.

        Field Documentation

        Blender Source Code

        Preview render.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_type
      • getPr_texture

        public short getPr_texture()
                            throws java.io.IOException
        Get method for struct member 'pr_texture'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_texture
      • setPr_texture

        public void setPr_texture​(short pr_texture)
                           throws java.io.IOException
        Set method for struct member 'pr_texture'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_texture
      • getPr_flag

        public short getPr_flag()
                         throws java.io.IOException
        Get method for struct member 'pr_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_flag
      • setPr_flag

        public void setPr_flag​(short pr_flag)
                        throws java.io.IOException
        Set method for struct member 'pr_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pr_flag
      • getIndex

        public short getIndex()
                       throws java.io.IOException
        Get method for struct member 'index'.

        Field Documentation

        Blender Source Code

        Index for render passes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__index
      • setIndex

        public void setIndex​(short index)
                      throws java.io.IOException
        Set method for struct member 'index'.

        Field Documentation

        Blender Source Code

        Index for render passes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__index
      • setNodetree

        public void setNodetree​(CPointer<bNodeTree> nodetree)
                         throws java.io.IOException
        Set method for struct member 'nodetree'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__nodetree
      • getIpo

        public CPointer<Ipo> getIpo()
                             throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        Old animation system, deprecated for 2.5.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • setIpo

        public void setIpo​(CPointer<Ipo> ipo)
                    throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        Old animation system, deprecated for 2.5.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • getLine_col

        public CArrayFacade<java.lang.Float> getLine_col()
                                                  throws java.io.IOException
        Get method for struct member 'line_col'.

        Field Documentation

        Blender Source Code

        Freestyle line settings.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line_col
      • setLine_col

        public void setLine_col​(CArrayFacade<java.lang.Float> line_col)
                         throws java.io.IOException
        Set method for struct member 'line_col'.

        Field Documentation

        Blender Source Code

        Freestyle line settings.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line_col
      • getLine_priority

        public short getLine_priority()
                               throws java.io.IOException
        Get method for struct member 'line_priority'.

        Field Documentation

        Blender Python API

        The line color of a higher priority is used at material boundaries
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line_priority
      • setLine_priority

        public void setLine_priority​(short line_priority)
                              throws java.io.IOException
        Set method for struct member 'line_priority'.

        Field Documentation

        Blender Python API

        The line color of a higher priority is used at material boundaries
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line_priority
      • getVcol_alpha

        public short getVcol_alpha()
                            throws java.io.IOException
        Get method for struct member 'vcol_alpha'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vcol_alpha
      • setVcol_alpha

        public void setVcol_alpha​(short vcol_alpha)
                           throws java.io.IOException
        Set method for struct member 'vcol_alpha'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vcol_alpha
      • getPaint_active_slot

        public short getPaint_active_slot()
                                   throws java.io.IOException
        Get method for struct member 'paint_active_slot'.

        Field Documentation

        Blender Python API

        Index of active texture paint slot

        Blender Source Code

        Texture painting slots.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_active_slot
      • setPaint_active_slot

        public void setPaint_active_slot​(short paint_active_slot)
                                  throws java.io.IOException
        Set method for struct member 'paint_active_slot'.

        Field Documentation

        Blender Python API

        Index of active texture paint slot

        Blender Source Code

        Texture painting slots.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_active_slot
      • getPaint_clone_slot

        public short getPaint_clone_slot()
                                  throws java.io.IOException
        Get method for struct member 'paint_clone_slot'.

        Field Documentation

        Blender Python API

        Index of clone texture paint slot
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_clone_slot
      • setPaint_clone_slot

        public void setPaint_clone_slot​(short paint_clone_slot)
                                 throws java.io.IOException
        Set method for struct member 'paint_clone_slot'.

        Field Documentation

        Blender Python API

        Index of clone texture paint slot
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_clone_slot
      • getTot_slots

        public short getTot_slots()
                           throws java.io.IOException
        Get method for struct member 'tot_slots'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot_slots
      • setTot_slots

        public void setTot_slots​(short tot_slots)
                          throws java.io.IOException
        Set method for struct member 'tot_slots'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot_slots
      • get_pad2

        public CArrayFacade<java.lang.Byte> get_pad2()
                                              throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

        public void set_pad2​(CArrayFacade<java.lang.Byte> _pad2)
                      throws java.io.IOException
        Set method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • getAlpha_threshold

        public float getAlpha_threshold()
                                 throws java.io.IOException
        Get method for struct member 'alpha_threshold'.

        Field Documentation

        Blender Python API

        A pixel is rendered only if its alpha value is above this threshold

        Blender Source Code

        Transparency.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha_threshold
      • setAlpha_threshold

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

        Field Documentation

        Blender Python API

        A pixel is rendered only if its alpha value is above this threshold

        Blender Source Code

        Transparency.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha_threshold
      • getRefract_depth

        public float getRefract_depth()
                               throws java.io.IOException
        Get method for struct member 'refract_depth'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__refract_depth
      • setRefract_depth

        public void setRefract_depth​(float refract_depth)
                              throws java.io.IOException
        Set method for struct member 'refract_depth'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__refract_depth
      • getBlend_method

        public byte getBlend_method()
                             throws java.io.IOException
        Get method for struct member 'blend_method'.

        Field Documentation

        Blender Python API

        Blend Mode for Transparent Faces
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_method
      • setBlend_method

        public void setBlend_method​(byte blend_method)
                             throws java.io.IOException
        Set method for struct member 'blend_method'.

        Field Documentation

        Blender Python API

        Blend Mode for Transparent Faces
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_method
      • getBlend_shadow

        public byte getBlend_shadow()
                             throws java.io.IOException
        Get method for struct member 'blend_shadow'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_shadow
      • setBlend_shadow

        public void setBlend_shadow​(byte blend_shadow)
                             throws java.io.IOException
        Set method for struct member 'blend_shadow'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_shadow
      • getBlend_flag

        public byte getBlend_flag()
                           throws java.io.IOException
        Get method for struct member 'blend_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_flag
      • setBlend_flag

        public void setBlend_flag​(byte blend_flag)
                           throws java.io.IOException
        Set method for struct member 'blend_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_flag
      • get_pad3

        public CArrayFacade<java.lang.Byte> get_pad3()
                                              throws java.io.IOException
        Get method for struct member '_pad3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad3
      • set_pad3

        public void set_pad3​(CArrayFacade<java.lang.Byte> _pad3)
                      throws java.io.IOException
        Set method for struct member '_pad3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad3
      • getTexpaintslot

        public CPointer<TexPaintSlot> getTexpaintslot()
                                               throws java.io.IOException
        Get method for struct member 'texpaintslot'.

        Field Documentation

        Blender Source Code

        Cached slots for texture painting, must be refreshed in refresh_texpaint_image_cache before using.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__texpaintslot
      • setTexpaintslot

        public void setTexpaintslot​(CPointer<TexPaintSlot> texpaintslot)
                             throws java.io.IOException
        Set method for struct member 'texpaintslot'.

        Field Documentation

        Blender Source Code

        Cached slots for texture painting, must be refreshed in refresh_texpaint_image_cache before using.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__texpaintslot
      • getGpumaterial

        public ListBase getGpumaterial()
                                throws java.io.IOException
        Get method for struct member 'gpumaterial'.

        Field Documentation

        Blender Source Code

        Runtime cache for GLSL materials.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gpumaterial
      • setGpumaterial

        public void setGpumaterial​(ListBase gpumaterial)
                            throws java.io.IOException
        Set method for struct member 'gpumaterial'.

        Field Documentation

        Blender Source Code

        Runtime cache for GLSL materials.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gpumaterial
      • getGp_style

        public CPointer<MaterialGPencilStyle> getGp_style()
                                                   throws java.io.IOException
        Get method for struct member 'gp_style'.

        Field Documentation

        Blender Source Code

        Grease pencil color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gp_style
      • setGp_style

        public void setGp_style​(CPointer<MaterialGPencilStyle> gp_style)
                         throws java.io.IOException
        Set method for struct member 'gp_style'.

        Field Documentation

        Blender Source Code

        Grease pencil color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gp_style
      • __io__addressof

        public CPointer<Material> __io__addressof()
        Instantiates a pointer on this instance.