Notifications
Clear all

[Closed] [SDK] vs [MXS] Apply controller

in MXS we can apply controller as:

node.rotation.controller = bezier_rotaion()

and in this case the node keeps ALL keys of previous controller but changes type of rotation controller. The same behavior for all controllers assignments via MXS.

could anyone point me to simple solution for the same behavior of assignment via SDK?

Do I miss something or this is just a setting keys for new controller with the same value at the same time?

2 Replies

isn’t that just Normal Max Assign Controller behaviour ? probably calling…

virtual void Control::Copy ( Control * from ) [pure virtual]

Remarks:
When a controller is assigned to a track in the track view, the new controller is plugged into the parameter and this method is called on the new controller. A pointer to the old controller is passed in to this method. The new controller can attempt to copy any data that it can from the old controller. At the very least it should initialize itself to the value of the old controller at frame 0.
Parameters:
from A pointer to the previous controller.

Yes. This is what I was looking for. I used many times Copy() but in different content. Now I reviewed several methods to add an option to copy controller before replace.
Thank!