# Applying a material to a specific Face within a Group

**URL:** <https://forums.sketchup.com/t/applying-a-material-to-a-specific-face-within-a-group/68733>\
**Category:** Ruby API\
**Created:** [May 18, 2018, 10:59pm UTC](https://forums.sketchup.com/t/applying-a-material-to-a-specific-face-within-a-group/68733 "2018-05-18T22:59:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [May 19, 2018, 12:27am UTC](https://forums.sketchup.com/t/applying-a-material-to-a-specific-face-within-a-group/68733/3 "2018-05-19T00:27:06Z")

</div>

> [@medeek](#):
>
> Is there an easy way or algorithm to somehow grab this cylindrical face?

We have just been discussing this (and painting with textures) in 2 recent threads this past week.

Ie …

> [@Texture inconsistent on the same component in different locations](https://forums.sketchup.com/t/texture-inconsistent-on-the-same-component-in-different-locations/67871/):
>
> Happy Friday, I have a question regarding textures on components using Ruby script. Please see the image below: [image] All three of these components are created using the same code, but the only difference is their positioning. The texture on the back-right component is how it is supposed to look, and the geometry for that component is based off the point [0,0,0]. But once the component is moved the texture gets distorted. The texture that I’m using is an .skm file that I created from a jpe…

… which is a continuation of …

> [@How Can I Copy a Projected Texture With Ruby Script](https://forums.sketchup.com/t/how-can-i-copy-a-projected-texture-with-ruby-script/65090):
>
> Hi all, In Sketchup I can manually make a texture one face1 “projected” and use the eyedropper tool to to copy that texture onto another face2. The texture is then already “projected” on face2. I want to do this same thing, but with ruby script. With ruby script I know how to apply a texture to face1 and use face1.set\_texture\_projection(face1.normal, true) to make the texture “projected”. But, I cannot find a way to copy that texture onto face2 and have it already be “projected.” Is there any …

---

_[View the full topic](https://forums.sketchup.com/t/applying-a-material-to-a-specific-face-within-a-group/68733)._
