You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to export a Maya node which has instances it looks like the resulting file is wrong when using the kwarg "exportRoots".
To test, you can create an scene with the code below:
import maya.cmds as cmds
s = cmds.sphere(r=10, name="instance")
lod_group = cmds.group(name="my_lod")
asset_group = cmds.group(name="my_asset")
for i in range(5):
inst = cmds.instance([s[0]], name=f"{s[0]}_{i}")
cmds.move(25 * (i + 1), 0, 0, inst[0])
Once you have the scene, export it with the following command:
You can see that the resulting file does not have the geometry in it.
If now you try to run the command above without the "exportRoots" kwarg you will see that the resulting file has the proper geometry:
When trying to export a Maya node which has instances it looks like the resulting file is wrong when using the kwarg "exportRoots".
To test, you can create an scene with the code below:
Once you have the scene, export it with the following command:
You can see that the resulting file does not have the geometry in it.
If now you try to run the command above without the "exportRoots" kwarg you will see that the resulting file has the proper geometry:
Am I missing something here? Is this, for some reason, the expected behavior?
Thanks!
Specs:
The text was updated successfully, but these errors were encountered: