AttribStringEdit
编辑字符串属性值。
属性可在相应的属性文本域中明确的指定。排除方式是通过插入一个字符(^)来指定的(这些属性会被排除)。 通过使该区域空白,或使用一个*符号,指定所有可用的属性。如果第一个属性前面添加了^符号,那么所有的属都会被传递,除了明确排除在外的。在其它情况下,没有属性会被指定,除非明确的将其包含在内。
From、 To参数是一些像str[1-9:2] or t[xyz]这样的字符串样式。From参数的样式也可以像这样:str* and str?.
Examples
From |
To |
Produces |
str1 str2 str3 |
tx ty tz |
tx ty tz |
str[1-3] |
t[xyz] |
tx ty tz |
str[1-3] |
tx ty tz rx |
tx ty tz |
str[1-2] |
tx ty |
tx ty str3 |
t[xyz] |
[XYZ]trans |
Xtrans Ytrans Ztrans |
bob* |
carol* |
Changes strings that start with bob to start with carol. |
*hand* |
*foot* |
Replaces the string hand with the string foot. |
*_* |
*(1)_*(0) |
Swap the matched text on either side of the underscore. |
Assuming an input of str1 str2 str3:
str? |
t? |
t1 t2 t3 |
* |
op:* |
op:str1 op:str2 op:str3 |
*r* |
*ring* |
string1 string2 string3 |
*[1-3:2] |
foot[11-13:2] |
foot11 str2 foot13 |
* |
string[3,1,2] |
string3 string1 string2 |
Parameters
Attributes
Detail |
要编辑的字符串类detail属性。 |
Primitives |
要编辑的字符串类Primitive属性。 |
Points |
要编辑的字符串类点属性。 |
Vertices |
要编辑的字符串类顶点属性。 |
Editor
Number of Filters |
此SOP可以有多个搜索/替换的样式,也叫过滤。此参数显示了有多少过滤器会被创建。点击+或-按钮添加更多过滤器,或移除已存在的一个。默认,当创建该SOP时,会添加单个过滤,起始值为0.序列的过滤器会被命名为1,2等。 |
Filter x |
禁用过滤。如果禁用,特定的搜索/替换样式不会在给定的字符串上运行。 |
Use Regular Expressions |
此会使用扩展的Perl规则的表达式语法来执行字符串的替换,而非使用Houdini的样式替换语法。 |
Global |
当开启此项,From样式会对字符串中每此出现进行替换。当关闭,只对第一次出现进行替换。 |
From |
要重命名的字符串样式。 |
To |
用于字符串的替换样式。 |