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" :)
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.
I'm creating a QApplication and then a QDialog but I can't seem to close the QApplication at all when the dialog is |
This means even when C4D is closed normally it's still running in the background and needs to be force-quit. Any |
I have the same issue with PySide. You mentioned that sole this issue. Could you Help me?
@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.
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.
In order to come out with such an ordered list I warmly recommend you to visit the following old-threads:
Get all ngons
Get outer edges of each Ngon
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.
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.
Hi @SteveJLV welcome in the plugincafe community,
I would like to point you to some rules:
Read Before Posting. Nothing wrong here, but just in case.
Q&A New Functionality. I've setup your topic correctly.
As you already figured it out, you never assign a new value to the variable. In Python, everything is passed by value by default in 90% of the time.
Meaning when you do x = y will actually copy y to x, so afterward if you do x + 10 it will not affect y value.
If you have more questions, don't hesitate.
I'm sorry for getting back late to you.
We have never done this ourselves nor have we heard of anyone.
The reasons for the difference between C++ and Python API are probably historic. Also back then we had no generic concept for callbacks in Python. Now, with MAXON API and appearance of Delegates and Observables such things will probably handled much nicer in future. Maybe it were also performance considerations.
Many words, for a "I don't know", sorry.
In any case we'll forward this a an idea to our development, so it is at least considered for a future release.
no worries, the first line is so big because of a stray "=" on the next line, underlining the first to be interpreted as a heading.
I'll move this thread to the General Programming & Plugin Discussions category, because in the end C4D does not provide any means to provoke UAC, nor do we deem it necessary inside our API as it is a pretty system specific thing. Yet, the discussion might lead back to C4D related questions, and then I'll either happily move it back or we'll have a new thread in the Cinema 4D Development category.
In general I think, it would probably be better to convince your users to install the plugin into either the plugins folder in the "user folder" or even (assuming R20+) a completely separate directory added to the users prefs.
Another thought, while definitely possible with Python, I'd say an update mechanism should change/replace files while the main application is running. After all you can not be completely sure, which files the application decides to lock at certain points off time, in which case your updater would probably run into issues. My recommendation is to rather update by restarting the main app (for C++ it's inevitable anyway).