Notifications
Clear all

[Closed] Tagging a keyframe

Hi,
I’m looking for a way to store a string onto a keyframe, like the FrameTagManager that lets you add tags to a certain frame, only that I need it to stick to a keyframe and move with it.

12 Replies
 PEN

You can’t do this with Max script. At least not any way that I have ever found. I would love to have a tag property in key frames so we can dump strings or something into it.

 JHN

I don’t think you can directly…
There is the “notetrack” which you can add to a controller, but it’s keys have no direct relation to the controller PRS tracks. Maybe with callback or persistent global array…

Look up “Working with Note Tracks” in the ref.

No easy way AFAIK.

-Johan

I have already looked into the notes track, but it’s not what I’m looking for…
Thanks for the replyies.

 eek

I thought about this too, would be cool for fk-ik stuff – im just not sure how you would reference it though changes in time etc…

What is a key in the end – if its just an arbitary value over time then it needs to have something in it that you can reference even if its just a change in value/time.

I would expect keyframes to have a unique ID or an attribute that can be used to sort them by their creation order or better to have a way to store them as maxObjects.
But I can’t :shrug:

1 Reply
 eek
(@eek)
Joined: 1 year ago

Posts: 0

hmm… not sure about unique ID. If you deleted it wouldnt all the other be reordered? ala vert id?

I’m not sure if understood your question, but if you ask me, I would like the unique ID not to be reordered.
But I’m looking for a practical solution and not a wish list :rolleyes:

1 Reply
 eek
(@eek)
Joined: 1 year ago

Posts: 0

Thats my point.

 PEN

That is why I would love the equivlent of appdata for key frames. We could just store what we need to keep track of it.

 JHN

You could generate some <strike>hashvalues</strike> checksums out of certain parameters of the keyframes and identify them with that… based on value and time maybe. I read a blog somewhere about that, can’t find it anymore.

-Johan

Did find it: http://techarttiki.blogspot.com/2008/03/checksums.html

 PEN

I think that the problem would still remain that if one of the keys is deleted you don’t know which it is because there is no way to tag the key directly. This can only be delt with in the SDK.

1 Reply
 eek
(@eek)
Joined: 1 year ago

Posts: 0

I think thats the only way – a key would need to be stored in some array and have a unique identifier. For example the link controller stores the keys like this i think.