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. moGRR
    3. Topics
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 21
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by moGRR

    • M

      Is it possible to get a spline wrap object to use a python generated spline?

      Cinema 4D SDK
      • python • • moGRR
      8
      1
      Votes
      8
      Posts
      1.2k
      Views

      r_giganteR

      Thanks @moGRR for reaching out us.

      With regard to your question, as pointed out by @zipit, it's not possible to have a Python Generator to generate object which can be recognized as real spline by generators/deformers expecting a spline as input due to the Python Generator flags used in its registration.

      Beside the option mentioned by @zipit I also invite to have a look at this post where it's presented a generator outputting spline and accepting splines as input.

      Best, R

    • M

      Python Generator - Linking ports to xpresso node

      Cinema 4D SDK
      • • • moGRR
      14
      0
      Votes
      14
      Posts
      2.1k
      Views

      M

      Hi sorry to jump on this topic so late, and I agree that if you could do what you want in a Python Scripting tag its preferred, the mains issue with xpresso is that its a whole system that assumes certain things and was really not designed to be embedded within a generator.

      So the issue about the AddNode, not working is because user data things, as an object xpresso node, is something dynamic (they will change according to the linked object) and I found no way except via the UI (by asking a UI Redraw or a whole scene execution) to refresh these data so the GvPort can be created.

      But since you are in a Generator you don't have access to the GUI since all GUI operation should be done in the Main thread see Threading Information.

      Cheers,
      Maxime.

    • M

      Python Generator - Adding Shaders to Deformer Objects

      Cinema 4D SDK
      • python • • moGRR
      11
      0
      Votes
      11
      Posts
      1.5k
      Views

      M

      @mp5gosu

      Ah brilliant. Thanks for that!

      And apologies for being such a noob at this.

    • M

      Python Generator - Accessing Contour Spline

      Cinema 4D SDK
      • python • • moGRR
      3
      0
      Votes
      3
      Posts
      458
      Views

      M

      Thanks again @PluginStudent for helping me so quickly.

      That was enough information to help me find the .MakeUserSpline function that allows me to do exactly what I'm after:

      MakeUserSpline('sin(x * PI)', 5)

      More info here for anyone looking.

      Cheers,
      Jamie

    • M

      Python Generator - How to assign a field object to a deformer

      Cinema 4D SDK
      • python • • moGRR
      6
      0
      Votes
      6
      Posts
      975
      Views

      M

      Oops - I forgot to have the following line:

      myDefObj[c4d.FIELDS] = myFieldList

      It all works perfectly now. Thanks again for your help @PluginStudent