public class ChannelDriver extends CFacade
Channel Driver (i.e. Drivers / Expressions) (driver)
Channel Drivers are part of the dependency system, and are executed in addition to normal user-defined animation. They take the animation result of some channel(s), and use that (optionally combined with its own F-Curve for modification of results) to define the value of some setting semi-procedurally.
Drivers are stored as part of F-Curve data, so that the F-Curve's RNA-path settings (for storing what setting the driver will affect). The order in which they are stored defines the order that they're evaluated in. This order is set by the Depsgraph's sorting stuff.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__curval
Field descriptor (offset) for struct member 'curval'.
|
static long[] |
__DNA__FIELD__expr_comp
Field descriptor (offset) for struct member 'expr_comp'.
|
static long[] |
__DNA__FIELD__expr_simple
Field descriptor (offset) for struct member 'expr_simple'.
|
static long[] |
__DNA__FIELD__expression
Field descriptor (offset) for struct member 'expression'.
|
static long[] |
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.
|
static long[] |
__DNA__FIELD__influence
Field descriptor (offset) for struct member 'influence'.
|
static long[] |
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.
|
static long[] |
__DNA__FIELD__variables
Field descriptor (offset) for struct member 'variables'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct ChannelDriver.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
ChannelDriver(ChannelDriver that) |
|
ChannelDriver(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<ChannelDriver> |
__io__addressof()
Instantiates a pointer on this instance.
|
float |
getCurval()
Get method for struct member 'curval'.
|
CPointer<java.lang.Object> |
getExpr_comp()
Get method for struct member 'expr_comp'.
|
CPointer<java.lang.Object> |
getExpr_simple()
Get method for struct member 'expr_simple'.
|
CArrayFacade<java.lang.Byte> |
getExpression()
Get method for struct member 'expression'.
|
int |
getFlag()
Get method for struct member 'flag'.
|
float |
getInfluence()
Get method for struct member 'influence'.
|
int |
getType()
Get method for struct member 'type'.
|
ListBase |
getVariables()
Get method for struct member 'variables'.
|
void |
setCurval(float curval)
Set method for struct member 'curval'.
|
void |
setExpr_comp(CPointer<java.lang.Object> expr_comp)
Set method for struct member 'expr_comp'.
|
void |
setExpr_simple(CPointer<java.lang.Object> expr_simple)
Set method for struct member 'expr_simple'.
|
void |
setExpression(CArrayFacade<java.lang.Byte> expression)
Set method for struct member 'expression'.
|
void |
setFlag(int flag)
Set method for struct member 'flag'.
|
void |
setInfluence(float influence)
Set method for struct member 'influence'.
|
void |
setType(int type)
Set method for struct member 'type'.
|
void |
setVariables(ListBase variables)
Set method for struct member 'variables'.
|
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for ChannelDriver.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__variables
Targets for this driver (i.e. list of DriverVar
).
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__variables); CPointer<ListBase> p_variables = p.cast(new Class[]{ListBase.class});
public static final long[] __DNA__FIELD__expression
python expression to execute (may call functions defined in an accessory file) which relates the target 'variables' in some way to yield a single usable valueExpression to compile for evaluation.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__expression); CPointer<CArrayFacade<Byte>> p_expression = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__expr_comp
PyObject - compiled expression, don't save this.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__expr_comp); CPointer<CPointer<Object>> p_expr_comp = p.cast(new Class[]{CPointer.class, Object.class});
public static final long[] __DNA__FIELD__expr_simple
Compiled simple arithmetic expression.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__expr_simple); CPointer<CPointer<Object>> p_expr_simple = p.cast(new Class[]{CPointer.class, Object.class});
public static final long[] __DNA__FIELD__curval
Result of previous evaluation.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__curval); CPointer<Float> p_curval = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__influence
XXX to be implemented... this is like the constraint influence setting.
Influence of driver on result.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__influence); CPointer<Float> p_influence = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__type
general settings Type of driver.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__type); CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__flag
Settings of driver.
This is how you get a reference on the corresponding field in the struct:
ChannelDriver channeldriver = ...; CPointer<Object> p = channeldriver.__dna__addressof(ChannelDriver.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
public ChannelDriver(long __address, Block __block, BlockTable __blockTable)
protected ChannelDriver(ChannelDriver that)
public ListBase getVariables() throws java.io.IOException
Targets for this driver (i.e. list of DriverVar
).
java.io.IOException
__DNA__FIELD__variables
public void setVariables(ListBase variables) throws java.io.IOException
Targets for this driver (i.e. list of DriverVar
).
java.io.IOException
__DNA__FIELD__variables
public CArrayFacade<java.lang.Byte> getExpression() throws java.io.IOException
python expression to execute (may call functions defined in an accessory file) which relates the target 'variables' in some way to yield a single usable valueExpression to compile for evaluation.
java.io.IOException
__DNA__FIELD__expression
public void setExpression(CArrayFacade<java.lang.Byte> expression) throws java.io.IOException
python expression to execute (may call functions defined in an accessory file) which relates the target 'variables' in some way to yield a single usable valueExpression to compile for evaluation.
java.io.IOException
__DNA__FIELD__expression
public CPointer<java.lang.Object> getExpr_comp() throws java.io.IOException
PyObject - compiled expression, don't save this.
java.io.IOException
__DNA__FIELD__expr_comp
public void setExpr_comp(CPointer<java.lang.Object> expr_comp) throws java.io.IOException
PyObject - compiled expression, don't save this.
java.io.IOException
__DNA__FIELD__expr_comp
public CPointer<java.lang.Object> getExpr_simple() throws java.io.IOException
Compiled simple arithmetic expression.
java.io.IOException
__DNA__FIELD__expr_simple
public void setExpr_simple(CPointer<java.lang.Object> expr_simple) throws java.io.IOException
Compiled simple arithmetic expression.
java.io.IOException
__DNA__FIELD__expr_simple
public float getCurval() throws java.io.IOException
Result of previous evaluation.
java.io.IOException
__DNA__FIELD__curval
public void setCurval(float curval) throws java.io.IOException
Result of previous evaluation.
java.io.IOException
__DNA__FIELD__curval
public float getInfluence() throws java.io.IOException
XXX to be implemented... this is like the constraint influence setting.
Influence of driver on result.
java.io.IOException
__DNA__FIELD__influence
public void setInfluence(float influence) throws java.io.IOException
XXX to be implemented... this is like the constraint influence setting.
Influence of driver on result.
java.io.IOException
__DNA__FIELD__influence
public int getType() throws java.io.IOException
general settings Type of driver.
java.io.IOException
__DNA__FIELD__type
public void setType(int type) throws java.io.IOException
general settings Type of driver.
java.io.IOException
__DNA__FIELD__type
public int getFlag() throws java.io.IOException
Settings of driver.
java.io.IOException
__DNA__FIELD__flag
public void setFlag(int flag) throws java.io.IOException
Settings of driver.
java.io.IOException
__DNA__FIELD__flag
public CPointer<ChannelDriver> __io__addressof()