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. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • ?

      Setting Read-Only STRING value in Description

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      142
      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

    • merkvilsonM

      urllib2.urlopen fails on C4D for Mac

      • • merkvilson
      32
      0
      Votes
      32
      Posts
      3.5k
      Views

      M

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

      Cheers,
      Maxime.

    • E

      BaseLink crash and tracking PolygonObjects/InstanceObjects in cache

      • • ECHekman
      3
      0
      Votes
      3
      Posts
      200
      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
      391
      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

    • J

      Loft incorrectly returning input objects

      sdk r20 c++ • • JohnThomas
      10
      0
      Votes
      10
      Posts
      508
      Views

      ferdinandF

      Hi,

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

      Cheers,
      Ferdinand

    • WTools3DW

      BaseDraw::DrawHUDText() - setting color ?

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

      WTools3DW

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

      Thanks a lot!

    • WickedPW

      Setting up global plugin structs

      • • WickedP
      3
      0
      Votes
      3
      Posts
      154
      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.

    • WickedPW

      Getting poly normal and CreatePhongNormals()

      • • WickedP
      18
      0
      Votes
      18
      Posts
      805
      Views

      M

      Thanks for the reply, Wicked.

      interessting, but not what i hoped for ... 😉

      kepp on chrunching

    • CairynC

      Snap settings issues in R21/R23?

      r21 r23 python • • Cairyn
      12
      0
      Votes
      12
      Posts
      602
      Views

      CairynC

      @zipit Thanks, I thought so... but you never know whether some functionality has a hidden internal purpose. Deprecating it will probably be the best solution.

    • P

      ZeroAxis R23 help

      python r23 • • peXel
      11
      0
      Votes
      11
      Posts
      455
      Views

      P

      That are great news, but sadly I am not a Phyton User

    • fwilleke80F

      Default Object: How to apply those defaults?

      c++ r20 r21 s22 r23 • • fwilleke80
      11
      0
      Votes
      11
      Posts
      211
      Views

      ManuelM

      well sorry for the misleading.
      I was thinking it should work because the object is inserted with doc->InsertObject

      Cheers,
      Manuel

    • P

      Content Browser and StrNotFound

      r23 python • • pim
      4
      0
      Votes
      4
      Posts
      159
      Views

      ManuelM

      hi,

      i was saying not to use the same ID (in case of conflict)

      But it seems that there's no conflict neither with the symbol name or the symbol ID.
      A bit strange.

      Cheers,
      Manuel

    • delizadeD

      A problem about getting an object width value with python

      r23 python • • delizade
      7
      0
      Votes
      7
      Posts
      291
      Views

      ferdinandF

      Hi @delizade,

      Thanks @a_block for helping out! @delizade you can find the description for the priority options in the Python Tag section of the user manual.

      Cheers,
      Ferdinand

    • Leo_SaramagoL

      R23's Execution Order

      • • Leo_Saramago
      3
      0
      Votes
      3
      Posts
      131
      Views

      Leo_SaramagoL

      It sure does answer the question.

      Thanks, Riccardo!

    • M

      Python Effector not working with Fields

      r23 python • • Motion4D
      6
      0
      Votes
      6
      Posts
      405
      Views

      ferdinandF

      Hi,

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

      Cheers,
      Ferdinand

    • E

      Compiling material nodegraph to shaders

      r23 sdk maxon api c++ • • ECHekman
      4
      0
      Votes
      4
      Posts
      160
      Views

      r_giganteR

      @ECHekman said in Compiling material nodegraph to shaders:

      I take it this also means its not possible to manually convert node ourselves?

      Right.

    • N

      Object GetNext() method does not advance to next object

      • • nicholas_yue
      3
      0
      Votes
      3
      Posts
      156
      Views

      ferdinandF

      Hi @nicholas_yue,

      @Cairyn said everything (thanks for that). I would additionally recommend to read the Wikipedia article on graph traversal I have posted in your other thread, as it might clear up a few things for you.

      Cheers,
      Ferdinand

    • gheyretG

      HOW TO BIND KEYBOARD SHORTCUT TO PLUGIN

      python r21 • • gheyret
      3
      0
      Votes
      3
      Posts
      214
      Views

      gheyretG

      @m_magalhaes
      Now i know how to solve my problem!
      Thank you for your reply.
      Cheers!

    • mikeudinM

      CallCommand Select Connected is not working on R22

      python s22 r23 • • mikeudin
      3
      0
      Votes
      3
      Posts
      149
      Views

      mikeudinM

      Thank you @m_magalhaes !

    • kbarK

      Setting volume as dirty doesn't refresh in S22 or R23.

      s22 r23 c++ • • kbar
      2
      0
      Votes
      2
      Posts
      83
      Views

      M

      Hi @kbar I'm able to reproduce the issue and I've opened a new bug report about it.
      The only workaround is to return a new VolumeObject each time.

      Cheers,
      Maxime.