I've been using Python to drive Maya for a while now and love it. Writing up an expression now which is in Mel and sort of stuck on how to emulate the format command in Python. I have a number of like named nodes that I need to perform an opration on using a for loop.
How do I splice my counter of the forloop into the node name I want to operate on?
loose example of python/mel mashup below for example-
////////
for( $i=0; $i<4; ++$i )
{
keyframe -index 1 -absolute -valueChange $maxHeightPad pad_t{0}_animCurve.format($i); // <------END OF THIS LINE
}
///////
Thank you for the help. Honestly I don't know what this operation is even called in Mel Script or I would of found it by now.