Ejemplo n.º 1
0
    def configure_global(self):
        """
        Configure V-Ray global baking options
        """

        # Create default VRay bake options node
        # NOTE: Doesn't work in batch mode, assuming already exist
        # pm.mel.vrayShowDefaultBakeOptions()
        bake_options = PyNode('vrayDefaultBakeOptions')

        # Set global bake options
        # bake_options.setAttr('filenamePrefix', self.cur_version_string)
        bake_options.setAttr('outputTexturePath', self.output_texture_path)
Ejemplo n.º 2
0
    def configure_global(self):
        """
        Configure V-Ray global baking options
        """
        bake_options = PyNode('vrayDefaultBakeOptions')

        bake_options.setAttr('filenamePrefix', self.cur_version_string)
        bake_options.setAttr('outputTexturePath', self.output_texture_path)
        bake_options.setAttr('resolutionX', self.image_width)