Skip to main content
Participant
April 14, 2020
Answered

ステート機能を使うと意図しないアセットが書き出される

  • April 14, 2020
  • 1 reply
  • 204 views

コンポーネンツのステート機能を使って、表示を切り替えたオブジェクトを書き出し設定した場合、本来のアセットとは別にアセット名の後にステート状態が付加された別のファイルが書き出されます。これは仕様でしょうか?

 

例: ic_buttonという名称のオブジェクトをPNGで書き出し。ic_buttonにはactiveという名前のステートを設定していて、アセットとしてはactive状態のものが欲しい。

 

結果、書き出されるファイルは、ic_button.pngとic_button(active).pngというファイルの2種類。後者は意図しないファイルで不要なもの。

    This topic has been closed for replies.
    Correct answer HARSHIKA_VERMA

    Thanks for sharing the steps and the video. We have tested this at our end on macOS and it looks like this is how the feature works. I would suggest submitting a feature request here: https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests providing all the details so that our engineering folks can look into your request.

     

    Hope it helps.

     

    Thanks,

    Harshika

    1 reply

    HARSHIKA_VERMA
    Community Manager
    Community Manager
    April 14, 2020

    Hi there,

     

    Thank you for reaching out. I am unable to reproduce the issue at my end on windows machine. 

     

    These are the steps that i followed.

     

    • Created a button and make it as Component.
    • Added an active state to the component in which the color of the component changes.
    • Exported the component as PNG designed at 1x.

     

    Result- Only Active state is exported.

     

    Please share a short video if you're following a different workflow. I will try my best to help.

     

    Thanks,

    Harshika

    Participant
    April 15, 2020

    Hi,

     

    My experience goes something like this.

     

    1. Create a button and make it a component.

    2. The button has two states. One is active and the other is inactive.

    3. Duplicate the button.

    4. The first button is in the active state and the other one is in the inactive state.

    5. The names are "button_on" and "button_off", respectively. The name of the master component is "button".

    6. Specify each of them to be exported, and then export them in PNG format.

     

    Result:

    Four files will be written out.

     

    button_on.png
    button_off.png
    button_on(active).png
    button_off(button).png

     

    I didn't expect four files to be written out, and two are unnecessary. The naming is also not intended. If this is the specification, then I have to avoid the state feature to create the assets I need for development.

     

    Thanks,

     

     

     

    HARSHIKA_VERMA
    Community Manager
    HARSHIKA_VERMACommunity ManagerCorrect answer
    Community Manager
    April 16, 2020

    Thanks for sharing the steps and the video. We have tested this at our end on macOS and it looks like this is how the feature works. I would suggest submitting a feature request here: https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests providing all the details so that our engineering folks can look into your request.

     

    Hope it helps.

     

    Thanks,

    Harshika