Skip to content

Octane Save material to MatLib error #14

@luisfos

Description

@luisfos

errors on adding octane material to library.
adding karma material builder works fine

steps:
new scenefile, H21.0.440 + octane
create new octane material builder in /mat
right click -> save material to matlib

doesn't complete, adds the thumbnail scene and gives this error:

Traceback (most recent call last):
  File "<stdin>", line 15, in <module>
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\utils\rc_calls.py", line 16, in save_material
    panel.save_asset()
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\panel\panel.py", line 663, in save_asset
    self.get_material_info_user(sel)
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\panel\panel.py", line 695, in get_material_info_user
    self.material_model.add_asset(
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\core\library.py", line 378, in add_asset
    if handler.save_node(node, new_mat.mat_id, False):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\nodes.py", line 334, in save_node
    val = self.save_node_octane(node, asset_id, update)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\nodes.py", line 544, in save_node_octane
    return thumber.create_thumb_octane(node, asset_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\thumbs.py", line 276, in create_thumb_octane
    sc = thumbnail_scene.ThumbNailScene("Octane", self._preferences.ballmode)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\thumbnail_scene.py", line 67, in __init__
    self.build_scene()
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\thumbnail_scene.py", line 134, in build_scene
    self.build_lights()
  File "C:\Users/luisf/Documents/houCustom/egMatLib/scripts/python\matlib\render\thumbnail_scene.py", line 335, in build_lights
    target.parm("parmKernel").set(1)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'set'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions