Class bPythonConstraint


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

    Class Documentation

    Blender Source Code

    Python Script Constraint

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Text-buffer (containing script) to execute.

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__text);
         CPointer<CPointer<Text>> p_text = p.cast(new Class[]{CPointer.class, Text.class});
         

        Metadata

        • Field: 'text'
        • Signature: 'Text*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prop

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

        Field Documentation

        Blender Source Code

        'id-properties' used to store custom properties for constraint.

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__prop);
         CPointer<CPointer<IDProperty>> p_prop = p.cast(new Class[]{CPointer.class, IDProperty.class});
         

        Metadata

        • Field: 'prop'
        • Signature: 'IDProperty*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        General settings/state indicators accessed by bitmapping.

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__tarnum

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

        Field Documentation

        Blender Source Code

        Number of targets - usually only 1-3 are needed.

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__tarnum);
         CPointer<Integer> p_tarnum = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'tarnum'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__targets

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

        Field Documentation

        Blender Source Code

        A list of targets that this constraint has (bConstraintTarget-s).

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__targets);
         CPointer<ListBase> p_targets = p.cast(new Class[]{ListBase.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Target from previous implementation (version-patch sets this to NULL on file-load).

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__tar);
         CPointer<CPointer<BlenderObject>> p_tar = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

        • Field: 'tar'
        • Signature: 'Object*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__subtarget

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

        Field Documentation

        Blender Source Code

        Subtarget from previous implementation (version-patch sets this to "" on file-load), MAX_ID_NAME-2.

        Pointer Arithmetics

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

         bPythonConstraint bpythonconstraint = ...;
         CPointer<Object> p = bpythonconstraint.__dna__addressof(bPythonConstraint.__DNA__FIELD__subtarget);
         CPointer<CArrayFacade<Byte>> p_subtarget = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • bPythonConstraint

        public bPythonConstraint​(long __address,
                                 Block __block,
                                 BlockTable __blockTable)
    • Method Detail

      • getText

        public CPointer<Text> getText()
                               throws java.io.IOException
        Get method for struct member 'text'.

        Field Documentation

        Blender Source Code

        Text-buffer (containing script) to execute.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__text
      • setText

        public void setText​(CPointer<Text> text)
                     throws java.io.IOException
        Set method for struct member 'text'.

        Field Documentation

        Blender Source Code

        Text-buffer (containing script) to execute.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__text
      • getProp

        public CPointer<IDProperty> getProp()
                                     throws java.io.IOException
        Get method for struct member 'prop'.

        Field Documentation

        Blender Source Code

        'id-properties' used to store custom properties for constraint.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prop
      • setProp

        public void setProp​(CPointer<IDProperty> prop)
                     throws java.io.IOException
        Set method for struct member 'prop'.

        Field Documentation

        Blender Source Code

        'id-properties' used to store custom properties for constraint.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prop
      • getFlag

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

        Field Documentation

        Blender Source Code

        General settings/state indicators accessed by bitmapping.

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

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

        Field Documentation

        Blender Source Code

        General settings/state indicators accessed by bitmapping.

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

        public int getTarnum()
                      throws java.io.IOException
        Get method for struct member 'tarnum'.

        Field Documentation

        Blender Source Code

        Number of targets - usually only 1-3 are needed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tarnum
      • setTarnum

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

        Field Documentation

        Blender Source Code

        Number of targets - usually only 1-3 are needed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tarnum
      • getTargets

        public ListBase getTargets()
                            throws java.io.IOException
        Get method for struct member 'targets'.

        Field Documentation

        Blender Source Code

        A list of targets that this constraint has (bConstraintTarget-s).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__targets
      • setTargets

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

        Field Documentation

        Blender Source Code

        A list of targets that this constraint has (bConstraintTarget-s).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__targets
      • getTar

        public CPointer<BlenderObject> getTar()
                                       throws java.io.IOException
        Get method for struct member 'tar'.

        Field Documentation

        Blender Source Code

        Target from previous implementation (version-patch sets this to NULL on file-load).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tar
      • setTar

        public void setTar​(CPointer<BlenderObject> tar)
                    throws java.io.IOException
        Set method for struct member 'tar'.

        Field Documentation

        Blender Source Code

        Target from previous implementation (version-patch sets this to NULL on file-load).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tar
      • getSubtarget

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

        Field Documentation

        Blender Source Code

        Subtarget from previous implementation (version-patch sets this to "" on file-load), MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subtarget
      • setSubtarget

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

        Field Documentation

        Blender Source Code

        Subtarget from previous implementation (version-patch sets this to "" on file-load), MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subtarget