Aikiman
01-17-2007, 08:52 PM
This seems to be a pretty simple mel question but Im hopeless with mel and tried to figure it but got stuck.
I have for example 500 pCube called pCube1 - 500.
They are all active rigids and want to connect a gravity field to them all. For some reason Maya doesn't let me select all the rigids then go to the menu and apply gravity, it looks as though I can only do it through the dynamics relationship editor one by one, ha ha ha, or use mel.
I know this is the mel to connect gravity to one cube...
connectDynamic -f gravityField1 pCube1;
and that I should use a for loop and an array but thats about it, anybody?
I have for example 500 pCube called pCube1 - 500.
They are all active rigids and want to connect a gravity field to them all. For some reason Maya doesn't let me select all the rigids then go to the menu and apply gravity, it looks as though I can only do it through the dynamics relationship editor one by one, ha ha ha, or use mel.
I know this is the mel to connect gravity to one cube...
connectDynamic -f gravityField1 pCube1;
and that I should use a for loop and an array but thats about it, anybody?
