• STRINGENCODING -> StringEncodingRef ?

    classic api c++ r21
    3
    0 Votes
    3 Posts
    436 Views
    r_giganteR
    Hi Frank, I've just been confirmed that the function will be exposed in the future. Best, Riccardo
  • C++ SDK doc: SetPriority / SetPluginPriority mixup?

    sdk c++ r21
    2
    0 Votes
    2 Posts
    311 Views
    r_giganteR
    Hi Frank, thanks a lot for reporting the issue here. It will appear fixed in the next future. Best, Riccardo
  • Reorder gradient knots by position

    c++ sdk
    3
    0 Votes
    3 Posts
    499 Views
    mfersaouiM
    @s_bach Hi Sebastian, Perfect, thank you very much. Best regards, Mustapha
  • How to do that the generated object fill the viewport and be centered

    python
    11
    0 Votes
    11 Posts
    1k Views
    mfersaouiM
    @m_magalhaes Hello Manuel, ok Thank you. I have used the solution that I have mentioned above.
  • Add Child to description popup field.

    c++ r21
    5
    0 Votes
    5 Posts
    865 Views
    ManuelM
    hello, So yes, you have to react to MSG_DESCRIPTION_POPUP, you can see an example on the nodedata manual I thought first you wanted to create a popup menu. Cheers, Manuel
  • This topic is deleted!

    1
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Message behavior of tabbed dialogs changed R19->R21?

    3
    0 Votes
    3 Posts
    505 Views
    CairynC
    That's ok, I have meanwhile refactored everything* into a MessageData plugin anyway so the plugin will work** even if the dialog is closed. *Everything except for timer stuff, which for some reason works differently for a dialog than for a message plugin. **There are some strange effects like hanging or crashing application on Close, when the dialog is in certain states. I will need to investigate whether this is an effect of the missing CoreMessage calls or something that happens now due to refactoring.
  • Align Group Parameters (Resource Files)

    r21 c++ sdk
    4
    1
    0 Votes
    4 Posts
    714 Views
    O
    Thanks @zipit, Managed to solve it thanks to you.
  • Python c4d.CheckIsRunning(type) returning None

    python
    4
    0 Votes
    4 Posts
    573 Views
    ManuelM
    hello, without any news, i'll pass this thread to solved. Cheers, Manuel
  • GetAllTextures from materials only

    12
    0 Votes
    12 Posts
    2k Views
    A
    Hi @m_adam, Thanks for letting me know! Andre
  • API: Bogus default value in SearchPluginMenuResource() declaration

    r21
    5
    0 Votes
    5 Posts
    623 Views
    M
    @fwilleke80 said in API: Bogus default value in SearchPluginMenuResource() declaration: IDS_EDITOR_PLUGINS Yes and also affect python.
  • Object materials won't show up in final render

    c++ sdk
    4
    0 Votes
    4 Posts
    858 Views
    M
    For more information about it, please read the BaseDocument Manual. Cheers, Maxime.
  • How to access the ObjectPlugin child objects.

    c++ sdk
    4
    0 Votes
    4 Posts
    542 Views
    M
    Hi @mfersaoui in the future try to split as much as possible your topic in order to help other users to find relevant information. I've forked all your discussion about baking in this post Bake Texture within ObjectData. And please mark this topic as solved if your original question is answered (which I think is the case by the good answers from @zipit). Cheers, Maxime.
  • Writing data to the .c4d file

    r20 python
    26
    0 Votes
    26 Posts
    16k Views
    ?
    @m_magalhaes said in Writing data to the .c4d file: You can also use del that is pythonic bc = doc.GetDataInstance().GetContainerInstance(MyUniqueId) bc.RemoveData(2000) #del (bc[2000]) Wonderful, @m_magalhaes , thank you so much!
  • Detect if document is being rendered in ModifyObject

    c++ windows macos r20 r21
    3
    0 Votes
    3 Posts
    614 Views
    N
    Hey zipit, thanks for the answer! Exactly what I needed! Best Regards, Florian
  • utils.ViewportSelect() Problem

    r19 r20 r21 python
    5
    0 Votes
    5 Posts
    895 Views
    gheyretG
    @zipit Thank you man ! I see how to fix it now!~~ Cheers harry
  • Make editable an object generated by GetVirtualObjects()

    python
    19
    0 Votes
    19 Posts
    3k Views
    S
    Hello, as said before, it is not the purpose of GetVirtualObject() to edit the scene or to edit elements of the scene; this includes materials.
  • How to get mouse drag info from external through Python API?

    Moved
    10
    0 Votes
    10 Posts
    2k Views
    L
    @m_adam said in How to get mouse drag info from external through Python API?: Hi sorry about the confusion of server.close I was referring to self.sock.close. After some tests the main issue with your code is currently recvfrom is blocking, meaning until it receives something all the code is blocked, so TestBreak is never called and the thread never ends. So using timeout solve the issue. import c4d import socket class A(c4d.threading.C4DThread): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) end = False def Main(self): self.sock.bind(("localhost", 20014)) while True: # use timeout to check for TestBreak() try: self.sock.settimeout(1.0) self.sock.listen(1) conn, addr = self.sock.accept() # connection print('Connection address:' + str(addr)) data = conn.recv(BUFFER_SIZE) if not data: print("Got no data.") break else: print("received data:" + str(data)) print str(data) self._data = str(data) # DO SOMETHING conn.close() # timeout except: if self.TestBreak(): self.sock.close() self.End() return continue self.sock.close() if __name__ == "__main__": threadedServer = A() threadedServer.Start() Cheers, Maxime. Awosome, the whole script works very well now, thanks man, you help me quite a lot! mua~
  • Do Cinema 4D and c4dpy use different lists of plugins?

    4
    0 Votes
    4 Posts
    959 Views
    M
    This issue is now fixed in R21. Cheers, Maxime.
  • Is there any way to get mouse drawn direction information?

    python r19 r20 r21
    4
    1
    0 Votes
    4 Posts
    612 Views
    S
    Hello, there is no thing as mouse direction. The mouse has a position. The direction is the result of comparing two mouse positions. as @zipit stated, you can create a tool that implements MouseInput(). Within MouseInput() you can use ViewportSelect.PickObject() to check what object and what point the mouse is currently over (Using BaseView.SW()). You can store the previous mouse position and compare it to the current mouse position to calculate the direction. Unfortunately, there is an issue with the Python version of PickObject() (How do I find the z-depth with Python ViewportSelect.PickObject()?), so you might have to implement your idea as a C++ plugin. You find some code in the pickobject.cpp example. best wishes, Sebastian