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的​ xyrotationscaleX ​和​ scaleY,並覆寫任何現有的值。

recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49