Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Home
    2. Tags
    3. python
    Log in to post
    • All categories
    • B

      Draw Methods doesn't work on GeUserArea

      Cinema 4D SDK
      • r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      102
      Views

      B

      @zipit

      Thanks for pointing it out. It now works as expected.

    • SwinnS

      Python Tag not updating

      Cinema 4D SDK
      • python • • Swinn
      9
      0
      Votes
      9
      Posts
      295
      Views

      M

      make sure to pass a str value aka str(yourMessage)

      if this doesn't solve the issue open a new topic πŸ™‚

      Cheers,
      Maxime

    • r_giganteR

      BaseDraw known issues in S22

      Cinema 4D SDK
      • windows macos c++ python • • r_gigante
      1
      1
      Votes
      1
      Posts
      323
      Views

      No one has replied

    • S

      Setting coordinates for selected faces (Python - Beginner)

      General Talk
      • python • • SteveLim
      9
      0
      Votes
      9
      Posts
      510
      Views

      M

      You could also retrieve the current matrix of the gizmo with BaseObject.GetModelingAxis.

      Cheers,
      Maxime

    • D

      animation disregarded after toolplugin

      Cinema 4D SDK
      • python r20 • • DavidWeidemann
      8
      0
      Votes
      8
      Posts
      251
      Views

      D

      β›…
      But I appreciate that you where trying to make things more streamlined 😊

    • K

      Generators, Materials, Undo's, Oh My!

      Cinema 4D SDK
      • python • • kvb
      12
      0
      Votes
      12
      Posts
      347
      Views

      ManuelM

      the whole thread is the answer anyway πŸ™‚

    • mrpinouxM

      Visibility Toggle

      Cinema 4D SDK
      • • • mrpinoux
      6
      0
      Votes
      6
      Posts
      361
      Views

      ManuelM

      hi,

      you already opened this thread, asking for the question, I've answer there. Please, stop asking the same question on different threads and continu on the linked one.

      Cheers,
      Manuel

    • mrpinouxM

      Solo Toggle

      Cinema 4D SDK
      • • • mrpinoux
      7
      0
      Votes
      7
      Posts
      404
      Views

      M

      Hi the CallCommand is the correct way to go.
      And @Cairyn it's in the Snap module because it uses some logic that is already implemented in the snap module such as the enabling state or other internal parameters storage logic. So using the CallCommand make sure everything is setup correctly.

      Note that in the end the solo things are only setting/clearing the NBIT_EHIDE of objects.

      Cheers,
      Maxime.

    • T

      Python script for Rectangle Selection with options

      General Talk
      • • • Tennet
      4
      0
      Votes
      4
      Posts
      228
      Views

      T

      Hi Manuel and @rb_rodrigo,

      Many thanks for the tips about the Python console and help with the code. I'm a beginner (not even that!) in scripting, so much appreciated. It works as expected now!

      Cheers,
      Frederik

    • chuanzhenC

      About BaseView.WC()

      Cinema 4D SDK
      • python • • chuanzhen
      4
      0
      Votes
      4
      Posts
      195
      Views

      M

      @kikizg Yes we are aware of it and it's already reported.

      Thanks for you feedback, if you find other weird stuff, please post them.
      Cheers,
      Maxime.

    • I

      Faster way of checking if dialog has closed?

      Cinema 4D SDK
      • python • • iluxa7k
      8
      0
      Votes
      8
      Posts
      369
      Views

      M

      @iluxa7k said in Faster way of checking if dialog has closed?:

      LP_c_long

      Long story short it's a pointer http://makble.com/the-story-of-lpclong, and I think the method provided by Zipit is the best one, since as he said there is no way to control the behavior of an external (from your plugin) GeDialog.

      Cheers,
      Maxime.

    • CairynC

      BaseMaterial Constructor not returning subclasses - bug?

      Cinema 4D SDK
      • python r21 • • Cairyn
      5
      0
      Votes
      5
      Posts
      139
      Views

      M

      Hi Cayring this is indeed a bug I'm going to report them and fix them (both for BaseMaterial and shader) as soon as possible πŸ™‚

      If you have other cases like that please report them.

      I set the topic as solved, I will bump this topic once the fix will be available.

      Cheers,
      Maxime.

    • B

      Real Time or Live "Edge to Spline" Object?

      Cinema 4D SDK
      • r21 python • • bentraje
      4
      0
      Votes
      4
      Posts
      138
      Views

      B

      @PluginStudent and @m_adam

      The plugin from @noseman works.
      It works for now in my use case, but correct me if I'm wrong it cannot have a priority parameter because it is a generator (?).

      Regards,
      Ben

    • CairynC

      Identity of C4D objects in Python

      Cinema 4D SDK
      • • • Cairyn
      6
      0
      Votes
      6
      Posts
      775
      Views

      CairynC

      @m_adam Thank you for the confirmation and the reading suggestions.

      Just for context, this is a general conceptual question and not connected to a specific code issue. I noticed the behavior while doing some test scripts with id() and is. It is worth noting that these Python properties need to be used carefully in concert with C4D objects.

      (I wouldn't exactly recommend using pointer comparisons in C++ either πŸ˜‰ )

      I will include an "advanced" chapter in my Python/C4D book to mention this.

    • ?

      Why are my Relative Transformation Values not 0?

      Cinema 4D SDK
      • python r21 • • A Former User
      11
      0
      Votes
      11
      Posts
      159
      Views

      P

      The source code of the C++ version of CompareFloatTolerant() is actually available in the frameworks\cinema.framework\source\ge_ieee.cpp and/or \frameworks\core.framework\source\maxon\general_math.cpp file of the C++ SDK. I assume the Python version just calls the C++ function.

    • CairynC

      GetLayerObjectRoot and GeListHead

      Cinema 4D SDK
      • python r21 classic api • • Cairyn
      8
      0
      Votes
      8
      Posts
      243
      Views

      CairynC

      Thanks for the confirmation. I shall treat the extra link directions as nonexistent then πŸ˜‰

    • intenditoreI

      UI, Resource Descripion and all those .h, .str, .res

      Cinema 4D SDK
      • • • intenditore
      11
      0
      Votes
      11
      Posts
      482
      Views

      intenditoreI

      Brah... Third time spent fighting with stupid typos! :
      @PluginStudent @zipit @r_gigante many thanks! I didn't assume you are using the same system inside the program and had no thought to take a look there!
      Seems adding the "," helped it.
      And, as I see, you must enumerate all the elements in your .h file, but though you can leave id blank.
      Thank you!
      %\

    • lasselauchL

      escape unicode characters in filepath

      General Talk
      • • • lasselauch
      7
      0
      Votes
      7
      Posts
      333
      Views

      M

      Hi, @lasselauch as a rule of thumb with Python2.7 always store data as a Unicode string.

      Control your IO which means, for each, Input make sure you know the encoding in all cases by always calling .decode('utf-8') so you are sure to store a Unicode value and get an error if something went wrong at a loading time.
      Then output the content according to your need some need ASCII, some can work with unicode, but do the conversion on the fly, don't touch you stored Unicode data.

      For the francophone people, there is this fabulous article about unicode Encoding in Python for English I guess the best I found on this topic is A Guide to Unicode, UTF-8, and Strings in Python.

      Cheers,
      Maxime.

    • ?

      Online Activation with Vendor Licensing System

      Cinema 4D SDK
      • python r21 • • A Former User
      4
      0
      Votes
      4
      Posts
      205
      Views

      M

      Hi,

      without further feedback, I'll set this thread as solved tomorrow.

      Cheers,
      Maxime