setAttr.rootElement setattr-rootelement
将属性设置为FXG根元素。
setAttr.rootElement={ *attributeName*= *attributeValue*%26 *attributeName*= *attributeValue*}
此命令可以处理根元素的属性。
示例 section-2758a6e316c34b99b13b02147e5973bb
如果您具有以下根元素:
<Graphic version="1.0" viewHeight="692" viewWidth="792" s7:appVersion="1.0.0.11" ai:appVersion="14.0.0.367" d:id="1" xmlns="http://ns.adobe.com/fxg/2008" xmlns:ai="http://ns.adobe.com/ai/2008" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:s7="http://ns.adobe.com/S7FXG/2008">
应用以下命令后:
setAttr.rootElement={viewHeight=300%26viewWidth=200}
根元素现在更改为以下内容:
<Graphic xmlns="http://ns.adobe.com/fxg/2008" xmlns:ai="http://ns.adobe.com/ai/2008" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:s7="http://ns.adobe.com/S7FXG/2008" ai:appVersion="14.0.0.367" d:id="1" s7:appVersion="1.0.0.11" version="1.0" viewHeight="300" viewWidth="200">