to facilitate testing, you can create a cluster on a mesh, and run

   1. fn = MFnGeometryFilter(MGlobal.getSelectionListByName('cluster1').
   getDependNode(0))
   2. fnData = MFnGeometryData(fn.object())
   
then, if you try to print tags (which should return a key and give a hint 
on what those keys are)

   1. fnData.componentTags()
   
you get a *RuntimeError: (kFailure): Object does not exist*

This is on Maya2023
On Thursday, May 11, 2023 at 5:19:41 PM UTC-7 vince touache wrote:

> hello, 
>
> I'm trying to wrap my head around the new componentTag workflow from 
> maya2022+, but I find the documentation somewhat light on this topic.
>
> I understand I can interact with component tags using a MFnGeometryData 
> <https://help.autodesk.com/view/MAYAUL/2023/ENU/?guid=Maya_SDK_What_s_New_What_s_Changed_2022_Whats_New_in_API_html#new-methods-and-types-added-to-mfngeometrydata-to-support-component-tags>,
>  
> but every command seems to expect so called "keys", which, based on the C++ 
> doc, seems to be strings. But I have no clue what those keys are. Any idea 
> how I can query componentTags for a given deformer with the api? And follow 
> up question, how do I query what's vertices/faces/edges are actually in 
> those components (similar to cmds.geometryAttrInfo), using the api?
>
> 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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/085f79da-39a9-49b7-bce6-9ad5beba7f63n%40googlegroups.com.

Reply via email to