Class Script


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

    Class Documentation

    Blender Source Code

    Script Runtime Data - Obsolete (pre 2.5).

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

        • Field: 'id'
        • Signature: 'ID'
        • Actual Size (32bit/64bit): 152/192
      • __DNA__FIELD__py_draw

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__py_draw);
         CPointer<CPointer<Object>> p_py_draw = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'py_draw'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__py_event

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__py_event);
         CPointer<CPointer<Object>> p_py_event = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'py_event'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__py_button

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__py_button);
         CPointer<CPointer<Object>> p_py_button = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'py_button'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__py_browsercallback

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__py_browsercallback);
         CPointer<CPointer<Object>> p_py_browsercallback = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'py_browsercallback'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__py_globaldict

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__py_globaldict);
         CPointer<CPointer<Object>> p_py_globaldict = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'py_globaldict'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__flags

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__flags);
         CPointer<Integer> p_flags = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flags'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__lastspace

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

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__lastspace);
         CPointer<Integer> p_lastspace = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'lastspace'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__scriptname

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

        Field Documentation

        Blender Source Code

        Store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on 1024 = FILE_MAX.

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__scriptname);
         CPointer<CArrayFacade<Byte>> p_scriptname = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Pointer Arithmetics

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

         Script script = ...;
         CPointer<Object> p = script.__dna__addressof(Script.__DNA__FIELD__scriptarg);
         CPointer<CArrayFacade<Byte>> p_scriptarg = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • Script

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

        protected Script​(Script 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
      • getPy_draw

        public CPointer<java.lang.Object> getPy_draw()
                                              throws java.io.IOException
        Get method for struct member 'py_draw'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_draw
      • setPy_draw

        public void setPy_draw​(CPointer<java.lang.Object> py_draw)
                        throws java.io.IOException
        Set method for struct member 'py_draw'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_draw
      • getPy_event

        public CPointer<java.lang.Object> getPy_event()
                                               throws java.io.IOException
        Get method for struct member 'py_event'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_event
      • setPy_event

        public void setPy_event​(CPointer<java.lang.Object> py_event)
                         throws java.io.IOException
        Set method for struct member 'py_event'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_event
      • getPy_button

        public CPointer<java.lang.Object> getPy_button()
                                                throws java.io.IOException
        Get method for struct member 'py_button'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_button
      • setPy_button

        public void setPy_button​(CPointer<java.lang.Object> py_button)
                          throws java.io.IOException
        Set method for struct member 'py_button'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_button
      • getPy_browsercallback

        public CPointer<java.lang.Object> getPy_browsercallback()
                                                         throws java.io.IOException
        Get method for struct member 'py_browsercallback'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_browsercallback
      • setPy_browsercallback

        public void setPy_browsercallback​(CPointer<java.lang.Object> py_browsercallback)
                                   throws java.io.IOException
        Set method for struct member 'py_browsercallback'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_browsercallback
      • getPy_globaldict

        public CPointer<java.lang.Object> getPy_globaldict()
                                                    throws java.io.IOException
        Get method for struct member 'py_globaldict'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_globaldict
      • setPy_globaldict

        public void setPy_globaldict​(CPointer<java.lang.Object> py_globaldict)
                              throws java.io.IOException
        Set method for struct member 'py_globaldict'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__py_globaldict
      • getFlags

        public int getFlags()
                     throws java.io.IOException
        Get method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • setFlags

        public void setFlags​(int flags)
                      throws java.io.IOException
        Set method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • getLastspace

        public int getLastspace()
                         throws java.io.IOException
        Get method for struct member 'lastspace'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lastspace
      • setLastspace

        public void setLastspace​(int lastspace)
                          throws java.io.IOException
        Set method for struct member 'lastspace'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lastspace
      • getScriptname

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

        Field Documentation

        Blender Source Code

        Store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on 1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__scriptname
      • setScriptname

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

        Field Documentation

        Blender Source Code

        Store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on 1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__scriptname
      • getScriptarg

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__scriptarg
      • setScriptarg

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

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

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