Skip to main content
Solved

Help with AppearanceSetter

  • August 23, 2018
  • 2 replies
  • 160 views

todd_davis
Influencer
Forum|alt.badge.img+23

Hi,

I am new to the appearance setter and while I having no trouble applying a colour using the appearancesetter, I am having trouble applying a texture. Can someone please me show me how?

Attached is a FFS file with 9 roof geometries and 9 images, both having a _count attribute that references them to one another.

Thanks is advance,

Todd

 

Best answer by daveatsafe

Hi @todd_davis,

The AppearanceSetter matches the Raster attribute to a Geometry trait, so the first step is to set _count as a trait using a GeometryPropertySetter transformer. Then you can use the AppearanceSetter with the Appearance join attribute and Geometry join trait set to _count.

I also added an AppearanceRemover to remove the existing appearances on the mesh parts, to avoid having two appearances at different hierarchy levels.

setappearance.fmw

In your data you seem to have two rasters with _count = 2 and none with _count = 7, so the geometry with _count = 7 is being rejected from the AppearanceSetter because it has no match.

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.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • August 23, 2018

Hi @todd_davis,

The AppearanceSetter matches the Raster attribute to a Geometry trait, so the first step is to set _count as a trait using a GeometryPropertySetter transformer. Then you can use the AppearanceSetter with the Appearance join attribute and Geometry join trait set to _count.

I also added an AppearanceRemover to remove the existing appearances on the mesh parts, to avoid having two appearances at different hierarchy levels.

setappearance.fmw

In your data you seem to have two rasters with _count = 2 and none with _count = 7, so the geometry with _count = 7 is being rejected from the AppearanceSetter because it has no match.


todd_davis
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • 313 replies
  • August 23, 2018

Thanks @DaveAtSafe.

 

I wouldn't have figured that out quickly... Cheers