Notifications
Clear all

[Closed] Changing Spline Weld Threshold ?

Is there anyway to change the Weld Threshold within splines using either Maxscript or C++ SDK ? As the ShowProperties doesn’t give me anyway to change it, and I can’t seem to get any param blocks from splines to get to the value either … I would preper a SDK way, but Maxscript would also be fine at this time. Thanks.

6 Replies

weld threshold is not going with property system (paramblock). it’s probably just a variable that temporary stores a value for scene session. you can check it by changing the default weld threshold value, saving the file, and reload it. the weld value has to return do the default.

So I’m using the DoVertWeld from the SDK, is there anyway to change the value Weld Threshold? or as its only a temp value, it can’t be changed ? If so, thats not very good xD

You can use MXS function to weld vertices within a given threshold:

weldSpline <splineShape node> <tolerance>

In C++, you may want to look at the WeldSplineAtSelVerts() method found in “avg_dlx.cpp” file.

The Maxscript works exaclty how I want it ^^ I will have a look at the cpp file and hopefully I’ll understand it xD Many Thanks

i was right. weldthreshold is just a temp internal variable defined only during shape scene lifetime. see editspl.cpp in sdk exampes
weldthreshold is technically a value of corresponding spinner.

Sweet, I’ll shall have a look at that now Many thanks guys =]