I program in Maxscript with much difficulty. But I get there. This is new for me. Keyframing a blend material’s mask slot containing a gradient ramp’s flag #3 position. I have a spreadsheet from the client where I generated a MS to go to the time in the first column and set a rotation keyframe I get from the second column.
Now they’ve added a third column (after discussing options with me) and it contains the percent value 0-100 that Flag#3’s position on the gradient ramp needs to be keyframed at.
A recorder snapshot of me changing the flag position in the actual material within my model is:
meditMaterials.mask[#Gradient_Ramp][#Gradient][#(null)][#Flag__3][#Position].Position.controller.keys.value = 44
The meat & potatoes of my current code is:
ln = readline f as stringstream
tims = readvalue ln
rot = readvalue ln
at time tims
stw.rotation = (eulerAngles 0 0 rot)
stw was set to the object’s name.
I assume “at time tims” I’ll do something like material.subsomething.value = XX
Anyone with the knowhow to manipulate this parameter the way I need to in this program, please clue me in.