PDA

View Full Version : Placing an expression on .Ctrl.PosItemBlend



rtl114
08-15-2011, 10:51 AM
next question..... :)

I'm trying to put an expression on the PosItemBlend channel of an object. I'm using the code below. The expression gets created just fine, put the it does not get put on the PosItemBlend. Is it possible to do this thru LScript?

com = strin("GE_CreateExpression ","posBlend"," ","[itemMover.Position.Y]");
CommandInput(com);

com = string("GE_AttachExpression ","object.Ctrl.PosItemBlend"," ","posBlend");
CommandInput(com);


Thanks again for all you help,
Ross

rtl114
08-25-2011, 07:09 AM
I think I figured this one out. I needed to AddEnvelope(XYZ); Beofore I try to put an expression on it.