猫(猫的品种)
“薛定谔的猫”到底说明了什么?它是正确的概念还是荒谬的概念?
薛定谔的猫来源于量子的不确定性。在盒子中,如果放射性原子衰变,猫就会死,如果没有衰变,猫就会活下来。这只猫给科幻作者提供了素材,也把量子力学蒙上了一层神秘的阴影。今天我们就来揭开它的面纱,聊聊猫背后的真相是什么。
双缝干涉
图:电子和光子都同时具备波和粒子的性质。当每次像双缝发射一个电子,数量累积足够多了,屏幕上就会出现干涉条纹。
薛定谔的猫源于双缝干涉实验:向两个细细的、间隔很近的缝隙发射一些光线,然后会观察到另一边屏幕上呈现出的干涉条纹,即分别穿过两个缝隙的光波发生了相互作用,产生了干扰。如果发射的是大量的粒子也会出现明亮相间的干涉条纹。
光具有波粒二象性,因此光同时也是由光子构成的,当我们往双缝发射一个光子时,光粒子(光量子)作为独立的一个粒子只能从两条缝中的其中一条穿过,但是当科学家只发送一个光子,仍然会得到干涉图案。这让科学家就懵圈了,干涉的情况,最起码需要两个粒子通过不同的缝隙发生干涉,那么单个的粒子是如何完成干涉的?基于这样的实验结果我们只能得出一个粒子,同时穿过了细缝A和细缝B,就如同它在选择细缝前出现了一个分身进入了另外一个细缝。
图:进行观测,屏幕上不会出现干涉图案。电子(或光子)表现出的不是波的性质,而是经典粒子的性质。
想要搞清楚这件事也很简单,看看、观测观测就知道了,然而情况并没有那么简单,当科学家对粒子的运动轨迹进行监测的时候,发现当发射出一个粒子时,粒子“乖乖“的选择了一条细缝通过,并且在屏幕上留下了一个亮点,干涉消失了。
这个实验说明了我们如果不去观察粒子,那么粒子通过细缝A的概率是100%,通过细缝B的概率也是100%。当我们进行观察时,如果细缝为两个,那么粒子通过任何一个细缝的概率是50%。同时也意味着观测会改变结果,那么在什么条件下观察会改变结果?观察对量子产生了什么影响?会发生影响的“观察者”是否有对象限制?人?还是无机物、非生命也会造成影响?
在“掩模”双缝实验中,狭缝P1打开,狭缝P2打开,或者两个狭缝都打开时,所呈现的结果不同。
薛定谔的猫
薛定谔提出猫的思维实验把双缝实验“过渡”到宏观层面:
建立了一个封闭的盒子,盒子里面有个量子系统,即放射性原子,当原子衰变时,量子系统就会释放毒气,盒子里有一只猫,会被毒死,在一个半衰期之后,猫是死是活?这就是薛定谔的猫思想实验。
打开盒子等同于双缝实验中的观察,
1.你会发现放射性原子衰变,猫死了。
2.你会发现一只活猫,放射性原子还没有衰变。
这就如同双缝干涉实验,原子衰变的概率是不确定的,原子同时处于衰变态和非衰变态的叠加状态。而原子的衰变控制毒药释放与不释放,毒药的状态又决定了猫的生死,那么猫本身,必然处于量子叠加态。这种叠加态会出现一个很大的误区,很多人认为打开盒子之前猫处于两种状态的叠加,这种叠加的状态是50%死+50%活。
薛定谔设计了这个思维实验,但他并没有声称猫本身会处于量子态的叠加状态,即既死又活,就像在双缝实验中我们没有观察光子得到的干涉结果一样。他与爱因斯坦一样认为在打开盒子之前,生死已定,即50%死/50%活,而猫如何出现生死或者光子为什么会发生这样的情况,遵循什么样的物理定律我们还未发现。
他真正的目的是为了说明有些人误解了量子力学,得出一个荒谬结论盒子里是一只既死又活的猫。换句话说,量子系统实际上可以用所有可能的概率加权叠加,观察或测量总是显示一个且只有一个确定的状态。
在传统的薛定谔猫实验中,我们不知道量子衰变是否已经发生,猫死亡与否。盒子里的猫不是死就是活,这取决于放射性粒子是否衰变。如果猫是一个量子系统,那么猫既不是活的也不是死的,而是处于两种状态的叠加状态,直到被观察。然而,我们无法观察到猫既死又活的猫,因为观察就意味着要打开盒子,而盒子打开只有一个结果。
真正的量子叠加态的解释其实就是双缝干涉实验的结果,当猫在盒子中,我们不观察它,它活的概率为100%,死的概率也为100%,打开盒子一瞬间猫死的概率为50%,活的概率为50%。这正是哥本哈根学派波尔的解释,而是如今量子力学的主流解释。
正是在哥本哈根学派对于盒中之猫的解释,美国物理学家休·埃弗雷特提出了“平行宇宙”,因为盒子中的猫生死概率为200%,而打开盒子得到的结果为100%,那么少了100%哪去了。由于量子信息不守恒,他认为如果打开盒子时得到是猫100%活着的信息,那么另外100%死的猫的信息会发生在其他宇宙,即平行宇宙。
最后
这就是薛定谔猫延伸出来的解释,而这一切都基于双缝干涉实验量子通过细缝的不确定性,如果我们理解了双缝干涉实验,对于猫的解释也就见怪不怪了。
illustrator插件-拼版功能-内角线-js脚本开发-ai插件
1.算法程序illustrator是矢量编辑软件,画板是绘制处理的重要容器,在印刷方面的一个重要功能就是拼版,开发一个内角线模块,以下功能仅用于学习交流,请勿用于非法用途,源代码如下所示:
var doc = app.activeDocument;var sel = doc.selection;var ab = docboards;var u = 2.834646;var white = new CMYKColor();white.cyan = white.magenta = white.yellow = white = 0;appordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM;var jsFilePath = new File($.fileName);var jsFolderPath = jsFilePath.parent.fsName;var jsfileNameExt = jsFilePath.fsName.slice(jsFolderPath.length + 1, jsFilePath.fsName.length);var jsfileName = jsFilePath.fsName.slice(jsFolderPath.length + 1, jsFilePath.fsName.length - 4);var f029 = new File(jsFolderPath + "/" + jsfileName + ".cjt");if (f029.exists == false) { alert("第一次运行此脚本或改变脚本文档名或路径,\n请点击主面版左下角的默认按钮,\n以便快速正确地建立各项参数值,\n尔后运行时便会自动导入上一次设置的参数");}f029.hidden = false;f029.encoding = "UTF-8";f029.open("r");var result = f029.read();var arr1 = new Array(0);arr1 = result.split("*");f029.close();f029.hidden = true;doc.rulerOrigin = [0, doc.height];appraw();var swaSpot = doc.spots;for (var i = 0; i < swaSpot.length; i += 1) { if (swaSpot[i]lorType == "ColorModel.REGISTRATION") { regName = swaSpot[i]; break; }}var win = new Window("dialog", "Ai_内角线生成器", undefined);win.spacing = 6;var panIcon1 = win.add("panel", undefined, "");panIcon1.orientation = "column";panIcon1.spacing = 0;panIcon1.alignment = ["fill", "fill"];panIcon1.graphics.backgroundColor = win.graphics.newBrush(win.graphics.BrushType.SOLID_COLOR, [0.15, 0.15, 0.15]);abIcon = "PNG\r\n\n\rIHDR=";var img1 = panIcon1.add("image", undefined, abIcon);img1.alignment = "center";var giIcon = panIcon1.add("group");giIcon.orientation = "column";giIcon.alignment = "center";giIcon.spacing = 2;var st11 = giIcon.add("statictext", undefined, "内角线生成器");st11.graphics.foregroundColor = win.graphics.newPen(win.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);var g1 = win.add("group");g1.alignment = "left";g1.alignChildren = ["left", "bottom"];g1.spacing = 3;var st11 = g1.add("statictext", undefined, "作用对象:");st11.alignment = "center";var rb11 = g1.add("radiobutton", undefined, "画板");rb11.value = eval(arr1[0]);var ddl11 = g1.add("dropdownlist", undefined, ["目前", "全部"]);ddl11.selection = arr1[1];var rb12 = g1.add("radiobutton", undefined, "选取");rb12.value = eval(arr1[2]);var ddl12 = g1.add("dropdownlist", undefined, ["含描边", "不含描边"]);ddl12.selection = arr1[3];rb11.onClick = function() { rb11.value = true; rb12.value = false;};rb12.onClick = function() { rb12.value = true; rb11.value = false;};var stNote = win.add("statictext", undefined, "※\"选取\"的有效作用对象包含编组及单一路径两种");stNote.graphics.foregroundColor = stNote.graphics.newPen(win.graphics.PenType.SOLID_COLOR, [1, 0, 0], 1);stNote.alignment = "right";var spacePan2 = win.add("panel", [0, 0, undefined, 3], "");spacePan2.alignment = "fill";var panel1 = win.add("panel", undefined, "相关选项与设置");panel1.alignment = ["fill", "fill"];panel1.alignChildren = "left";panel1.spacing = 5;var g2 = panel1.add("group");g2.alignChildren = ["left", "bottom"];g2.spacing = 3;var img21 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<¼IDATxÚb` `ÒýJJJ\trrr¤h¾téÒwïÞ9ÿÉïß¿ÿÔ¾dÄ7v§¼<\\BÍ,q£¡hCD° ðÀÙ(XïßOVì ràÀ¢5ÂÑÉ5 àÐ2ÆHzö3Q#±¡xb0é*.A1hìèèH]P%LÀ<zôè0ªù ê¬(pbrÀãÀvõTôR¥IEND®B`";var icon21 = g2.add("image", undefined, img21);icon21.alignment = "top";var cb21 = g2.add("checkbox", undefined, "置于新图层");cb21.value = eval(arr1[4]);var space21 = g2.add("statictext", undefined, "空");space21.visible = false;var img22 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<\rIDATxÚbd 6` \\â Í\n\n\nçHÒýáà ~xÿþ½!ß°~ýúÿØÀùóçÿïß¿±ÿ@ý,`¿`µ°°áÀ`6PNW11PPßÛ ¿äAêpÒÐÀ°[PáRb\"Ã÷°j> ¨V X°ÙödÁ0þ® ;bha0Þ0¦Çû÷8 ±9A¡ °!0Ízó磬Àd ÕßAK(Þi&@£«<é°øøxr±Áþ]°aà .(2BùÐ2TJ8 ¿4^l9IEND®B`";var icon22 = g2.add("image", undefined, img22);icon22.alignment = "top";var cb22 = g2.add("checkbox", undefined, "线粗细:");cb22.value = eval(arr1[5]);var et21 = g2.add("edittext", [0, 0, 60, 22], arr1[13]);et21.enabled = eval(arr1[6]);cb22.onClick = function() { if (cb22.value == true) { et21.enabled = true; } else { et21.enabled = false; } if (ddl52.selection == 0) { et21.text = 0.25; } else { if (ddl52.selection == 1) { et21.text = 0.08; } }};var g3 = panel1.add("group");g3.alignChildren = ["left", "bottom"];g3.spacing = 3;var img31 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<ßIDATxÚb` `Ò\r ù¢ ¤h¾ÏÀðá C!Ø ïçh|â0L (7fAä30`Ðêï'¨ùÓ ×\n á|CXqÏà´ °`SxàÀ8-aPP l 444`ÙÛÛcá5¤¾¾áÉ ß>D<ÈðäÁâ\r§ 2¼Åã=`¢F<`\rÿÿÿo(·12çË ¿@¨0kAé8Ì Y`s2!ß%'ëIEND®B`";var icon31 = g3.add("image", undefined, img31);icon31.alignment = "top";var cb31 = g3.add("checkbox", undefined, "加白色描边");cb31.value = eval(arr1[7]);var space31 = g3.add("statictext", undefined, "空");space31.visible = false;var img32 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<ÌIDATxÚbd N` l`2ÖAIº?|øÀüfÈþÿÿÿ;·Q\nÛÛ3980\\¸p¡°°,Ïq¸££# ºé·P|! [8rpp@Qa×ÿÿ ïOm±L T£ )C@)öÉÂpö;hÃ0L00UØòò BDºhÿû÷ïÿþÃ\\²PIIÉ@__¤lüèÑ£<Hpe0åyu¡õùIEND®B`";var icon32 = g3.add("image", undefined, img32);icon32.alignment = "top";var cb32 = g3.add("checkbox", undefined, "线长度:");cb32.value = eval(arr1[8]);var et31 = g3.add("edittext", [0, 0, 60, 22], arr1[14]);et31.enabled = eval(arr1[9]);cb32.onClick = function() { if (cb32.value == true) { et31.enabled = true; } else { et31.enabled = false; } if (ddl52.selection == 0) { et31.text = 14.173; } else { if (ddl52.selection == 1) { et31.text = 5; } }};var g4 = panel1.add("group");g4.alignChildren = ["left", "bottom"];g4.spacing = 3;var img42 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<ÖIDATxÚbd@ ` <`2æçççlÂÄáìýû÷ÿ'444ügA7ùã .Ä°Q~ÿ~0ýãÂpñ0`òûáCoàtþ¿Pä1 >ÿr98`1\t ³bs\t6/ qÆF&* ðÇÇ3pÙÛSf«¨â CÞê:##¬K(1zeÀ`\nyë ~\rû\r5[E7à ¨áuMz`é aIEND®B`";var icon42 = g4.add("image", undefined, img42);icon42.alignment = "top";var cb42 = g4.add("checkbox", undefined, "增加参考线");cb42.value = eval(arr1[16]);var space41 = g4.add("statictext", undefined, "空");space41.visible = false;var img41 = "PNG\r\n\n\rIHDR;mGútEXtSoftwareAdobe ImageReadyqÉe<*IDATxÚ¬1jPgâÕBl-ÄÎÒ¤°²0xɼz¯a£¤ ±3VJÀFEØøK\r³î&? 3Ì÷~ßÓGôÚ!r÷*ËòýµÃI¼×uýÜv]÷xlÛ>óO{PDQÈ㬮jYÖjoú0ÿg³»-úbæ¯+oÌ꺪ªZíÃpçyÄ0 ³~Û¶!MÓ¢($IÒRʲ\\?MÓ! äp)Â9dm3gβú¾'Ã0(MÓ©~·õây¢re·Î©àTU¥0 ¯Ì{WÀ0µ<ÏÈÛÚ?Á8§\\×u¢èÛ7äû>ÒÝWíy®Ä§´Y§uG̵#IEND®B`";var icon41 = g4.add("image", undefined, img41);icon41.alignment = "top";var cb41 = g4.add("checkbox", undefined, "偏移量:");cb41.value = eval(arr1[10]);var et41 = g4.add("edittext", [0, 0, 60, 22], arr1[15]);et41.enabled = eval(arr1[11]);cb41.onClick = function() { if (cb41.value == true) { et41.enabled = true; } else { et41.enabled = false; } et41.text = 0;};var g5 = panel1.add("group");g5.spacing = 6;g5.alignment = "left";g5.alignChildren = ["left", "bottom"];var g51 = g5.add("group");g51.orientation = "stack";var pgb = g51.add("progressbar", [0, 0, 168, 22], 0, undefined);pgb.alignment = "fill";var st511 = g51.add("statictext", undefined, "运行进度...");var st52 = g5.add("statictext", undefined, "单位:");st52.alignment = "center";var ddl52 = g5.add("dropdownlist", undefined, ["点", "毫米"]);ddl52.selection = arr1[12];ddl52.onChange = function() { if (ddl52.selection == 0) { et21.text = "0.25"; et31.text = "14.173"; } else { if (ddl52.selection == 1) { et21.text = "0.08"; et31.text = "5"; } } win.update();};var spacePan1 = win.add("panel", [0, 0, undefined, 3], "");spacePan1.alignment = "fill";var exeBtn = win.add("group");exeBtn.alignment = "center";var defaultBtn = exeBtn.add("button", [0, 0, 50, 25], "默认");var okBtn = exeBtn.add("button", [0, 0, 145, 25], "运行", { name: "ok"});var cancelBtn = exeBtn.add("button", [0, 0, 50, 25], "取消", { name: "cancel"});defaultBtn.onClick = function() { rb11.value = true; ddl11.selection = 0; rb12.value = false; ddl12.selection = 0; cb21.value = false; cb22.value = et21.enabled = false; et21.text = "0.25"; cb31.value = false; cb32.value = et31.enabled = false; et31.text = "14.173"; cb41.value = et41.enabled = false; et41.text = "0"; cb42.value = false; ddl52.selection = 0;};var pnSign = win.add("panel", undefined, "");pnSign.alignment = ["fill", "fill"];var giSign1 = pnSign.add("group");giSign1.spacing = 3;giSign1.orientation = "column";giSign1.alignChildren = "center";var giSign11 = giSign1.add("group");var cpcImg = "PNG\r\n\n\rIHDR";var imgSign = giSign11.add("image", undefined, cpcImg);var stSign = giSign11.add("statictext", undefined, "CPC中文印刷社区");var stSign2 = giSign1.add("statictext", undefined, "by calvin530126(#CJJS029scD)");pnSign.graphics.backgroundColor = win.graphics.newBrush(win.graphics.BrushType.SOLID_COLOR, [0.15, 0.15, 0.15]);stSign.graphics.foregroundColor = win.graphics.newPen(win.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);stSign2.graphics.foregroundColor = win.graphics.newPen(win.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);okBtn.onClick = function() { var f029 = new File(jsFolderPath + "/" + jsfileName + ".cjt"); f029.hidden = false; f029.encoding = "UTF-8"; f029.open("w"); f029.write(rb11.value + "*"); f029.write(ddl11.selection + "*"); f029.write(rb12.value + "*"); f029.write(ddl12.selection + "*"); f029.write(cb21.value + "*"); f029.write(cb22.value + "*"); f029.write(et21.enabled + "*"); f029.write(cb31.value + "*"); f029.write(cb32.value + "*"); f029.write(et31.enabled + "*"); f029.write(cb41.value + "*"); f029.write(et41.enabled + "*"); f029.write(ddl52.selection + "*"); f029.write(et21.text + "*"); f029.write(et31.text + "*"); f029.write(et41.text + "*"); f029.write(cb42.value + "*"); f029.close(); f029.hidden = true; main(); win.close();};win();win();function main() { if (cb21.value == true) { var newLayer = docyers.add(); newLayer = "内角线"; } if (ddl52.selection == 0) { lineL = Number(et31.text); lineW = Number(et21.text); offset = Number(et41.text); } else { if (ddl52.selection == 1) { lineL = Number(et31.text) * u; lineW = Number(et21.text) * u; offset = Number(et41.text) * u; } } if (rb11.value == true) { for (var i = 0; i < ab.length; i += 1) { if (ddl11.selection == 0) { var indexTem = docboards.getActiveArtboardIndex(); if (i != indexTem) { continue; } } ab.setActiveArtboardIndex(i); doc.rulerOrigin = [0, doc.height]; appraw(); var arrAbInfo = new Array(); arrAbInfo = ab[i]boardRect; abL = Number(arrAbInfo[0]); abT = Number(arrAbInfo[1]); abW = Math.abs(Number(arrAbInfo[2] - Number(arrAbInfo[0]))); abH = Math.abs(Number(arrAbInfo[3] - Number(arrAbInfo[1]))); if (cb41.value != true) { offset = 0; } var pi1 = doc.pathItems.add(); pi1.stroked = true; pi1.strokeColor = doc.swatches[regName]lor; pi1.filled = false; pi1.setEntirePath([ [-offset, -(lineL - offset)], [-offset, offset], [lineL - offset, offset] ]); pi1.strokeWidth = lineW; var gi1 = docItems.add(); gi1 = "内角线编组" + i; pi1.move(gi1, ElementPlacement.INSIDE); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate((abW - pi1.width) + (offset * 2), 0); pi1.rotate(-90); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate(0, -((abH - pi1.width) + (offset * 2))); pi1.rotate(-90); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate(-((abW - pi1.width) + (offset * 2)), 0); pi1.rotate(-90); if (cb31.value == true) { addWhiteStroke(); } if (cb42.value == true) { var pi2 = doc.pathItems.rectangle(abT + offset, abL - offset, abW + (offset * 2), abH + (offset * 2)); pi2.stroked = pi2.filled = false; pi2.zOrder(ZOrderMethod.SENDTOBACK); pi2.guides = true; } pgb.value = ((i + 1) / ab.length) * 100; win.update(); } doc.selection = null; } else { if (rb12.value == true) { if (doc.selection == 0) { alert("无选取对象,请重新操作..."); return false; } else { var n = 0; for (i = doc.selection.length - 1; i >= 0; i--) { if (doc.selection[i].typename != "GroupItem" && doc.selection[i].typename != "PathItem") { doc.selection[i].selected = false; } else { n++; } } if (n == doc.selection.length) { var arrSelect = new Array(0); for (i = doc.selection.length - 1; i >= 0; i--) { arrSelect.push(doc.selection[i]); doc.selection[i].selected = false; } var arrIncludeStroke = new Array(0); var arrUnincludeStroke = new Array(0); if (ddl12.selection == 0) { for (var i = 0; i < arrSelect.length; i += 1) { var indexTem = docboards.getActiveArtboardIndex(); ab.setActiveArtboardIndex(indexTem); activeAbInfo(); var artboartSize = doc.pathItems.rectangle(0, 0, abW, abH); artboartSize.stroked = artboartSize.filled = false; artboartSize.zOrder(ZOrderMethod.SENDTOBACK); artboartSize.guides = true; arrSelect[i].selected = true; var selectTem = arrSelect[i].duplicate(arrSelect[i], ElementPlacement.PLACEBEFORE); arrSelect[i].selected = false; selectTem.selected = true; app.executeMenuCommand("outline"); app.executeMenuCommand("Fit Artboard to selected Art"); selectTem.remove(); activeAbInfo(); var selectSize = doc.pathItems.rectangle(0, 0, abW, abH); selectSize.stroked = selectSize.filled = false; selectSize.zOrder(ZOrderMethod.SENDTOBACK); arrIncludeStroke.push(selectSize); pgb.value = ((i / 2) / arrSelect.length) * 100; win.update(); artboartSize.guides = false; artboartSize.selected = true; app.executeMenuCommand("Fit Artboard to selected Art"); artboartSize.remove(); } } if (ddl12.selection == 1) { for (var i = 0; i < arrSelect.length; i += 1) { var indexTem = docboards.getActiveArtboardIndex(); ab.setActiveArtboardIndex(indexTem); var selectTem = arrSelect[i].duplicate(arrSelect[i], ElementPlacement.PLACEBEFORE); selectTem.selected = true; app.executeMenuCommand("outline"); var set = "Set_StrokeNoColor"; var action1 = "Action_StrokeNoColor"; var actionStr1 = ["/version 3", "/name [ 17", "5365745f5374726f6b654e6f436f6c6f72", "]", "/isOpen 1", "/actionCount 1", "/action-1 {", "/name [ 20", "416374696f6e5f5374726f6b654e6f436f6c6f72", "]", "/keyIndex 0", "/colorIndex 0", "/isOpen 1", "/eventCount 1", "/event-1 {", "/useRulersIn1stQuadrant 0", "/internalName (ai_plugin_setColor)", "/localizedName [ 12", "e8aebee7bdaee9a29ce889b2", "]", "/isOpen 1", "/isOn 1", "/hasDialog 0", "/parameterCount 4", "/parameter-1 {", "/key 1768186740", "/showInPalette -1", "/type (ustring)", "/value [ 12", "e68f8fe8beb9e9a29ce889b2", "]", "}", "/parameter-2 {", "/key 1718185068", "/showInPalette -1", "/type (boolean)", "/value 0", "}", "/parameter-3 {", "/key 1836349808", "/showInPalette -1", "/type (enumerated)", "/name [ 3", "e697a0", "]", "/value -1", "}", "/parameter-4 {", "/key 1954115685", "/showInPalette -1", "/type (enumerated)", "/name [ 0", "", "]", "/value -1", "}", "}", "}"].join("\n"); createAction(actionStr1, set); app.loadAction(f161214); f161214.remove(); app.doScript(action1, set); app.unloadAction(set, ""); function createAction(act, set) { f161214 = new File("~/Desktop/" + set + ".aia"); f161214.open("w"); f161214.write(act); f161214.close(); f161214.hidden = true; } var indexTem = docboards.getActiveArtboardIndex(); ab.setActiveArtboardIndex(indexTem); activeAbInfo(); var artboartSize = doc.pathItems.rectangle(0, 0, abW, abH); artboartSize.stroked = artboartSize.filled = false; artboartSize.zOrder(ZOrderMethod.SENDTOBACK); artboartSize.guides = true; app.executeMenuCommand("Fit Artboard to selected Art"); selectTem.selected = false; activeAbInfo(); var selectSize = doc.pathItems.rectangle(0, 0, abW, abH); selectSize.stroked = selectSize.filled = false; selectSize.zOrder(ZOrderMethod.SENDTOBACK); arrIncludeStroke.push(selectSize); pgb.value = ((i / 2) / arrSelect.length) * 100; win.update(); artboartSize.guides = false; artboartSize.selected = true; app.executeMenuCommand("Fit Artboard to selected Art"); artboartSize.remove(); selectTem.remove(); } } for (var i = 0; i < arrSelect.length; i += 1) { sel = arrIncludeStroke[i]; var selInfo = new Array(0); if (ddl12.selection == 0) { selInfo = selntrolBounds; } else { if (ddl12.selection == 1) { selInfo = sel.geometricBounds; } } selL = selInfo[0]; selT = selInfo[1]; selW = Math.abs(selInfo[2] - selInfo[0]); selH = Math.abs(selInfo[3] - selInfo[1]); if (cb41.value != true) { offset = 0; } var pi1 = doc.pathItems.add(); pi1.stroked = true; pi1.strokeColor = doc.swatches[regName]lor; pi1.filled = false; pi1.setEntirePath([ [-offset, -(lineL - offset)], [-offset, offset], [lineL - offset, offset] ]); pi1.strokeWidth = lineW; var gi1 = docItems.add(); gi1 = "内角线编组" + i; pi1.move(gi1, ElementPlacement.INSIDE); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate((selW - pi1.width) + (offset * 2), 0); pi1.rotate(-90); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate(0, -((selH - pi1.width) + (offset * 2))); pi1.rotate(-90); pi1.duplicate(gi1, ElementPlacement.INSIDE); pi1.translate(-((selW - pi1.width) + (offset * 2)), 0); pi1.rotate(-90); gi1.translate(selL, selT); if (cb42.value == true) { if (cb41.value == false || et41.text == 0) { sel.guides = true; } else { if (cb41.value == true && et41.text != 0) { sel.width = sel.width + (offset * 2); sel.height = sel.height + (offset * 2); sel = sel + offset; sel.left = sel.left - offset; sel.guides = true; } } } else { sel.remove(); } if (cb31.value == true) { addWhiteStroke(); } pgb.value = (0.6 + ((i / 2) / arrIncludeStroke.length)) * 100; win.update(); } } } } } function activeAbInfo() { var arrAbInfo = new Array(); arrAbInfo = ab[indexTem]boardRect; abL = Number(arrAbInfo[0]); abT = Number(arrAbInfo[1]); abW = Math.abs(Number(arrAbInfo[2] - Number(arrAbInfo[0]))); abH = Math.abs(Number(arrAbInfo[3] - Number(arrAbInfo[1]))); doc.rulerOrigin = [0, doc.height]; } function addWhiteStroke() { var gi2 = docItems.add(); gi1.move(gi2, ElementPlacement.INSIDE); gi1.duplicate(gi2, ElementPlacement.INSIDE); gi1.zOrder(ZOrderMethod.SENDTOBACK); for (var k = 0; k < gi1.pathItems.length; k += 1) { if (ddl52.selection == 0) { gi1.pathItems[k].strokeWidth = Number(et21.text) * 3; } else { if (ddl52.selection == 1) { gi1.pathItems[k].strokeWidth = Number(et21.text) * 3 * u; } } gi1.pathItems[k].strokeColor = white; } }}2.作者答疑
如有疑问,请留言。
提示: 作者知了-联系方式1 提示: 作者知了-联系方式2
何为A站、B站、C站、D站、E站?
A站:AcFun,建站于2007年,早期是普通的动画连载的网站,AcFun取意于Anime Comic Fun,后来模仿日本niconico动画作出了类似的弹幕系统,可以说是中国二次元文化的发源地。发展至今,经历过多次关停,整改,人气已经日薄西山,不复当年之勇了。
B站:Bilibili原名Mikufans,由⑨bishi于2009年创建,由于当时AcFun自身不够稳定的原因,Mikufans为当时的动漫爱好者提供了一席之地。2010年1月24日更名为bilibili,并且建立了比A站更完善的弹幕系统,从此逐渐成为国内二次元行业的领头羊,再经历多轮融资后,逐渐综合化,全面化,不过也被网友吐槽B站是不是变了?
C站:C站的争议比较多,有人认为是名为『tucao』的弹幕网站,不过目前已经登录不上去了,有人把CCTV简称为C站,而有的人认为某不可言明的草XXX是C站......
D站:D站也就是dilidili,是一家专注于二次元的纯动漫视频网站,比起AB站,对动漫爱好者来说更加友好,你几乎可以在里面看到你想看的所有番剧。网站创办于2014年,原名是“无名小站”,后改名嘀哩嘀哩,目前网站活跃度已经超过A站,成为国内第二的动漫视频网站。
E站:E-Hentai,专注于同人本分享,目前国内上不去这里就不多说了。
免责声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请发送邮件举报,一经查实,本站将立刻删除。