For Apps Script, I'm trying to print the Hex code of the fill of text box.
Any ideas. I'm stuck once I get to .getSolidFill().
This line does not work for me: shape.getFill().getSolidFill().getColor().asRgbColor().asHexString())
function adjustFillColor() {
// // Open the presentation and get the slides in it.
let deck = SlidesApp.openById(masterDeckID);
let slides = deck.getSlides();
let masterSlide = slides[1];
let slide = masterSlide.duplicate();
slide.getShapes().forEach(shape => { // Iterate through every shape in the slide
if (shape.getFill().getSolidFill()!== null){
shape.getFill().setSolidFill("#000000");
}
});
};