[Maya-Python] python for loop with a mel function included

2014-05-30 Thread miafgh
hello i want to do a planar mapping of four objects like this: import maya.mel as mm for i in range(12,15): mm.eval("polyProjection -ch 1 -type Planar -ibd on -kir -md z pCube%s.f[4:6] pCube%s.f[8];" % i) sadly this wont go...does anyone know how to do this ? I would be very thankful:)

Re: [Maya-Python] python for loop with a mel function included

2014-05-31 Thread Justin Israel
I'm pretty sure the error you are seeing from this is that there are not enough format arguments for the string? It is because in your string you use %s two times but only provide one format argument. It would work if you modified it to: mm.eval("polyProjection -ch 1 -type Planar -ibd on -kir -md