Class DriverTarget


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

    Class Documentation

    Blender Source Code

    Drivers ----------------------------------- Driver Target (dtar)

    Defines how to access a dependency needed for a driver variable.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        ID-block that the specific property used can be found from (id_type property must be set first)

        Blender Source Code

        ID-block which owns the target, no user count.

        Pointer Arithmetics

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

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

        Metadata

        • Field: 'id'
        • Signature: 'ID*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__rna_path

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

        Field Documentation

        Blender Source Code

        RNA path defining the setting to use (for DVAR_TYPE_SINGLE_PROP).

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__DNA__FIELD__rna_path);
         CPointer<CPointer<Byte>> p_rna_path = p.cast(new Class[]{CPointer.class, Byte.class});
         

        Metadata

        • Field: 'rna_path'
        • Signature: 'char*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__pchan_name

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

        Field Documentation

        Blender Source Code

        Name of the posebone to use (for vars where DTAR_FLAG_STRUCT_REF is used) - MAX_ID_NAME-2.

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__DNA__FIELD__pchan_name);
         CPointer<CArrayFacade<Byte>> p_pchan_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'pchan_name'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__transChan

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

        Field Documentation

        Blender Source Code

        Transform channel index (for DVAR_TYPE_TRANSFORM_CHAN.)

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__DNA__FIELD__transChan);
         CPointer<Short> p_transChan = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'transChan'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__rotation_mode

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

        Field Documentation

        Blender Python API

        Mode for calculating rotation channel values

        Blender Source Code

        Rotation channel calculation type.

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__DNA__FIELD__rotation_mode);
         CPointer<Byte> p_rotation_mode = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'rotation_mode'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __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:

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

        Metadata

        • Field: '_pad'
        • Signature: 'char[7]'
        • Actual Size (32bit/64bit): 7/7
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        Flags for the validity of the target (NOTE: these get reset every time the types change).

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__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__idtype

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

        Field Documentation

        Blender Source Code

        Type of ID-block that this target can use.

        Pointer Arithmetics

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

         DriverTarget drivertarget = ...;
         CPointer<Object> p = drivertarget.__dna__addressof(DriverTarget.__DNA__FIELD__idtype);
         CPointer<Integer> p_idtype = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'idtype'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • DriverTarget

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

        protected DriverTarget​(DriverTarget that)
    • Method Detail

      • getId

        public CPointer<ID> getId()
                           throws java.io.IOException
        Get method for struct member 'id'.

        Field Documentation

        Blender Python API

        ID-block that the specific property used can be found from (id_type property must be set first)

        Blender Source Code

        ID-block which owns the target, no user count.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(CPointer<ID> id)
                   throws java.io.IOException
        Set method for struct member 'id'.

        Field Documentation

        Blender Python API

        ID-block that the specific property used can be found from (id_type property must be set first)

        Blender Source Code

        ID-block which owns the target, no user count.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getRna_path

        public CPointer<java.lang.Byte> getRna_path()
                                             throws java.io.IOException
        Get method for struct member 'rna_path'.

        Field Documentation

        Blender Source Code

        RNA path defining the setting to use (for DVAR_TYPE_SINGLE_PROP).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rna_path
      • setRna_path

        public void setRna_path​(CPointer<java.lang.Byte> rna_path)
                         throws java.io.IOException
        Set method for struct member 'rna_path'.

        Field Documentation

        Blender Source Code

        RNA path defining the setting to use (for DVAR_TYPE_SINGLE_PROP).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rna_path
      • getPchan_name

        public CArrayFacade<java.lang.Byte> getPchan_name()
                                                   throws java.io.IOException
        Get method for struct member 'pchan_name'.

        Field Documentation

        Blender Source Code

        Name of the posebone to use (for vars where DTAR_FLAG_STRUCT_REF is used) - MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pchan_name
      • setPchan_name

        public void setPchan_name​(CArrayFacade<java.lang.Byte> pchan_name)
                           throws java.io.IOException
        Set method for struct member 'pchan_name'.

        Field Documentation

        Blender Source Code

        Name of the posebone to use (for vars where DTAR_FLAG_STRUCT_REF is used) - MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pchan_name
      • getTransChan

        public short getTransChan()
                           throws java.io.IOException
        Get method for struct member 'transChan'.

        Field Documentation

        Blender Source Code

        Transform channel index (for DVAR_TYPE_TRANSFORM_CHAN.)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__transChan
      • setTransChan

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

        Field Documentation

        Blender Source Code

        Transform channel index (for DVAR_TYPE_TRANSFORM_CHAN.)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__transChan
      • getRotation_mode

        public byte getRotation_mode()
                              throws java.io.IOException
        Get method for struct member 'rotation_mode'.

        Field Documentation

        Blender Python API

        Mode for calculating rotation channel values

        Blender Source Code

        Rotation channel calculation type.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rotation_mode
      • setRotation_mode

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

        Field Documentation

        Blender Python API

        Mode for calculating rotation channel values

        Blender Source Code

        Rotation channel calculation type.

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

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        Flags for the validity of the target (NOTE: these get reset every time the types change).

        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'.

        Field Documentation

        Blender Source Code

        Flags for the validity of the target (NOTE: these get reset every time the types change).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getIdtype

        public int getIdtype()
                      throws java.io.IOException
        Get method for struct member 'idtype'.

        Field Documentation

        Blender Source Code

        Type of ID-block that this target can use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__idtype
      • setIdtype

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

        Field Documentation

        Blender Source Code

        Type of ID-block that this target can use.

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

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