My original question was what's posted below,
it quickly turned out that there was a easier way to solve this directly with maxscript,
so I've changed the topic to reflect this.
I've also kept the original post just for reference.
I need to ask for some help, I have a maxscript that fixes a bug in our scenes,
I'd like to have it into c++, the problem is that I've never worked with this type of thing before, only meshes and materials in c++.
So I'm asking for some help on translating this into c++.
I've got all the framework done for the plugin itself,
it's just the code below I need help with.
If you want to help, then I appreciate it!
Thanks in advance.
The script that needs translation is the following:
trackIndex = 1 m = trackViewNodes[trackIndex] disableSceneRedraw() undo off ( while (m != undefined) do ( ct = numNoteTracks m id = ct for i = 1 to ct do ( tr = getNoteTrack m id deleteNoteTrack m tr id = id - 1 ith = mod i 200 ) trackIndex = trackIndex + 1 m = trackViewNodes[trackIndex] ) ) enableSceneRedraw() messagebox "Done!"