3DS MAX: 3ds Max Forum 3ds Max Tutorials

Animation Gradient Ramp Flag#3

COW Forums : Autodesk 3ds Max

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Buck Wyckoff
Animation Gradient Ramp Flag#3
on Apr 6, 2011 at 3:12:16 am


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[12].mask[#Gradient_Ramp][#Gradient][#(null)][#Flag__3][#Position].Position.controller.keys[3].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.

Buck Wyckoff

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved