C4D Python: Redshift IPR Start/Stop Control
-
Hi,
I'm trying to control the Redshift IPR with Python in the latest Cinema 4D and Redshift.
I've tried using command IDs like 1038653/1038655, 1038695/1038696, but they aren't working as expected. I know command ID 1038666 opens the IPR window, but there doesn't seem to be a way to get the window's instance to check if it's open.
Could someone provide the correct command IDs or reliable methods to start/stop the Redshift IPR via Python?
A working example would be very helpful!Thanks in advance!
Anthony
-
Hi @itstanthony you can use
c4d.CallCommand(1040239)
to toggle the start/stop of the Redshift IPR.
You can know such command ID by using the Script Log and doing the action you want to.Then to check if the command is active you can use
c4d.IsCommandChecked(1040239)
.Cheers,
Maxime. -
Hey @m_adam , thanks for that info. What about for commands that don't appear in the Script Log, such as 'Send snapshot to picture viewer'? Are those commands not possible to interact with programmatically?
Thanks,
Hogan