On Friday, 30 October 2015 02:04:45 UTC+5:30, AK Eric wrote:
> Just exported some high-res scan mesh via the GPU Cache menu, then had a
> modeler import that back into their scene as a GPU cache for modeling
> reference.
>
>
>
> They moved it in worldspace, and now want to to 'turn it back in
That's great, thanks Roy: Ironically I found a script someone here at work
wrote that basically did the same thing ;)
On Thursday, October 29, 2015 at 3:03:46 PM UTC-7, Roy Nieterau wrote:
>
> I don't think that's a one-button thing.
>
> Try this:
>
> import maya.cmds as mc
>
> # Get selected le
I don't think that's a one-button thing.
Try this:
import maya.cmds as mc
# Get selected leaf shapes (so we can filter to gpuCaches)
selShapes = mc.ls(sl=1, dag=1, leaf=1, shapes=1, long=True)
# Filter to gpuCache (doesn't work as one-liner above)
gpuCacheShapes = mc.ls(selShapes, long=True, ty