Interface BlockCodes


  • public interface BlockCodes
    Block codes associate a block with a certain group of data such as Library, Object, Scene etc. but most of the blocks nowadays have a generic code called 'DATA'. The most important codes are 'ENDB' and 'DNA1' which are both unique in a Blender file.
    Author:
    homac
    • Field Detail

      • ID_CU

        static final Identifier ID_CU
        Deprecated.
        ID_CV should be used in the future (see T95355).
        Curve
      • ID_IP

        static final Identifier ID_IP
        Ipo (depreciated, replaced by FCurves)
      • ID_KE

        static final Identifier ID_KE
        Key (shape key)
      • ID_PA

        static final Identifier ID_PA
        ParticleSettings
      • ID_GD

        static final Identifier ID_GD
        GreasePencil
      • ID_WM

        static final Identifier ID_WM
        WindowManager
      • ID_LS

        static final Identifier ID_LS
        FreestyleLineStyle
      • ID_PC

        static final Identifier ID_PC
        Paint Curve
      • ID_HA

        static final Identifier ID_HA
        Deprecated.
        Removed since Blender v3.2
        Hair
      • ID_CV

        static final Identifier ID_CV
        Curves
        Since:
        Blender v3.2
      • ID_SIM

        static final Identifier ID_SIM
        Simulation
        Since:
        Blender v2.90
      • ID_ID

        static final Identifier ID_ID
        Only used as 'placeholder' in .blend files for directly linked data-blocks.
      • ID_SCRN

        static final Identifier ID_SCRN
        depreciated, but still heavily in use
      • ID_SEQ

        static final Identifier ID_SEQ
        NOTE! Fake IDs, needed for g.sipo->blocktype or outliner
      • ID_CO

        static final Identifier ID_CO
        constraint.
        NOTE! Fake IDs, needed for g.sipo->blocktype or outliner.
      • ID_PO

        static final Identifier ID_PO
        pose (action channel, used to be ID_AC in code, so we keep code for backwards compat)
        NOTE! Fake IDs, needed for g.sipo->blocktype or outliner.
      • ID_NLA

        static final Identifier ID_NLA
        used in outliner...
        NOTE! Fake IDs, needed for g.sipo->blocktype or outliner.
      • ID_FLUIDSIM

        static final Identifier ID_FLUIDSIM
        fluidsim Ipo
        NOTE! Fake IDs, needed for g.sipo->blocktype or outliner.
      • ID_ENDB

        static final Identifier ID_ENDB
        block code of the last block.
      • ID_DNA1

        static final Identifier ID_DNA1
        block code of the block containing the StructDNA struct.
      • ID_REND

        static final Identifier ID_REND
        Block code of a block containing struct Link.
      • ID_TEST

        static final Identifier ID_TEST
        Block code of a block containing struct Link.
      • ID_GLOB

        static final Identifier ID_GLOB
        Block code of a block containing struct FileGlobal.
      • ID_DATA

        static final Identifier ID_DATA
        Block code of a block containing data related to other blocks.
    • Method Detail

      • MAKE_ID2

        static Identifier MAKE_ID2​(char c,
                                   char d)