OK I fand a solution :
myFile=cmds.shadingNode("file", name = 'testShadingNode', asTexture=True)
my2dTexture=cmds.shadingNode("place2dTexture", name = 'testPlace2dTexture', asUtility=True)
connections = ['rotateUV','offset','noiseUV','vertexCameraOne','vertexUvThree','vertexUvTwo','vertexUvOne','repeatUV','wrapV','wrapU','stagger','mirrorU','mirrorV','rotateFrame','translateFrame','coverage']
cmds.connectAttr(my2dTexture+'.outUV',myFile+'.uvCoord')
cmds.connectAttr(my2dTexture+'.outUvFilterSize',myFile+'.uvFilterSize')
for i in connections:
cmds.connectAttr(testPlace2dTexture+'.'+i,testShadingNode+'.'+i)
(sorry I don't use the "insert" icons because it gives very strange results)
[b]But
The translate Frame attribute doesn't work for the testPlace2dTexture3
Any help ?
(I have used a polyPlane. Should I use a nurbsPlace ?)
[/b]