Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thanks to a user of this forum I obtained this script to add keys, what I am needing is to be able to store the keys of the current time and the previous and following ones.
Store the selection of keys that are selected in the image I made as an example. That selection information can be used later to reselect the keys.
I want to store in an array to be able to select them later by means of the index.
import maya.cmds as mc
def insertKeyPercentage(percentage = 100):
key1 = mc.currentTime(q = True)
p = 4
key2 = mc.setKeyframe(i = True, t = (key1 +p))
key3 = mc.setKeyframe(i = True, t = (key1 -p))
insertKeyPercentage(percentage = 100)
Solved! Go to Solution.