setAttr setattr
为给定的s7:elementID设置任意属性。
setAttr.elementID={ *attributeName*= *attributeValue*, *attributeName*= *AttributeValue*…}
如果FXG节点元素定义了s7:elementID
,则可以处理该节点的属性。 您可以根据需要设置任意数量的属性/值对。 属性不需要在FXG中定义,但是它必须对节点元素有效。 {}
之间的所有值都必须进行转义。
示例 section-9c37470d5f0349e5b0a97291782cb7a6
假定为BitmapGraphic
节点定义了s7:elementID="Group1"
特性,则以下内容有效:
&setAttr.Group1={x=250%26y=170%26rotation=90%26scaleX=1%26scaleY=0.5}
此示例为BitmapGraphic
设置 x、y、rotation、scaleX 和 scaleY 并覆盖任何现有值。
recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49