On 27/01/2017 at 13:37, xxxxxxxx wrote:
If I use the following code in a Python Script, the object's type (Cube, Sphere, etc) will print to the console:
doc = c4d.documents.GetActiveDocument() obj = doc.GetActiveObject() obj_type = obj.GetType() command_name = c4d.GetCommandName(obj_type) print command_name
However, if I put the same code in a Python expression - nothing prints.
Is there a reason or workaround for this?