function procAppend_Effect(obj) { if (!obj) return; setEffectSize(obj,9385,500);//次元斩放大500% } function procAppendEffect(obj) { if (!obj) { return; // 如果obj为空,则直接返回,不做任何操作 } }function setEffectSize(obj, index, eRange) { local objCount = obj.getMyPassiveObject(index); for(local i = 0; i < objCount;++i) local objField = obj:getMyPassiveObject(index, i) if (!objField)continue; if (objField.isMyControlObject()){ local pAni = objField.getCurrentAnimation(); pAni:setImageRateFromOriginal(eRange, eRange) pAni:setAutoLayerWorkAnimationAddSizeRate(eRange) pAni:setAutoLayerWorkAnimationAddSizeRate(eRange) } }