Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. Tags
    3. module
    Log in to post

    • X

      SOLVED Gets the point weight of the Field object.
      Cinema 4D Development • python r21 r23 module • • x_nerve  

      2
      0
      Votes
      2
      Posts
      33
      Views

      Hi @x_nerve, thank you for reaching out to us. The most straightforward way to sample a FieldObject is FieldObject.Sample; there are also other sample methods attached to the various fields related classes, most notably c4d.FieldList. We have two examples in the Python SDK examples which showcase field sampling, fieldlist_sampling_r20 and fieldobject_sampling_20. You also mention "Is there a way to get the weight of the cube field points?"; you are probably aware of this, but since your phrasing could imply otherwise, it seems noteworthy to point out that fields are not discrete. So in other words, there is no finite amount of points you can exhaustively sample for a field object, since the object is non-discrete. You have to pick a point or a set of points you want to sample for a field object, which can be any point in in the value range c4d.Vector can handle. If there are any questions left, please do not hesitate to ask. Cheers, Ferdinand
    • G

      SOLVED Python Plugin: numpy + scipy - Cinema4D R20
      Cinema 4D Development • python apple macos module • • Guglie  

      6
      0
      Votes
      6
      Posts
      133
      Views

      Hi, without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly. Cheers, Ferdinand
    • F

      SOLVED (Python) Help making Pip work in Cinema 4D
      Cinema 4D Development • r23 module • • Fowdy  

      4
      0
      Votes
      4
      Posts
      133
      Views

      Hi, without further feedback, we will consider this thread as solved by Wednesday and flag it accordingly. Cheers, Ferdinand
    • B

      UNSOLVED Changing camera/take/render setting in the render queue
      Cinema 4D Development • r21 module • • beezle  

      3
      0
      Votes
      3
      Posts
      64
      Views

      B

      @m_adam Thanks. I gave that a shot, but unfortunately, it's still adding multiple copies of the same camera. Am I doing something wrong? docs = c4d.documents doc = docs.GetActiveDocument() cams = getSelectedCameras(doc.GetActiveObjects(0)) path = doc.GetDocumentPath() cFile = path + '\\' + fName queue = docs.GetBatchRender() queue.Open() base = doc.GetActiveBaseDraw() for cam in cams: docs.LoadDocument(cFile, c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS) base.SetSceneCamera(cam) docs.SaveDocument(doc, cFile, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, c4d.FORMAT_C4DEXPORT) queue.AddFile(cFile, queue.GetElementCount())
    • J

      SOLVED set sculpting layer data from high resolution mesh.
      Cinema 4D Development • python bug report module • • jeongseok  

      3
      0
      Votes
      3
      Posts
      69
      Views

      J

      @m_magalhaes Thank you for reply. I am going to use it for this project. Hope it gets fixed soon. Thank you.
    • UNSOLVED How to refresh a deleted object link in Python?
      Cinema 4D Development • python s22 module • • orestiskon  

      6
      0
      Votes
      6
      Posts
      118
      Views

      X

      Hi: It feels like a good question, otherwise I wouldn't have known that XPresso had this problem.I think your problem is that XPresso Tag adds links to user data.If you add user data links to Python nodes, you will have no problem putting splines in the links.Or drag the spline directly to XPresso manager, output the object, there will be no problem. import c4d #Welcome to the world of Python def main(): #global spline global obj global time spline = op[c4d.ID_USERDATA,1] if spline != None: SplineHelp = c4d.utils.SplineHelp() SplineHelp.InitSpline(spline) offset = SplineHelp.GetOffsetFromReal(time, 0) pos = SplineHelp.GetPos(offset) #print(pos) obj.SetAbsPos(pos)
    • M

      SOLVED Changing parameters broken in S22
      Cinema 4D Development • python classic api module • • Motion4D  

      5
      0
      Votes
      5
      Posts
      46
      Views

      M

      @m_adam Thanks for clarifying!
    • I

      SOLVED How can i render/add render queue in Python ?
      Cinema 4D Development • python module • • ilad  

      4
      0
      Votes
      4
      Posts
      64
      Views

      M

      hi, I've moved the answer about the output path to this thread Cheers, Manuel
    • SOLVED Design Choices for shared variables across Plugins & Classes
      Cinema 4D Development • python issue application development 3d concept module • • lasselauch  

      4
      0
      Votes
      4
      Posts
      101
      Views

      M

      hello, I will consider this thread as solved without new information from you :) Cheers, Manuel
    • M

      SOLVED What are the options to install a Cinema4D plug-in?
      Cinema 4D Development • r20 microsoft windows module • • maxime  

      3
      0
      Votes
      3
      Posts
      372
      Views

      M

      Hi Riccardo, Thank you for the detailed answer. With the many options available, I chose one that fits best with our installer. Again, thanks for the help! Maxime
    • P

      UNSOLVED retrieve data from multiple cloners in python
      Cinema 4D Development • python classic api module • • Parvin  

      10
      0
      Votes
      10
      Posts
      670
      Views

      P

      Thank you @m_adam it's really helpful! I was going to a wrong direction. I chose to do a project that has every new aspect to explore :)) I will for sure disturb you in future with my questions. I appreciate your suggestions. Parvin
    • A

      SOLVED Cinema 4D R20 and Octane 3.08.5 attribute issue
      Cinema 4D Development • python r20 api issue module • • AndreAnjos  

      11
      0
      Votes
      11
      Posts
      4525
      Views

      A

      @a_block Hi Andreas, Thanks for your help and you are never too late! That actually makes more sense. Unfortunately I can't seem to replicate the issue again on my machine, as it seems that it's been working for all my updates. I will have a look on one of my team machines when released and see if that could be the problem. Thank you again!
    • SOLVED urllib2.urlopen fails on C4D for Mac
      Cinema 4D Development • python sdk issue bug report module • • merkvilson  

      32
      0
      Votes
      32
      Posts
      2114
      Views

      M

      Hi @SolarPH please open a new topic with your code and the exact error. Cheers, Maxime.
    • SOLVED PoseMorph Tag question
      Cinema 4D Development • python r19 module • • chuanzhen  

      5
      0
      Votes
      5
      Posts
      360
      Views

      M

      The mode specifies how data can be read from the Morph Tag. By default, they are presented in a compact way (aka only modified points are stored for some internal optimization). But if you SetMode with c4d.CAMORPH_MODE_FLAGS_ALL | c4d.CAMORPH_MODE_FLAGS_EXPAND then all the points are then readable from outside of the morph Tag. I adapted the Python documentation to match the C++ documentation so it will be available in the next documentation update. But I would say the C++ documentation for SetMode is pretty self-explanatory, what is the part you don't understand? Cheers, Maxime.
    • UNSOLVED Sampling the falloff of a mograph effector? (python/R19)
      Cinema 4D Development • python r19 module • • jenandesign  

      4
      0
      Votes
      4
      Posts
      597
      Views

      @m_adam Wow, this is truly great. What a fantastically written response, I really appreciate it! Learning a bunch from this example, way more than I asked for. Thanks again Jenny P.S. if only the py4d documentation had examples like this, we would all be better programmers
    • D

      SOLVED R20 Alembic Export Crash
      Cinema 4D Development • python c++ issue module • • dev-vfxboat  

      5
      0
      Votes
      5
      Posts
      650
      Views

      R

      Ah I think you're right - I take the object right from the document without a clone or anything. Thank you!
    • D

      SOLVED Coding a Python Field
      Cinema 4D Development • python r20 module • • darrellp  

      5
      0
      Votes
      5
      Posts
      563
      Views

      M

      Hey @darrellp as you figured out, it was not on the correct category. But in any case don't worry, maybe I was too harsh and unprecise, I'm sorry about that but in the end, as I said, you are new here, so don't worry if you break the posting rules the first times :)
    • Z

      UNSOLVED question about Team Render
      Cinema 4D Development • c++ classic api microsoft windows apple macos module • • zhhm156  

      4
      0
      Votes
      4
      Posts
      527
      Views

      Hi zhhm156, so for coming late here, but it took more than expected. After getting in contact with the team in charge of the development and making some further researches, it appears that the VerifyServerOnClient function is indeed deprecated. I'll get back on this discussion in the future to notify about potential workaround to achieve a similar functionality. Best, Riccardo