• Z Depth R20

    Moved
    2
    0 Votes
    2 Posts
    1k Views
    S
    Hello, this is a support forum for plugin developers (About This Forum). For general questions on how to use Cinema 4D you might want to consult a more general user forum like c4dcafe.com or forums.cgsociety.org best wishes, Sebastian
  • Accessing Octane node editor with python

    Moved r20
    5
    0 Votes
    5 Posts
    4k Views
    S
    @Graeme Thank you very much! @r_gigante Will do, thanks.
  • Python module Inspect don't showing updated code

    2
    0 Votes
    2 Posts
    909 Views
    r_giganteR
    Hi @mikeudin, thanks for reaching out us. With regard to your request, although it's not expected it to work inside the Cinema 4D Script Manager you can get it properly working using the c4dpy executable (here's the 20.059 compatible version[URL-REMOVED]) as much as you do on the Python Shell or on SublimeText console as you can see from the log below. $ more test.py import inspect # Save this code as script py-file and start def main(): code = inspect.getsource(main_new) # place function code to str variable print code # print code text. Works on Python Shell, but not in C4D Scripts Manager def main_new(): # This is a comment # New comment string # Change this code, to check the console output pass if __name__ == '__main__': main() $ ./c4dpy.app/Contents/MacOS/c4dpy test.py def main_new(): # This is a comment # New comment string # Change this code, to check the console output pass $ Best, Riccardo [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
  • Registering controller's events from within C4D

    4
    0 Votes
    4 Posts
    1k Views
    intenditoreI
    Sorry for late reply, there was an issue with my account. Many thanks for comprehensive answers. The topic looks kind of mind bending now, not much easier than after I realised Api doesn't really have what I expected to have for the task accomplishment Now I think the better way might be to simulate the mouse over the viewport, so it will be an independent app which will only need from the Cinema to know where the viewport is. That seems easier I hope. When my research or development will reach some success I will share what I learned here, maybe it will be handy for somebody else. Thanks once more!
  • Use the Variable Name as an Argument

    4
    0 Votes
    4 Posts
    1k Views
    B
    @Cairyn and @m_magalhaes Thanks for the responses. The dictionary route seems like a good workaround. I think I'm going with it. Have a great day ahead!
  • Melting Edges

    3
    0 Votes
    3 Posts
    964 Views
    R
    Thank you so much. I was thinging that I had to provide an edge index. Never thought that it would just require to select the points that define the edges. Great!!!
  • Get selected parameters from Attribute Manager, Python

    python
    2
    0 Votes
    2 Posts
    877 Views
    r_giganteR
    Hi kurzemnieks, thanks for reaching out us. With regard to your question, I confirm that it's actually not possible because Attribute Manager Window functionality are not exposed in the API and, additionally, being possible to open multiple Attribute windows at the same time with multiple items highlighted belonging to different object makes the parameter selection not connected to the object. [image: 1558687886248-f8a5865c-2fa2-40d4-9022-7199a8a6e3b3-image.png] Best regards, Riccardo
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Move just the axis of a polygonal object

    10
    0 Votes
    10 Posts
    3k Views
    ManuelM
    hi, when you will be sure that it's solved, don't forget to mark this thread as solved please. Cheers Manuel
  • is there a market to sell my plugin?

    Moved
    4
    0 Votes
    4 Posts
    2k Views
    ManuelM
    hello, if you don't have anything else to add, i'll mark this topic as "solved" Cheers Manuel
  • Use a list or array for data?

    python
    5
    1
    0 Votes
    5 Posts
    2k Views
    ManuelM
    hello, if you don't have anything else to add, i'll mark this topic as "solved" Cheers Manuel
  • MographToNulls available for free as a Python scripting tag

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    jochemdkJ
    OK, I feel pretty stupid now... I was so busy with the specific way I used the script in the past, I forgot about the animation part So, I'll try to find some time soon to get the code up and running for animation. So my main function will be larger than "pass"
  • Get a simple polygonal version of any object

    4
    0 Votes
    4 Posts
    2k Views
    S
    Hello, Polygonize() is just using SendModelingCommand() with MCOMMAND_CURRENTSTATETOOBJECT. You can actually see the C++ source in c4d_basedocument.cpp in the cinema.framework. But I don't think that this commands merges all objects into one polygon object. best wishes, Sebastian
  • PySide2 Integration

    Moved python
    8
    1 Votes
    8 Posts
    4k Views
    M
    @Aeoll Additional question: I'm creating a QApplication and then a QDialog but I can't seem to close the QApplication at all when the dialog is | closed? This means even when C4D is closed normally it's still running in the background and needs to be force-quit. Any | suggestions appreciated I have the same issue with PySide. You mentioned that sole this issue. Could you Help me?
  • How to set project scale

    r20 python
    6
    0 Votes
    6 Posts
    3k Views
    r_giganteR
    @Rage if you're looking for a solution where the user is not involved, stick to the first answer where no CallButton() was considered. On the contrary using it will request the user to interact since there are no means to programmatically interact with the UI or scripting users' actions on the UI. Best, Riccardo
  • Move viewport camera from plugin

    5
    0 Votes
    5 Posts
    2k Views
    D
    wow! i love that. great job!
  • Compute the Area of an Irregular Polygon?

    Moved r20 python
    6
    0 Votes
    6 Posts
    3k Views
    r_giganteR
    Hi Bentraje, thanks for following up and sorry for coming late here. I've checked your geometry and the issue is not with the algorithm, but in both cases with the geometries you're using to compute the area who don't shown vertexes being properly "ordered". The algorithm I've briefly presented requires the vertexes to be ordered as if you're visiting them by walking on the outer edge of your n-gon or polygon in CCW or CW. It is then mandatory to generate an ordered list of vertexes before passing the data to the function to get the correct result. [image: 1553532189426-62d2c929-154a-4c85-b558-af1536d3153d-image.png] In order to come out with such an ordered list I warmly recommend you to visit the following old-threads: Get all ngons PolygonObject.GetPolygonTranslationMap() Get outer edges of each Ngon Best, Riccardo
  • One to rule them all...

    Moved
    3
    0 Votes
    3 Posts
    1k Views
    M
    HI Andreas, no worries, this question was not exclusively targeted at Maxon, the opposite is the case. I was hoping for some information by other users here, like @kbar or even @m_adam (back in the days Maxime was not associated with Maxon. ;)) Meanwhile, I'm going to build a toolchain and see what works for me. I'll report back here if I have something to show. That may help someone else.
  • Documentation Plugin

    8
    5 Votes
    8 Posts
    3k Views
    mikeudinM
    I'm trying to use this super handy plug-in to build help system for my plug-ins. Thanks for sharing this! After some days of working i have a some suggestions and bug reports. After each publishing, resulting index.html have a title tag "Plugins 4D Documentation". Is it possible to add ability inserting images with other formats like gif, jpg? Now i have to copy my images to images folder and type using markdown code like this (not showing in Preview window): ![Target 4D Move tool](images/mikeudin-target4d-feutures_5.gif "Target 4D Move tool") Preview window stops showing any text content if it contains symbol '–'. But after publishing results, final HTML is ok. Would be great to add ability to add favicon image.
  • Installing Numpy / Python

    3
    0 Votes
    3 Posts
    1k Views
    F
    @m_adam yes it solves the pb. Thanks Maxime