Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. Tags
    3. foundation
    Log in to post

    • SOLVED CloseDocument ?
      Cinema 4D Development • python foundation • • indexofrefraction  

      2
      0
      Votes
      2
      Posts
      31
      Views

      Just check it manually: if currDoc.GetChanged() : c4d.gui.MessageDialog(c4d.plugins.GeLoadString(IDS_MSG_PROJECTCHANGED)) else : c4d.documents.KillDocument(currDoc) # works but ignores change status
    • SOLVED Plugin ID Collision starting by Itself
      Cinema 4D Development • python classic api foundation • • kosmos3d  

      3
      0
      Votes
      3
      Posts
      25
      Views

      M

      hi, no problem. By the way, the first register. The second show the collide message so it can't register. But that doesn't unload the first one. That's why your plugin was still working. Cheers, Manuel
    • W

      SOLVED problem with loading plugin in python_init.py
      Cinema 4D Development • python foundation • • wob  

      3
      0
      Votes
      3
      Posts
      43
      Views

      W

      @m_adam it's strange, but this small script works fine without any problems with cinema 4d s22. cinema 4d r20 show this error only.
    • W

      SOLVED any way to close cinema 4d from the python script
      Cinema 4D Development • python foundation • • wob  

      4
      0
      Votes
      4
      Posts
      66
      Views

      M

      Hi @wob there is noting built-in for that in Cinema 4D. but you can use the regular python way to kill the current process import signal import os os.kill(os.getpid(), signal.SIGTERM) But I just let you know, that it may be useless by nature python should be pretty good at not creating any memory leak, and should free the data as soon as possible, moreover your approach ( I don't know the whole pipeline) but may also be a big issue for a user since this will clause Cinema 4D without asking for saving. People may lose their work. So I really encourage you to be very careful with the use of this. Cheers, Maxime.
    • W

      SOLVED pop-up dialog windows and c4dpy : the problem
      Cinema 4D Development • python foundation • • wob  

      3
      0
      Votes
      3
      Posts
      60
      Views

      M

      Hi @wob unfortunately this is not possible, c4dpy is a regular Cinema 4D executed as command line with the NoGui, and as all NoGui Cinema 4D execution, GeDialog is disabled. So its a limitation, and as said by zipit there is no Tkinter shipped with Cinema 4D in order to force people to use Cinema 4D dialog. So possible workarounds are: Install pip and install any 3rd party GUI module (but this is not officially supported by Cinema 4D so you may have some odd issues, but it should work). Execute a python script before from a system python installation that will create the Dialog and later execute c4dpy to do the Cinema 4D work. Cheers, Maxime.
    • G

      SOLVED UserData Insert New Data
      Cinema 4D Development • python r20 foundation • • geese780  

      4
      0
      Votes
      4
      Posts
      86
      Views

      G

      Hey Guys! I think I figured it out! Will resoond if there's any questions! Cheers! MattG
    • M

      SOLVED Keyframing a property using python.
      Cinema 4D Development • python classic api r19 foundation • • martijnlambada  

      3
      0
      Votes
      3
      Posts
      139
      Views

      M

      Hi Manual, Thanks for your help! Next time I will use the 'ask question' when posting a question. You code does exactly what I need, much appreciated! Cheers, Martijn
    • A

      SOLVED AttributeError: 'list' object has no attribute 'FindTrack'
      Cinema 4D Development • python classic api foundation • • andmotion  

      10
      0
      Votes
      10
      Posts
      232
      Views

      A

      @m_magalhaes Thanks. Next time I will follow the instruction. Thanks
    • F

      SOLVED Is there an online doc with all the 'id list' / 'type name' for the R20 ?
      Cinema 4D Development • sdk api issue documentation foundation • • fransua  

      3
      0
      Votes
      3
      Posts
      241
      Views

      M

      Hi @Fransua welcome in the plugincafe community. Do not worry since it's your first post but please read and follow these rules (I've setup your post correctly) How to Post Questions especially the tagging part. Q&A New Functionality. Unfortunately, a complete list is not available for the moment. But if you are looking only for object there is this page Object Types and Fields Object Types which refer to all symbols available to describe an object. To know a specific object id, you can drag and drop this object/element to the console, for more information see Python Console, Scene Elements. Finally, you can also retrieve for the full list of id by their type with c4d.plugins.FilterPluginList Cheers, Maxime.
    • N

      SOLVED Tag GetInfo() help
      Cinema 4D Development • classic api foundation • • noseman  

      4
      0
      Votes
      4
      Posts
      330
      Views

      N

      @m_adam Great info. Thanks Maxime!
    • K

      SOLVED Save variables during current session (until C4D is closed)
      Cinema 4D Development • python foundation • • kisaf  

      7
      0
      Votes
      7
      Posts
      504
      Views

      K

      Thank you very much guys! I think that plugin will be better solution then script in this case. Cheers
    • K

      SOLVED Do Cinema 4D and c4dpy use different lists of plugins?
      Cinema 4D Development • r20 issue bug report foundation bug fixed • • kisaf  

      4
      0
      Votes
      4
      Posts
      290
      Views

      M

      This issue is now fixed in R21. Cheers, Maxime.
    • SOLVED Viewport playback thread
      Cinema 4D Development • c++ foundation • • WickedP  

      2
      0
      Votes
      2
      Posts
      211
      Views

      M

      Hi @WickedP, actually all the drawing stuff is done in the main thread. In the next topic, you can find all the information about how the scene playback could be done in python https://plugincafe.maxon.net/topic/10292/13784_playpause-control-via-python/3. If you have any question please let me know, and be more specific about what you try to achieve. Cheers, Maxime.
    • K

      SOLVED Pipeline integration
      Cinema 4D Development • python sdk foundation • • knekke  

      8
      0
      Votes
      8
      Posts
      725
      Views

      M

      Because you didn't insert the actual renderer: InsertVideoPost() BaseVideoPost
    • P

      SOLVED What message or Id do I get when the user select a tab in my dialog?
      Cinema 4D Development • python foundation • • pim  

      3
      0
      Votes
      3
      Posts
      406
      Views

      P

      Thank you! In future I will set the tags.
    • SOLVED Miscellaneous questions about "BaseContainer","DescID" etc
      Cinema 4D Development • python sdk api foundation • • eZioPan  

      3
      0
      Votes
      3
      Posts
      519
      Views

      @s_bach, thank you, I'll start to do some hard reading!
    • SOLVED Underlying of "doc" and "op" ?
      Cinema 4D Development • python r20 r19 foundation • • eZioPan  

      8
      0
      Votes
      8
      Posts
      942
      Views

      @c4ds, don’t worry! Every steps (even the off-road one) make some progress, right? I appreciate the way you focusing on the problem solving, which I believe is also the wonderful thing of this forum: we do our best to solving the problem itself, discussing about the better/more accurate answers rather than “who is right, who is wrong”. Last but not least, thank you for taking time to reply! ;)