View Full Version : Tagging a keyframe
MatanH 08-13-2008, 01:16 PM 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.
|
|
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.
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
MatanH
08-13-2008, 03:00 PM
I have already looked into the notes track, but it's not what I'm looking for..
Thanks for the replyies.
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.
MatanH
08-13-2008, 03:22 PM
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:
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:
hmm.. not sure about unique ID. If you deleted it wouldnt all the other be reordered? ala vert id?
MatanH
08-13-2008, 04:12 PM
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:
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.
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:
Thats my point.
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
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.
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.
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.
CGTalk Moderation
08-14-2008, 03:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.