Message 1 of 10
How do I create an animation of a Material Modifier (in C++)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am new to the SDK and animations seem like a complex subject, so I am not even sure where to start looking.
I have created a Material Modifier:
Modifier *material_modifier = (Modifier*)i7->CreateInstance(OSM_CLASS_ID, Class_ID(MATERIALOSM_CLASS_ID, 0));
And I have successfully associated it with a number of nodes in the scene:
GetCOREInterface12()->AddModifier(*node, *material_modifier);
So far everything works, but I also need to animate the modifier so that at frame 0, the ID is 0 and at frame 1, the ID is 1 and so on. Probably very easy if you know enough, but I am pretty lost. There are no other animations in this scene if that makes a difference.
I would really appreciate it if anyoune could point me in the right direction!