Camera Commands
-
On 23/08/2018 at 08:52, xxxxxxxx wrote:
I'm not sure how to activate/deactivate camera commands with python. Do I need to get the active basedraw and use c4d.BaseList2D.__setitem__() to set the state for things like Object Mode, Cursor Mode, etc?
I see that in the symbols there is IDS_CAMERACOMMAND_OBJECTMODE but i'm not sure where to plug that into toggle on and off?
Thank you
-
On 24/08/2018 at 05:31, xxxxxxxx wrote:
Hello,
these commands are called with CallCommand(). But the ID you found is just the ID of the resource string, not the one of the actual command you need.
The command IDs can be found either by opening the Script Log (menu Script) and afterwards calling the needed command from menu. Or you can use the Customize Commands dialog (menu Window -> Customization).
For Object Mode it is:c4d.CallCommand(440000094) # camera object mode
-
On 24/08/2018 at 07:32, xxxxxxxx wrote:
Thanks for the reply Andreas. Is there a way to check if the Camera Object Mode is active too? I'm pretty sure that can't be done with the Call Commands correct?
for example:
if Camera Object Mode != Active:
Make Active -
On 24/08/2018 at 07:36, xxxxxxxx wrote:
You can use IsCommandChecked() for this.
-
On 24/08/2018 at 09:21, xxxxxxxx wrote:
Perfect, Thank You!