嗨,我需要在Maya中重新调用大量缓存文件,但是我无法访问缓存属性来选择缓存路径基目录并将其设置为最终缓存文件夹。请帮忙!
答案 0 :(得分:0)
这是获取abc缓存路径的解决方案:
shape = cmds.ls(sl=True, dag=True, type="mesh", ni=True) # just to get the mesh shape under selection
abc = cmds.listConnections(shape, type='AlembicNode') # find the alembic node
cache_path = cmds.getAttr('{0}.{1}'.format(abc[0],'abc_File') ) # get the path
对于地理缓存,属性都是:
.cacheName .cachePath