Notifications
Clear all
[Closed] 3dsMax 2022 script compatibility
Jun 01, 2021 4:11 pm
Hi
There is very handy script to toggle between sub-objects and object selection
It is working like a charm in 3dsMax 2020, but this error occurs in 2022 when run on EditableMesh or EditablePoly with no modifiers assigned
Will appreciate fix
Thanks!
rapid_edit_04.ms (3.9 KB)
3 Replies
Jun 01, 2021 4:11 pm
There should be an error message in maxscript listener with the source code line number and position where this error happens.
Jun 01, 2021 4:11 pm
The error is on line 46. This line in the code below modPanel.setCurrentObject obj.modifiers[obj.modifiers.count]
local obj = selection[1]
if getCommandPanelTaskMode() == #modify and subObjectLevel != 0 then
(
subObjectLevel = 0
modPanel.setCurrentObject obj.modifiers[obj.modifiers.count]
setCommandPanelTaskMode #create
setCommandPanelTaskMode #modify
)
I don’t know if this will help, but when the line 46 is replaced with this:
if obj.modifiers.count != 0 then
modPanel.setCurrentObject obj.modifiers[obj.modifiers.count]
else
modPanel.setCurrentObject obj
the error not appear.