Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • indexofrefractionI

      resource errors with SPLINE in R20

      python r20 • • indexofrefraction
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      Y

      Hi,

      Are you using the Spline GUI inside a dialog? It looks like so if there's no arrow.
      If that's the case you can call SetLayoutMode(c4d.LAYOUTMODE_MINIMIZED) on the Spline custom GUI to change its layout to the minimized/spline element only.

    • E

      debugging question

      c++ r20 • • ello
      15
      0
      Votes
      15
      Posts
      3.8k
      Views

      a_blockA

      @ello said in debugging question:

      when i hover for example RNDOFFSET in visual studio i get enum <unnamed>::RNDOFFSET = 1029

      does this unnamed part cause something?

      No, it doesn't cause anything. It just means the symbol is defined in an unnamed enum. We avoid such nowadays (improved error checking, easier to debug), but they don't do any harm.

      furthermore, since this is a plugin collection the name RNDOFFSET is indeed used with another id in another plugin. does this play a role? i thought that only included files are taken into account?

      Well, I doubt so, but it may. The point is using unique IDs per BaseContainer. And to access a certain ID always with the same type (you could change the type, but let's leave this aside for now). So for a single BaseContainer Is try to make sure and check, that one ID (I mean the symbol or name like RNDOFFSET) is always accessed with the same type, and that no two symbols have identical ID values, so you do not access the same BaseContainer entry with two different names (lets say RNDOFFSET_INT and RNDOFFSET_VEC) but maybe different types.

      here is a screenshot for the actual issue

      From briefly looking at the screenshot on my mobile, it does not give me an additional clue. I recommend to add the debugger console to your layout. Usually we print some extra info there, when we run into a Critical Stop.

      Bye,
      Andreas

    • R

      Print console logs in terminal

      python r20 • • Rage
      5
      0
      Votes
      5
      Posts
      2.0k
      Views

      Y

      Hi,

      As I turned this discussion into a Q&A topic, if you're satisfied with my last post's solution then you can mark it as the correct answer or mark the topic as solved.
      For more information see Q&A New Functionality.

    • eZioPanE

      Miscellaneous questions about "BaseContainer","DescID" etc

      • • eZioPan
      3
      0
      Votes
      3
      Posts
      1.4k
      Views

      eZioPanE

      @s_bach, thank you, I'll start to do some hard reading!

    • P

      Which message do I receive when a command plugin dialog is closed?

      python r19 • • pim
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      P

      @s_bach said in Which message do I receive when a command plugin dialog is closed?:

      DestroyWindow

      Thanks.
      By the way, compliments on the latest R20 C++ manual. It is great!

    • codysorgenfreyC

      Sample a shader in 3D space in GVO

      c++ windows macos r19 sdk classic api • • codysorgenfrey
      3
      0
      Votes
      3
      Posts
      952
      Views

      codysorgenfreyC

      Thanks @r_gigante that's what I thought.

    • V

      Having issues with LoadDll and c4d_main

      c++ r20 • • victor
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      V

      In our case it was a bit more complex but we managed to bypass the issue using load delay dlls.

      Thank you all!

    • B

      Pointcount from bevel deformer

      python • • bonsak
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      B

      Sorry 🙂

    • X

      SetInt32 fails on ComboBox even if the change occurs

      c++ windows r20 • • xNWP
      3
      0
      Votes
      3
      Posts
      809
      Views

      X

      @a_block

      No inconvenience at all, just happy to hear it's not only me! 😄

    • Passion3DP

      n-gones with python

      python • • Passion3D
      3
      0
      Votes
      3
      Posts
      866
      Views

      Passion3DP

      Hi @eZioPan
      thank you for this example very clear 😉

    • F

      FileSelect for multiple files

      • • fused
      2
      0
      Votes
      2
      Posts
      666
      Views

      a_blockA

      Hi,

      yes, you are right, this is currently not supported. I have filed an "idea" for our development.

      Cheers,
      Andreas

    • C4DSC

      Move/Copy Constructors documentation

      r19 r20 c++ • • C4DS
      2
      1
      Votes
      2
      Posts
      699
      Views

      a_blockA

      Hi,

      in general your approach looks correct to us.

      Somehow I'm starting to regret we have a thoughtful and attentive community here. We can not hide a single change/omission in the docs without any one of you finding out about it... sigh! 😉

      Yes, indeed the "Move/Copy Constructors" manual has been removed from the R20 docs, as it needed thorough review and at least partly rewriting we did not find the time for, yet. But it wasn't removed without at least partial replacement. Especially for your case the BaseArray manual contains a section on implementing classes for use with BaseArray.

      Thanks for the idea of a "documentation issue" tag.

      Cheers,
      Andreas

    • V

      ParseTupleAndKeywords in R20

      c++ r20 python • • victor
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      V

      @y_puech said in ParseTupleAndKeywords in R20:

      Hi Victor,

      There's a logic error in the code you posted from the first post. The condition for R20 if (str.IsEmpty()!=false) returns false if the string has content.
      It makes more sense to call IsPopulated() for the R20 code instead of IsEmpty().

      You are right, thank you!!!

    • kbarK

      Tell the HTML Viewer to ignore javascript

      c++ r20 windows • • kbar
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      kbarK

      One last note. I just tried this on OSX and it works fine. So it is just an issue for Windows machines and whatever version of IE the widget is using.

    • B

      Set Tracers "trace link" (inExclude) field from python tag

      r20 python • • bonsak
      3
      0
      Votes
      3
      Posts
      761
      Views

      B

      Awesome! Thanks.

      Regards
      Bonsak

    • R

      No fbx exporter in python library?

      r20 python • • Rage
      2
      0
      Votes
      2
      Posts
      932
      Views

      Y

      Hi Rage,

      Unfortunately several importers and exporters do not have a constant for their ID. This is the case for FBX.
      The ID for the FBX exporter is 1026370.

      To find the ID of a specific exporter you can use the following code:

      import c4d saverPlugs = c4d.plugins.FilterPluginList(c4d.PLUGINTYPE_SCENESAVER, True) for plug in saverPlugs: print('{} : {}'.format(plug.GetName(), plug.GetID()))

      I turned the topic into a Q&A. Please remind to use this feature of the forum.

    • codysorgenfreyC

      Getting MoData in GVO of a ObjectData Plugin

      c++ windows macos • • codysorgenfrey
      13
      0
      Votes
      13
      Posts
      3.5k
      Views

      codysorgenfreyC

      @m_adam thanks so much for all your help on this!

    • B

      Get userdata Button state on object in Python tag

      python r20 • • bonsak
      7
      0
      Votes
      7
      Posts
      2.5k
      Views

      B

      Ah! So event_data['msg_data']['id'] is the id of the userdata.
      Didnt read your code comments 🙂
      Thanks alot!

      Regards
      Bonsak

    • S

      C4D GUI Python Callback

      python • • sogrady
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      Y

      Hi,

      A string with format "PLUGIN_CMD_123456" is meant to be used with MENURESOURCE_COMMAND, not RegisterCommandPlugin().
      It tells Cinema the command ID and name for the menu item to be added.
      Note the sub-IDs returned from GetSubContainer() are specific to a command and aren't global to Cinema.

      Maybe CommandData isn't what you really need. Scripts from the user folder are automatically loaded and can be added to any menu using Customize Menus dialog.

    • J

      ReferenceError?

      python • • Jvos
      6
      0
      Votes
      6
      Posts
      1.6k
      Views

      a_blockA

      Hi,

      first of all thanks to @Cairyn for nice explanations and helping in solving this.

      I'd just like to add a link to one of our examples, pretty much demonstrating this workflow: mengersponge.py (plus the scene file).

      @Jvos : I hope you don't mind, may I ask you to please open a new topic for unrelated topics/questions.
      I have also moved this thread into the Cinema 4D Development category, added some tags and turned the thread into a question.

      Cheers,
      Andreas