PyAPI driverExpression:

added "ipocurve.driver = 2" to set the curve to use driver python expressions.
added ipocurve.driverExpression - the string to run.
This commit is contained in:
2006-12-25 10:44:28 +00:00
parent 859b7f207e
commit 2a9fab55ba
4 changed files with 90 additions and 18 deletions

View File

@@ -1045,9 +1045,12 @@ static float pydriver_error(IpoDriver *driver) {
}
driver->flag |= IPO_DRIVER_FLAG_INVALID; /* py expression failed */
fprintf(stderr, "\nError in Ipo Driver: Object %s\nThis is the failed Python expression:\n'%s'\n\n", driver->ob->id.name+2, driver->name);
if (driver->ob)
fprintf(stderr, "\nError in Ipo Driver: Object %s\nThis is the failed Python expression:\n'%s'\n\n", driver->ob->id.name+2, driver->name);
else
fprintf(stderr, "\nError in Ipo Driver: No Object\nThis is the failed Python expression:\n'%s'\n\n", driver->name);
PyErr_Print();
return 0.0f;