71 lines
2.8 KiB
Plaintext
Executable File
71 lines
2.8 KiB
Plaintext
Executable File
--///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
--
|
|
-- :!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- :!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Copyright (c) Rockstar, San Diego
|
|
-- !!!!!!!!!!!!!!!RRRRRRRRRRRR!!!!!!!!!!!!!!!! A division of Rockstar Games Inc. & Take Two Interactive
|
|
-- !!!!!!!!!!!!!!!R RR!!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!!!R R!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!!R RRRRRR R!!!!!!!!!!!!! sdCombinePoly.ms
|
|
-- !!!!!!!!!!!!!!R RRRRRR R!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!!R ```` .R!!!!!!!!!!!!!! Version: Max 2009
|
|
-- !!!!!!!!!!!!!R RR!!!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!R RRRRR R!!!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!R R!!!!R R!!! !!!!!!!!!!!
|
|
-- !!!!!!!!!!!!R R!!!!R R!! *!!!!!!!!!!! ROCKSTAR SAN DIEGO DISCLAIMS ALL WARRANTIES WITH REGARD
|
|
-- !!!!!!!!!!!!R....R!!!!R. RX **'!!!!!!!!!! TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
|
|
-- !!!!!!!!!!!!RRRRRR!!!!RRRRRR.***.... .!!!!! MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ROCKSTAR
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!! ********":!!!!!!! SAN DIEGO BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!! ****** !!!!!!!!! CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!! *** ***'!!!!!!!!! FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!! *:!!!.* !!!!!!!!! OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!:!!!!!!!!! OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THIS SOFTWARE.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- `~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~~ MODIFY AT YOUR OWN RISK!
|
|
--
|
|
--///////////////////////////////////////////////////////////////////////////////////////////////////////////--script to weld at very low tolerance
|
|
|
|
fn sdCombinePoly =
|
|
(
|
|
disableSceneRedraw()
|
|
|
|
if $ != undefined do
|
|
(
|
|
--gather seleted objects
|
|
selObjs = for i in selection collect i
|
|
attached = 0
|
|
total = selObjs.count
|
|
|
|
--check for instances in selected objects and convert them
|
|
for currObj in selObjs do
|
|
(
|
|
if ( InstanceMgr.GetInstances currObj &instances > 1 ) do
|
|
(
|
|
convertToPoly currObj
|
|
)
|
|
)
|
|
|
|
--go through all the objects and attach them
|
|
for i = 2 to total do
|
|
(
|
|
try
|
|
(
|
|
polyOp.attach selObjs[1] selObjs[i]
|
|
attached += 1
|
|
) catch ()
|
|
)
|
|
|
|
--if no objects were attached then output message
|
|
if (attached < 1) and (total > 0) then
|
|
(
|
|
MessageBox("Nothing to attach")
|
|
)
|
|
)
|
|
|
|
enableSceneRedraw()
|
|
completeRedraw()
|
|
)
|
|
sdCombinePoly() |