Skip to main content
Solved

Set Front Appearance Reference from fme_color

  • August 23, 2018
  • 3 replies
  • 237 views

hirooimaki
Contributor
Forum|alt.badge.img+3

Hi FME community.

I am trying to color my 3D object based on its fme_color attribute but I don't know how to do it.

Currently fme_color is set as cyan. So, if I can how this as 2D in the Inspector, it shows as cyan. However, if I switch to 3D, it becomes gray. I think this is a default color. I looked at the Front Appearance Reference and this setting is set as <inherited_or_default_appearance>.

If I can set the Front Appearance Reference as same as fme_color, then this 3D object will be cyan color. I used AppearanceSetter to manually set the Front Appearance Reference but I don't know how to change it with transformers.

If someone who knows how to do it, please share your knowledge.

Thank you in advance.

Hiroo

Best answer by takashi

Hi @hirooimaki, you can use the AppearanceStyler to create a set of attributes for appearance based on attributes of incoming feature (e.g. "fme_color"), then set the appearance to a 3D geometry with the AppearanceSetter.

In the case, you don't need to set color/texture parameters in the AppearanceSetter.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • August 23, 2018

Hi @hirooimaki, you can use the AppearanceStyler to create a set of attributes for appearance based on attributes of incoming feature (e.g. "fme_color"), then set the appearance to a 3D geometry with the AppearanceSetter.

In the case, you don't need to set color/texture parameters in the AppearanceSetter.


hirooimaki
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 11 replies
  • August 23, 2018

Thank you @takashi again. I could make it work. First I exposed fme_color using AttributeExposer and use it in the AppearanceStyler. That was tricky! I thought I could assign fme_color in the AppearanceSetter somehow. I attached my workspace image and my test 3D model with colors here (sorry about the Japanese description!)


takashi
Celebrity
  • 7843 replies
  • August 24, 2018

Thank you @takashi again. I could make it work. First I exposed fme_color using AttributeExposer and use it in the AppearanceStyler. That was tricky! I thought I could assign fme_color in the AppearanceSetter somehow. I attached my workspace image and my test 3D model with colors here (sorry about the Japanese description!)

Good to hear.

 

Tip: In the case, you could also expose "fme_color" in the Format Attributes tab - reader feature type, without using the AttributeExposer.