DateTime control animation
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/06/2006 at 10:42, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9,6
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Hi,I am using a datetime control, but when I keyframe the time it does not mix the keyframe times. It simply switches to the key value once it reached the frame. HELP please!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/06/2006 at 23:41, xxxxxxxx wrote:
In 9.6 there is the opportunity for datatypes to provide interpolation though CustomDataTypeClass:InterpolateKeys(). However, from what you describe it seems like datetime still doesn't do this. So the alternative would be to use your own datetime type which supports interpolation.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/06/2006 at 23:46, xxxxxxxx wrote:
Thanks Mikael. But I know that the Sky module is using a datetime control too and that one seems to be animatable. So it SHOULD be somehow possible. Maybe from the outside somehow?
(if you open the datetime control, yu can see it has subchannels, one of it is a float value (0f;1f) that controls the time in hours and seconds. That one should be the control that is used for animation of the customdatatype. At least that´s what I assume.)Can you confirm?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/07/2006 at 13:06, xxxxxxxx wrote:
If you use ANIM MIX you can animate the datetime yourself with GetAnimatedParameter(). It looks like that's what Sky (and the Sun expression) does.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/10/2009 at 02:18, xxxxxxxx wrote:
Any changes in that area? That still seems to be broken from a plugin perspective?
Kabe
-
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 -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2009 at 06:04, xxxxxxxx wrote:
What is broken? Well, basically with all other parameters, I don't have to care for animation myself, because it's done by Cinema internally, and I get the current state when executing the plugin.
Only with DateTime I have to interpolate it myself, as it looks. Or am I missing something fundamental here?
Thanks
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2009 at 06:53, xxxxxxxx wrote:
It really depends on the datatype and what you want to do with it. Some datatypes are interpolated some not, the link field for instance is not interpolated. GetAnimatedParameter() returns the progress of the parameter animation and allows for interpolation of your expression for instance.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2009 at 12:18, xxxxxxxx wrote:
Ehm... please be serious... a link obviously has no senseful interpolation.
While datetime is indeed a slightly more complex data type than a real, it *could* be interpolated quite well.
As a build in data type handled by a description resource, IMO this should be done by Cinema, not by the individual Plugins.
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/10/2009 at 01:18, xxxxxxxx wrote:
The point I wanted to make is that interpolation has to be supported by the datatype itself.
cheers,
Matthias