Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • WickedPW

      Setting up global plugin structs

      • • WickedP
      3
      0
      Votes
      3
      Posts
      423
      Views

      WickedPW

      Hi Manuel,

      what you say rings a bell. I was sure it was because the vector hadn't allocated anything yet.

      Global possibly wasn't the best way admittedly, it just started like that for convenience. But it ended up being a bit complex, there's a lot of things accessing it, so I didn't want to change it (for now).

      @m_magalhaes said in Setting up global plugin structs:

      create a pointer and in pluginstart and pluginend take care of assign memory and free it

      hadn't thought of that. Seems to work - I'll go with that! Thanks 👍

      WP.

    • WTools3DW

      BaseDraw::DrawHUDText() - setting color ?

      r23 sdk • • WTools3D
      3
      0
      Votes
      3
      Posts
      621
      Views

      WTools3DW

      Works like a charm!
      It's much more flexible than I hoped;)

      Thanks a lot!

    • J

      Loft incorrectly returning input objects

      sdk r20 c++ • • JohnThomas
      10
      0
      Votes
      10
      Posts
      1.6k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • lasselauchL

      Drag and Drop "Command" from Treeview

      • • lasselauch
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      ferdinandF

      Hi,

      I understand that this thread has not yet come to a final conclusion, but without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • E

      BaseLink crash and tracking PolygonObjects/InstanceObjects in cache

      • • ECHekman
      3
      0
      Votes
      3
      Posts
      599
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • merkvilsonM

      urllib2.urlopen fails on C4D for Mac

      • • merkvilson
      32
      0
      Votes
      32
      Posts
      22.8k
      Views

      M

      Hi @SolarPH please open a new topic with your code and the exact error.

      Cheers,
      Maxime.

    • ?

      Setting Read-Only STRING value in Description

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      371
      Views

      ManuelM

      hi,

      Sorry for the delay of this answer, we simply missed your post.

      When using STRING READOUT_WIDTH { ANIM OFF; } it's important that you initialize the parameter in your Init function. Otherwise uninitialized type will be a int.
      At some point, the code is comparing the old value type with the new value. That's why it's waiting for a Int while you provide a Str. (feel like a bug to me)

      I don't see the problem using STATICTEXT or STRING. It does create the expected fields. The StaticText can't be Animated anyway, i would remove the ANIM OFF

      STATICTEXT PYPREFERENCE_STATICTEXT {} STRING PYPREFERENCE_STRING { }

      about the border around the static text you can declare the field like this in your ressource file:

      STATICTEXT PYPREFERENCE_STATICTEXT_BORDER {BORDER;}

      Cheers,
      Manuel

    • X

      [SOLVED/NotABug] Bug with c4d.CPolygon

      r21 • • xNWP
      8
      0
      Votes
      8
      Posts
      1.1k
      Views

      X

      Thanks for all the extra info guys! I'll make sure to use the ask-as-a-question feature next time 🙂

    • beesperesterB

      This topic is deleted!

      • • beesperester
      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • merkvilsonM

      3rd party APIs into pyp/pypv file

      python • • merkvilson
      7
      0
      Votes
      7
      Posts
      4.0k
      Views

      M

      Hi see Cinema 4d R23 MacOs Pip Install Broken.

    • rsodreR

      Viewport supersampling performance

      r23 • • rsodre
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      rsodreR

      We found another AA option on Settings, Viewport Hardware, that performs much better than the View Settings Supersampling, probably using a different technique.

      Thanks.

    • WickedPW

      BitmapButtonCustomGui hover

      c++ sdk • • WickedP
      4
      0
      Votes
      4
      Posts
      537
      Views

      ferdinandF

      Hi @WickedP,

      Secondly, I can't seem to mark any topics of mine as solved. Has this changed?

      that is because you haven't set your topic as "ask-as-question" in the first place 😉 So there is nothing to resolve here.

      Cheers,
      Ferdinand

    • M

      Calling ExecuteOnMainThread() from ObjectData::GetVirtualObjects()

      c++ windows macos sdk • • mastergog
      17
      0
      Votes
      17
      Posts
      2.2k
      Views

      M

      Glad you found a way and yes I think it's safe now 🙂
      I guess there is no more open pint? If so I let you define your topic as solved (see Forum Structure and Features - Ask as Question If you don't know how to do it).

      Just in case a BaseContainer can also store a BaseContainer. so you could store your own BaseContainer at the ID_PLUGIN And in this BaseContainer at ID 0 stores, the obj counts, and then you can safely iterate over it.

      Cheers,
      Maxime.

    • N

      Tracking screen 2D coordinates of objects for each frame (convert from 3D to 2D)

      • • nescis
      3
      0
      Votes
      3
      Posts
      732
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • N

      Dialog button hangs C4D

      python • • nicholas_yue
      6
      0
      Votes
      6
      Posts
      1.2k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • delizadeD

      How to use/import another script file in Python tag correctly?

      python • • delizade
      7
      0
      Votes
      7
      Posts
      1.3k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • delizadeD

      How can I control a Python Tag's execution?

      python • • delizade
      4
      0
      Votes
      4
      Posts
      594
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • N

      Alternative way to iterate list other than GetNext()?

      • • nicholas_yue
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • H

      PYTHON - INPUT DELAI

      python r21 macos • • Hugo BATTISTELLA
      7
      0
      Votes
      7
      Posts
      1.0k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand

    • B

      Empty response body from GET or POST HTTP request

      r21 c++ • • Braeburn
      8
      0
      Votes
      8
      Posts
      2.2k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Monday and flag it accordingly.

      Cheers,
      Ferdinand