![]() |
ID_MODELING_WELD_TOO - Doesn't work [SOLVED] |
Author |
![]() |
||
DayDreamer ![]() Member ![]() Joined: 2017 May 24 Online Status: Offline Posts: 1 |
![]() Posted: 2017 May 24 at 6:30pm |
||
Hello everybody.
I've been trying to weld some points, using "ID_MODELING_WELD_TOOL" I've tried setting various settings from: MDATA_WELD_POINT = 1100, //VECTOR MDATA_WELD_TOPOINT = 1101, //BOOL MDATA_WELD_POINTINDEX = 1102, //LONG MDATA_WELD_OBJECTINDEX = 1103, //LONG MDATA_WELD_VISIBLE = 1104, //BOOL MDATA_WELD_COLLAPSE = 1105, //BOOL MDATA_WELD_COLLAPSE_P1 = 1106, //LONG MDATA_WELD_COLLAPSE_P2 = 1107, //LONG MDATA_WELD_COLLAPSE_OBJ1 = 1108, //LINK MDATA_WELD_COLLAPSE_OBJ2 = 1109, //LINK MDATA_WELDPOINT_ But with no clear understanding what's what, I just wasted 3 hours on trial and error. Where does one assign the points to weld and what does some of those variables mean? Thank you!
|
|||
![]() |
|||
knickknack ![]() Forum Moderator ![]() Joined: 2016 Jul 01 Location: Italy Online Status: Offline Posts: 268 |
![]() |
||
Hi DayDreamer, thanks for writing us and welcome to our community. With reference to your question on how to use the ID_MODELING_WELD_TOOL via SendModellingCommand, I first recommend you to give a look at SendModelingCommand() in the Python API in order to understand how to properly format the SendModellingCommand call. The Weld command in Cinema is supposed to operate with points or edges or polygons previously selected on an editable mesh to collapse the points inferred by the selected entities on a specific location. So far in order to have the SendModelingCommand delivering the expected action you have at least have an editable mesh with two points selected (or an edge or a polygon). That said, let's see how the different (and relevant) options change the final welding behaviour
Suppose you have a simple plane made up of for quads (numbers are representing the points indexes) 1-----5-----2 | | | 4-----8-----6 | | | 0-----7-----3 To weld points 0 and 7 (they are selected before running the script) on point 4:
To weld instead the bottom/right polygon (the polygon is selected before running the script) on point (0,100,-100):
Finally to weld the two points connecting the edge formed by point 4 & 8 (the edge is selected before running the script) on their middle point:
I hope this few notes could help you to understand a bit more on how the welding tool can be used and i leave to you diving deeper mixing options and primitives. Best, Riccardo Edited by knickknack - 2017 May 25 at 11:42am |
|||
MAXON Computer GmbH
SDK Support Team |
|||
![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |