Skip to main content
Solved

Help with AppearanceSetter


todd_davis
Influencer
Forum|alt.badge.img+22

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.

View original
Did this help you find an answer to your question?

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 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+22
  • Author
  • Influencer
  • August 23, 2018

Thanks @DaveAtSafe.

 

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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings