I’m working on a Cinema 4D + Octane Render project and need help modifying the "Import Type" button parameters of an ImageTexture node. Specifically, I want to automate or script the selection of different import types , but I can’t figure out how to access or modify this button’s settings through the Python.
I understand that Octane-related topics may not be suitable for this forum, but I've been struggling with this issue for a long time and really need help.
This is my code, but it's not working as expected.
import c4d
def main():
mat = doc.GetActiveMaterial()
shader = mat.GetFirstShader()
ImportType = c4d.DescID(c4d.DescLevel(1139, c4d.DTYPE_BUTTON, 0))
importValue = shader.GetParameter(ImportType, c4d.DESCFLAGS_GET_0)
shader.SetParameter(ImportType, 2, c4d.DESCFLAGS_SET_0)
c4d.EventAdd()
if __name__ == '__main__':
main()