# Begin scene editing
self.session.BeginSceneEdit()
# Edit the material
self.scene.Parse(pyluxcore.Properties().
Set(pyluxcore.Property("scene.materials.shell.type", ["mirror"])).
Set(pyluxcore.Property("scene.materials.shell.kr", [0.75, 0.75, 0.75])))
# To remove unreferenced constant textures defined implicitely
self.scene.RemoveUnusedTextures()
# To remove all unreferenced image maps (note: the order of call does matter)
self.scene.RemoveUnusedImageMaps()
# End scene editing
self.session.EndSceneEdit()
i have been trying to use the command
UpdateObjectMaterial()
but getting error RuntimeError : Unknown object in Scene::UpdateObjectMaterial(): what should i be passing as the object name if i have an object described below
MentalArray wrote: ↑Sat Oct 03, 2020 12:19 pm
i have been trying to use the command
UpdateObjectMaterial()
but getting error RuntimeError : Unknown object in Scene::UpdateObjectMaterial(): what should i be passing as the object name if i have an object described below
MentalArray wrote: ↑Sat Oct 03, 2020 3:53 pm
hi yes i did use that and i used the mat name and get the error material now
this is running in c# python net 3.7
You are also missing a "+ Environment.NewLine" from the last "scene.materials.whitematte.id" property (but as far as I remember this shouldn't be a problem anymore).
Support LuxCoreRender project with salts and bounties