THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2009 at 05:31, xxxxxxxx wrote:
What exactly is broken?
This seems to work fine for me:
> \> LONG LookAtCamera::Execute(PluginTag \*tag, BaseDocument \*doc, BaseObject \*op, BaseThread \*bt, LONG priority, LONG flags) \> { \> GeData s1,s2; \> Real mix; \> tag->GetAnimatedParameter(DescLevel(MY_DATETIME),s1,s2,mix,0); \> \> if (mix>0.0) \> { \> DateTimeData \*dtd = (DateTimeData\* )s2.GetCustomDataType(DATETIME_DATA); \> if (dtd) \> { \> tagDateTime dt = dtd->GetDateTime(); \> GePrint("s2 "+RealToString(mix\*dt.lDay)); \> } \> } \> else \> { \> DateTimeData \*dtd = (DateTimeData\* )s1.GetCustomDataType(DATETIME_DATA); \> if (dtd) \> { \> tagDateTime dt = dtd->GetDateTime(); \> GePrint("s1 "+RealToString(dt.lDay)); \> } \> } \> \> return EXECUTION_RESULT_OK; \> } \>
cheers,
Matthias