haggi Posted May 28, 2009 Share Posted May 28, 2009 I want to load a maya geometry cache file onto a geometry exported from maya as obj. Now I have a lot of primitiveGroups, but I need pointGroups to be able to read the geometry cache from maya. Any idea how I can can convert all the primitive groups into point groups at once? Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted May 28, 2009 Share Posted May 28, 2009 (edited) Stamp(), Arg(), Argc() and PrimGroupList() expressions are your friends here. Below is HDA with example how to make it. Install it and see how it works under the hood. ********* EDIT: Updated the file, AGAIN . 1) Now works both Ways - previous coudn't convert from points to primitives 2) Added masks for groups. 3) On Output gives only groups that are converted. So if you want to convert Primitive Group into Point Group and on input there is some existing point group it will delete it and output only conversion group. ********* group_convert.otl Edited May 29, 2009 by SWANN Quote Link to comment Share on other sites More sharing options...
SpencerL Posted May 28, 2009 Share Posted May 28, 2009 Stamp and two other expressions are your friends here. You can also do this using a ForEach SOP Quote Link to comment Share on other sites More sharing options...
haggi Posted June 2, 2009 Author Share Posted June 2, 2009 (edited) thank you for the tool. Unfortunatly it seems that the primitive groups share data. I suppose its because of the deformers that are connected to the original object. So I have 3 groups with exact the same count of primitives and if I look into your convertGroup tool, then you delete the all unnecessary data in the "Delete_Old_Point_Group" node. But with my geometry, the result of this node is empty. If I do a reexport of my obj and delete all available data in maya, so that I only have one single group, it works. Maybe there is a way to remove multiple instances of one group and collapse them? I'll try to create a simple example and post it here. Edited June 2, 2009 by haggi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.