View Full Version : Pwr_Join in Max 2010 leaves original selection...
PiXeL_MoNKeY
08-22-2009, 03:14 PM
In 3ds Max 2010 Rel 6.07, if you select more than one object and then Pwr_Join you will get the Pwr_Join plus the original selection. For example, if you select 3 objects and join them you will end with a selection of 4 objects instead of 1.
-Eric
PiXeL_MoNKeY
08-22-2009, 08:22 PM
Here is a maxscript to fix the problem after you Pwr_Join a selection and it leaves the selection.(
StartObjectCreation Pwr_Join
)
(
if selection.count > 1 do (
for o in selection.count to 2 by -1 do (
delete selection[o]
)
)
)-Eric
Edit: Modified code to add the Join command as part of it.
PiXeL_MoNKeY
08-25-2009, 03:13 PM
Here is some macroscript replacement, until a proper fix is implemented. If you run this code in Max and then navigate under the nPower Tools category in the Customize UI dialog it will be called Pwr_Join_Delete.removed -- The code was causing 3ds max instability and causing undo stack issuesPrevious code had problems if you had a Pwr_Join as part of your original selection, this code will delete item in the selection, except the first. NOTE: if you have objects inside the selection that aren't joined (for example sketch objects) they will be deleted with this code.
-Eric
PiXeL_MoNKeY
08-25-2009, 08:42 PM
Ok here is the modified Macroscript, that doesn't cause problems. NOTE: you will have 2 undo entries, one for the deletion of the objects and one for the Pwr_Join operation.macroScript Pwr_Join_Delete
category:"nPower Tools"
internalcategory:"nPower Tools"
tooltip:"Pwr_Join_Delete - NURBS Join Object"
buttontext:"Pwr_Join_Delete"
Icon:#("PowerNurbs",18)
(
on isEnabled return (
selection.count > 0 and
SuperClassof selection[1].baseobject == GeometryClass
)
on execute do (
StartObjectCreation Pwr_Join
max modify mode
undo label:"Pwr_Join_Delete" on (
selArr = selection as array
if selArr.count > 1 do (
deleteItem selArr 1
delete selArr
)
)
)
on isChecked return (mcrUtils.IsCreating Pwr_Join)
)-Eric
nPower_Michael
08-26-2009, 10:37 AM
This issue is resolved in our current test version, so it should be fixed in the next release.
vBulletin® v3.7.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.