将滤镜脚本应用到MeshLab中的选定曲面?

时间:2018-08-17 12:09:03

标签: xml scripting meshlab

Win 10,x64,MeshLab_64bit_fp v2016.12

我要在其上应用Perlin彩色滤光片的表面很多。我想对每个表面应用不同的颜色渐变。

由于我拥有大量的曲面,因此我研究了如何编写脚本。因此,我尝试通过过滤器脚本将以下已定义的过滤器应用于选定的曲面。

<!DOCTYPE FilterScript>
<FilterScript>
 <filter name="Perlin color">
  <Param tooltip="Sets the first color to mix with Perlin Noise function." r="255" g="0" name="color1" b="0" type="RichColor" a="255" description="Color 1:"/>
  <Param tooltip="Sets the second color to mix with Perlin Noise function." r="255" g="255" name="color2" b="0" type="RichColor" a="255" description="Color 2:"/>
  <Param tooltip="Frequency of the Perlin Noise function, expressed as multiples of mesh bbox (frequency 10 means a noise period of bbox diagonal / 10). High frequencies produces many small splashes of colours, while low frequencies produces few big splashes." name="freq" value="10" type="RichDynamicFloat" min="0.1" description="Frequency:" max="100"/>
  <Param y="0" tooltip="This values is the XYZ frequency offset of the Noise function (offset 1 means 1 period shift)." name="offset" type="RichPoint3f" x="0" z="0" description="Offset"/>
  <Param tooltip="If checked, only affects selected vertices" name="onSelected" value="false" type="RichBool" description="Only on selection"/>
 </filter>
</FilterScript>

通过...过滤器>显示当前过滤器脚本>打开脚本>应用脚本

结果是该脚本不执行任何操作。选定的表面保持不变。

我在这里想念东西吗?

0 个答案:

没有答案