Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
here you go:
https://plugincafe.maxon.net/topic/10784/14228_autocomplete-for-pycharm/2
can't test it right now, but this should do the trick.
you'll need to install these packages to your c4d installation to make it work
import win32gui import win32ui import win32co from pynput.keyboard import Key, Controller handle = win32gui.FindWindow(0, "Texture Manager") try: if handle: keyboard = Controller() win32gui.SetForegroundWindow(handle) keyboard.press(Key.ctrl) keyboard.press(w) keyboard.release(Key.ctrl) keyboard.press(w) except: pass
The default python generator returns a parametric object (c4d.Ocube). So you have to convert it to a editable poly in the generator itself. So you don't need a cso in your script but in the generator when using parametric objects.
Python Generator
import c4d #Welcome to the world of Python def main(): c = c4d.BaseObject(c4d.Ocube) return c4d.utils.SendModelingCommand(command = c4d.MCOMMAND_CURRENTSTATETOOBJECT,list = [c], bc = c4d.BaseContainer(), mode = c4d.MODELINGCOMMANDMODE_ALL, doc = doc, flags = 0)[0]
script
import c4d doc = c4d.documents.GetActiveDocument() gen =doc.GetActiveObject() print gen.GetCache()
forget about it. i removed the c4d.OBJECT_INPUT flag during development and forgot to add it back.