in3d
New Member
Posts: 22
|
Post by in3d on Nov 26, 2017 23:28:52 GMT
Is it possible to automatically create group based on smoothing groups?
The Gui does give an option for this but nothing happens when I click on it.
Preferably I want the LUA code for achieving this.
Regards
Tahir
|
|
|
Post by Remi Arquier on Nov 27, 2017 12:16:42 GMT
Hi Tahir,
As the "TIP" suggests in the dialog, you'll see nothing if you stay in edge primitive mode and if the smoothing groups limits do not cut any island in several parts.
Did you try to switch to island or polygon mode and use the selecting tool with smoothing group?
The LUA commands will be displayed in the command log if you use the tool. It would be then easy to understand the parameters meanings and do your own script
Pleas tell if me it answer to your needs
|
|
chess
New Member
Posts: 4
|
Post by chess on Nov 27, 2017 22:11:28 GMT
Yes, i noticed that one has to switch to polygon mode in order to select the smoothing groups. Nothing happens once I click on “In new groups”. I have tested this on different meshes.
In New Groups (Materials) U3dIslandGroups({Mode="DefineGroup", MergingPolicy=8322, IslandIDs={ 0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26}, GroupPath="RootGroup.Children.G1", IDsTransfer=true, AutoDelete=true}) U3dIslandGroups({Mode="DefineGroup", MergingPolicy=8322, IslandIDs={ 0, 1, 2, 3, 4, 5, 6, 7, 8, 18, 24, 26, 27}, GroupPath="RootGroup.Children.G2", IDsTransfer=true, AutoDelete=true})
The referred IslandID’s are they equivalent to poly index id in max? Would be hard to get access to them if they are internal ids.
Regards
Tahir
|
|
|
Post by Remi Arquier on Nov 28, 2017 15:34:25 GMT
Hi Tahir,
That's correct, IslandIDs are referring to islands internal IDs. However, you can use IslandByPolygonIDs instead. It will allow you to create groups using one polygon ID of each island you want to pu in the group.
Example: suppose that you want to create a group that contains the island A, island B, and island C. If you know that island A contain the polygon 95, the island B the polygon 7, and the island C the polygon 65, you may use:
U3dIslandGroups({Mode="DefineGroup", MergingPolicy=8322, IslandByPolygonIDs={ 95, 7, 65 }, GroupPath="RootGroup.Children.G1", IDsTransfer=true, AutoDelete=true})
And don't forget to install the 2017.0.27, we did some changes in the "DefineGroup", which actually acts like a "AddToGroup".
|
|