Jump to content

primitive groups to pointgroups


haggi

Recommended Posts

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?

Link to comment
Share on other sites

Guest Swann

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 by SWANN
Link to comment
Share on other sites

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 by haggi
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...