Hi.

I've been trying to import geometry cache with Python to no avail. When I 
select the object manually and import from menu, it works.

The cache was created from a referenced rig.
exFemaleHair010:shirt_plyShape
associated xml file is 
exFemaleHair010_shirt_plyShape

I want to import that cache to a reference of the same character with 
different namespace. cache000:shirt_plyShape in this case.

I tried to do it like this
xml = path_to_xml
shape = ['cache000:shirt_plyShape']
channel = ['exFemaleHair010:shirt_plyShape']
pm.mel.doImportReferenceFile(xml, '', shape, channel)

However I keep getting this error. I supply channel with empty list but no 
good.
// Error: line 0: Channel exFemaleHair010:shirt_plyShape was not found. // 

Any help appreciate. Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/762482a6-216a-4840-bf37-d75c218649ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to