def showRoomLayout(self, showCeilings=True, showWalls=True, showFloors=True): for np in self.scene.scene.findAllMatches( '**/layouts/**/render-semantics/*c'): if showCeilings: np.show() else: np.hide() for np in self.scene.scene.findAllMatches( '**/layouts/**/render-semantics/*w'): if showWalls: np.show() else: np.hide() for np in self.scene.scene.findAllMatches( '**/layouts/**/render-semantics/*f'): if showFloors: np.show() else: np.hide()
def showRoomLayout(self, showCeilings=True, showWalls=True, showFloors=True): for np in self.scene.scene.findAllMatches('**/layouts/**/render/*c'): if showCeilings: np.show(self.cameraMask) else: np.hide(BitMask32.allOn()) for np in self.scene.scene.findAllMatches('**/layouts/**/render/*w'): if showWalls: np.show(self.cameraMask) else: np.hide(BitMask32.allOn()) for np in self.scene.scene.findAllMatches('**/layouts/**/render/*f'): if showFloors: np.show(self.cameraMask) else: np.hide(BitMask32.allOn())
def __mesh_colour_callback(self, dc: DynamicColour, np: NodePath) -> None: if dc.visible: np.show() else: np.hide() np.set_color(LVecBase4f(*dc()), 1)