如题,我装了4.1版本的场景助手,结果里头的“打开所有组”功能不能用,不知道各位有没遇到这种情况?求高手赐教啊
o<hT/ P 代码为:
G/2| *H fn openAllGroups obj =
E0miX)AG (
"QWF&-kAI sourceObj =
for i in obj where not isOpenGroupHead i collect i
Fo=hL if sourceObj.count != 0 then for o in sourceObj do setGroupOpen o false else return true
t4a/\{/#9| for j in 1 to sourceObj.count do openAllGroups sourceObj
^r u1QDT )
MT8BP)C ( if selection.count != 0 then
z$VA]tI( obj = for i in selection where CGplusplusFunc.notHiddenOrFrozen i and isGroupHead i collect i
y5d=r]_S: else obj = for i in objects where CGplusplusFunc.notHiddenOrFrozen i and isGroupHead i collect i
D;pfogK @ fl_openAllGroups obj
eY)JuJ? )
'l%b5: