setAttr.rootElement

Last update: 2023-09-28
  • Created for:
  • Developer
    User

Set attributes to the FXG Root element.

setAttr.rootElement={ *attributeName*= *attributeValue*%26 *attributeName*= *attributeValue*}

This command can manipulate the attributes of the root element.

Example

If you have the following root element:

<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">

After applying the following command:

setAttr.rootElement={viewHeight=300%26viewWidth=200}

The root element is now changed to the following:

<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">

On this page