I also have this simple script that opens the Octane Node Editor of the selected object. Not sure if this would be needed.
- Code: Select all
def main():
materials=doc.GetMaterials()
obj =doc.GetActiveObject()
if not obj:
c4d.gui.MessageDialog("Please select an object or a material tag.")
return
objMaterial= obj.GetTag(c4d.Ttexture)
if objMaterial == None:
c4d.gui.MessageDialog("Selected object has not a material tag.")
c4d.CallButton(objMaterial.GetMaterial(), c4d.OCT_MATERIAL_NODE_EDITOR)
c4d.EventAdd()
if __name__=='__main__':
main()