Hey, I am hoping sombody with a background in sripting can help me over this hurdle.
I have been trying to get an OBJ sequence into my Maya scene and it seems all the scripts out there that I have found are written with visibility toggles for each frame. That is cool and all but it just isnt going to work for what I need to do.
I found a better way to go about OBJ sequencing in Maya using the "choice" node. I am able to connect its selector input to the "time1" node and let the .outTime attribute flip through the meshes while keeping all the data in one shape node.
The problem! :
There are hundreds of OBJs and unless I get a script written, I would have to connect each OBJs shape.outMesh connection manualy into the "choice" node's .input[1-360] !!! Wich I could really do without and I am sure you could understand that.
Could sombody please help me figure out how to write the script or point me to a reasource that would help? It would be greatly appreciated
Right now my scripting knowledge is limited to writting hundreds of these:
connectAttr -f oil_shape_0001.outMesh choice1.input;
connectAttr -f oil_shape_0002.outMesh choice1.input;
connectAttr -f oil_shape_0003.outMesh choice1.input;
connectAttr -f oil_shape_0004.outMesh choice1.input;
connectAttr -f oil_shape_0005.outMesh choice1.input;
connectAttr -f oil_shape_0006.outMesh choice1.input;
connectAttr -f oil_shape_0007.outMesh choice1.input;
connectAttr -f oil_shape_0008.outMesh choice1.input;
connectAttr -f oil_shape_0009.outMesh choice1.input;