return PyInt_FromLong( (long)con->flag );
case EXPP_CONSTR_LOCAL:
if( get_armature( con->tar ) )
- return PyBool_FromLong( (long)( self->con->flag & CONSTRAINT_LOCAL ) ) ;
+ return PyBool_FromLong( (long)
+ ( self->con->flag & CONSTRAINT_LOCAL ) ) ;
Py_RETURN_NONE;
default:
return EXPP_ReturnPyObjError( PyExc_KeyError, "key not found" );
return PyInt_FromLong( (long)con->flag );
case EXPP_CONSTR_LOCAL:
if( get_armature( con->tar ) )
- return PyBool_FromLong( (long)( self->con->flag & SELECT ) ) ;
+ return PyBool_FromLong( (long)
+ ( self->con->flag & CONSTRAINT_LOCAL ) ) ;
Py_RETURN_NONE;
default:
return EXPP_ReturnPyObjError( PyExc_KeyError, "key not found" );
if( !get_armature( con->tar ) )
return EXPP_ReturnIntError( PyExc_RuntimeError,
"only armature targets have LOCAL key" );
- return EXPP_setBitfield( value, &self->con->flag, SELECT, 'h' );
+ return EXPP_setBitfield( value, &self->con->flag,
+ CONSTRAINT_LOCAL, 'h' );
default:
return EXPP_ReturnIntError( PyExc_KeyError, "key not found" );
}
return PyString_FromString( con->subtarget );
case EXPP_CONSTR_COPY:
return PyInt_FromLong( (long)con->flag );
+#if 0
case EXPP_CONSTR_LOCAL:
if( get_armature( con->tar ) )
- return PyBool_FromLong( (long)( self->con->flag & SELECT ) ) ;
+ return PyBool_FromLong( (long)
+ ( self->con->flag & CONSTRAINT_LOCAL ) ) ;
Py_RETURN_NONE;
+#endif
default:
return EXPP_ReturnPyObjError( PyExc_KeyError, "key not found" );
}
case EXPP_CONSTR_COPY:
return EXPP_setIValueRange( value, &con->flag,
0, LOCLIKE_X | LOCLIKE_Y | LOCLIKE_Z, 'i' );
+#if 0
case EXPP_CONSTR_LOCAL:
if( !get_armature( con->tar ) )
return EXPP_ReturnIntError( PyExc_RuntimeError,
"only armature targets have LOCAL key" );
- return EXPP_setBitfield( value, &self->con->flag, SELECT, 'h' );
+ return EXPP_setBitfield( value, &self->con->flag,
+ CONSTRAINT_LOCAL, 'h' );
+#endif
default:
return EXPP_ReturnIntError( PyExc_KeyError, "key not found" );
}
- MINMAX (int): values are MINX, MINY, MINZ, MAXX, MAXY, MAXZ
- OFFSET (float): clamped to [-100.0,100.0]
- STICKY (bool)
- - Used by Copy Location (COPYLOC), Copy Rotation (COPYROT), and Copy Size
- (COPYSIZE) constraint:
+ - Used by Copy Location (COPYLOC) and Copy Rotation (COPYROT)
- COPY (bitfield): any combination of COPYX, COPYY and COPYZ
- LOCAL (bool): Only for constraints which Armature targets.
+ - Used by Copy Size (COPYSIZE) constraint:
+ - COPY (bitfield): any combination of COPYX, COPYY and COPYZ
"""