Class Library


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

    Class Documentation

    Blender Source Code

    For each library file used, a Library struct is added to Main WARNING: readfile.c, expand_doit() reads this struct without DNA check!

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__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__filedata

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

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__filedata);
         CPointer<CPointer<Object>> p_filedata = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'filedata'
        • Signature: 'FileData*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__name

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

        Field Documentation

        Blender Source Code

        Path name used for reading, can be relative and edited in the outliner.

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__name);
         CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'name'
        • Signature: 'char[1024]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__filepath

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

        Field Documentation

        Blender Python API

        Path to the library .blend file

        Blender Source Code

        Absolute filepath, this is only for convenience, 'name' is the real path used on file read but in some cases its useful to access the absolute one. This is set on file read. Use BKE_library_filepath_set() rather than setting 'name' directly and it will be kept in sync - campbell

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__filepath);
         CPointer<CArrayFacade<Byte>> p_filepath = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'filepath'
        • Signature: 'char[1024]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__parent

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

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Set for indirectly linked libs, used in the outliner and while reading.

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__parent);
         CPointer<CPointer<Library>> p_parent = p.cast(new Class[]{CPointer.class, Library.class});
         

        Metadata

        • Field: 'parent'
        • Signature: 'Library*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__packedfile

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

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__packedfile);
         CPointer<CPointer<PackedFile>> p_packedfile = p.cast(new Class[]{CPointer.class, PackedFile.class});
         

        Metadata

        • Field: 'packedfile'
        • Signature: 'PackedFile*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__temp_index

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

        Field Documentation

        Blender Source Code

        Temp data needed by read/write code.

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__temp_index);
         CPointer<Integer> p_temp_index = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'temp_index'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__versionfile

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

        Field Documentation

        Blender Source Code

        See BLENDER_FILE_VERSION, BLENDER_FILE_SUBVERSION, needed for do_versions.

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__versionfile);
         CPointer<Short> p_versionfile = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'versionfile'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__subversionfile

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

        Pointer Arithmetics

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

         Library library = ...;
         CPointer<Object> p = library.__dna__addressof(Library.__DNA__FIELD__subversionfile);
         CPointer<Short> p_subversionfile = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'subversionfile'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
    • Constructor Detail

      • Library

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

        protected Library​(Library 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
      • getFiledata

        public CPointer<java.lang.Object> getFiledata()
                                               throws java.io.IOException
        Get method for struct member 'filedata'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filedata
      • setFiledata

        public void setFiledata​(CPointer<java.lang.Object> filedata)
                         throws java.io.IOException
        Set method for struct member 'filedata'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filedata
      • getName

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

        Field Documentation

        Blender Source Code

        Path name used for reading, can be relative and edited in the outliner.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • setName

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

        Field Documentation

        Blender Source Code

        Path name used for reading, can be relative and edited in the outliner.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • getFilepath

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

        Field Documentation

        Blender Python API

        Path to the library .blend file

        Blender Source Code

        Absolute filepath, this is only for convenience, 'name' is the real path used on file read but in some cases its useful to access the absolute one. This is set on file read. Use BKE_library_filepath_set() rather than setting 'name' directly and it will be kept in sync - campbell

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath
      • setFilepath

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

        Field Documentation

        Blender Python API

        Path to the library .blend file

        Blender Source Code

        Absolute filepath, this is only for convenience, 'name' is the real path used on file read but in some cases its useful to access the absolute one. This is set on file read. Use BKE_library_filepath_set() rather than setting 'name' directly and it will be kept in sync - campbell

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath
      • getParent

        public CPointer<Library> getParent()
                                    throws java.io.IOException
        Get method for struct member 'parent'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Set for indirectly linked libs, used in the outliner and while reading.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • setParent

        public void setParent​(CPointer<Library> parent)
                       throws java.io.IOException
        Set method for struct member 'parent'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Set for indirectly linked libs, used in the outliner and while reading.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • setPackedfile

        public void setPackedfile​(CPointer<PackedFile> packedfile)
                           throws java.io.IOException
        Set method for struct member 'packedfile'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__packedfile
      • getTemp_index

        public int getTemp_index()
                          throws java.io.IOException
        Get method for struct member 'temp_index'.

        Field Documentation

        Blender Source Code

        Temp data needed by read/write code.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__temp_index
      • setTemp_index

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

        Field Documentation

        Blender Source Code

        Temp data needed by read/write code.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__temp_index
      • getVersionfile

        public short getVersionfile()
                             throws java.io.IOException
        Get method for struct member 'versionfile'.

        Field Documentation

        Blender Source Code

        See BLENDER_FILE_VERSION, BLENDER_FILE_SUBVERSION, needed for do_versions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__versionfile
      • setVersionfile

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

        Field Documentation

        Blender Source Code

        See BLENDER_FILE_VERSION, BLENDER_FILE_SUBVERSION, needed for do_versions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__versionfile
      • getSubversionfile

        public short getSubversionfile()
                                throws java.io.IOException
        Get method for struct member 'subversionfile'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subversionfile
      • setSubversionfile

        public void setSubversionfile​(short subversionfile)
                               throws java.io.IOException
        Set method for struct member 'subversionfile'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subversionfile
      • __io__addressof

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