Feedback

What's your question?

By: Asked

component sets on custom MPxSurfaceShape derived nodes in Maya

Hello, what functions do I need to implement / override in MPxSurfaceShape derived nodes to enable components to be put into sets? My desired workflow is

  • select custom shape
  • go into component mode
  • select components
  • use the "sets" mel/python cmd to create a set from the currently selected components

alternatively using the sets cmd directly with the current component selection (which I can query) would be acceptable, too

Thanks for any inside knowledge!

Add comment viewed 176 times Latest activity about 1 month ago

or Cancel

1 answer

  • 0

futurebiscuit from Wellington, Aotearoa New Zealand

This is supported by the API. You need to return a MPxGeometryData object from geometryData. (I generally have a separate dummy MPxGeometryData class and MPxGeometryIterator dummy class for this and have a separate MPxData I use for actual data saving).

or Cancel