@m_magalhaes Thank you, this is very helpful and does what I was looking for!
I can't seem to find GetDescription() in the API docs for GvNode or BaseList2D. Would there be a reason for this?
I'd like to retrieve parameter information from Redshift Shader nodes.
So far I've gota BaseContainer and then accessed IDs and values with GvNode.GetIndexId() and GvNode.Get DataId()
The returned IDs are numbers e.g 10047. How can I retrieve it's corresponding variable name e.g c4d.REDSHIFT_SHADER_MATERIAL_SHADOW_OPACITY
How can I retrieve further information about the parameter (It's Description?) to find it's default value, min/max values, label etc?
I've solved my 2nd issue which is good news.
I have a general c4d api question which I'll post here to avoid spam:
I'm calling c4d.documents.SaveDocument() with a new filepath, expecting this to work like a 'save as' command with the open scene becoming this new file.
However it doesn't I've had to do this workaround, which seems strange?
scene = c4d.documents.GetActiveDocument()
c4d.documents.SaveDocument(scene, newpath, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, c4d.FORMAT_C4DEXPORT)
@fwilleke80 - I was just hoping to avoid rewriting existing code I have working in Houdini/Nuke, as it's 80% ui-building and cleanly shared between implementations. I've also never used the c4d python api and don't use C4D at all.
@a_block Thanks for the help. Houdini/Nuke both use Python27 with PySide2 although I'm not sure of the details
I'm creating a QApplication and then a QDialog but I can't seem to close the QApplication at all when the dialog is closed?
This means even when C4D is closed normally it's still running in the background and needs to be force-quit. Any suggestions appreciated
I'm coming to C4D scriptin from a Houdini background. I've made a project loader/saver dialog which is working in Houdini/Nuke (they both ship with PySide2) and would like to use the interface in C4D.
On copying the PySide2 lib from the Houdini site-packages I'm hit with DLL errors. It also seems PySide2 is not available as a wheel or using pip with Python27?
My workaround has been to install PySide into the C4D PYTHONPATH (which works fine) and use Qt.py for compatibility, but I'm wondering if anyone has successfully managed to use PySide2 with C4D?