@m_adam said in How to access ‘Freeze View function’ with Python ?:
WorldContainer with the ID 25085
So there are no WorldContainers for Y and X, ?
And this is since R19 ?
Above is R18, This is no longer possible ?
I am glad it does help you. I forgot to mention one thing, which is worth pointing out, when somebody stumbles over this thread, searching for performing edge selections.
The way I treat edge selections in this script only works because of the specific scenario - selecting edges that are only associated with one polygon. In all other cases you have to select two edge ids (one for each polygon) for each edge or use the convenience methods of c4d.BaseSelect for that. Otherwise you will end up with a corrupted edge selection.
Hi fyeng, thanks for reaching out us.
With regard to your question, I confirm that the workflow you're trying to achieve using the python executable found among the Linux CLR modules is not possible since only c4dpy, as you've already seen, has access to all the needed modules.
Hi angel23, thanks for reaching out us.
With regard to your question the answer can be pretty wide depending on the depth you're aiming to tackle.
Cinema 4D comes as @bentraje properly stated with C++ and Python APIs: whilst the first is bigger and more comprehensive the second is a specialized subset of the first and easier to approach.
For the Cinema 4D API newcomers we recommend to stick to the Python API which gets rid of all the hurdles of the building process and to get proficient with it.
Upon getting used to it and to the foundation Cinema 4D API concepts, moving to C++ won't be too complex.
@zipit Thanks for the insight! This makes sense, I vaguely recall typo-ing random.seed and forgetting the () and it threw an error so I fixed that, went writing more of the code and then didn't relate this error back to that brief moment. I don't recall assigning it as a property, but I do have a seed = 12345 elsewhere in the code, so maybe I did!
Thanks all for sanity-checking it, solved.
Hi @daltonmonaie, could you open a new topic for the last things regarding the update of the render path and post all your code if possible so like that we are sure we speak about the same things.
I've created the new topic, please continue the discussion on this one: Update Render Path in an Xpresso Node.
Hi, @Xplorer do you have any example in Cinema that would have similar behavior?
If you could explain in detail or give example especially the second part of this sentence "load in c4d a particular object already modeled, and also have it hidden to stay focused on the settings and sliders available in the plugin." it will be nice.
Hi hhgemalmaz and thanks for reaching out us.
With regard to your question I warmly suggest to
read the Cinema 4D C++ documentation
get familiar more specifically with the Getting Started topics
download the Project Tool used to create specific IDE solutions/projects for the different projects provided with the sdk archive shipped with Cinema 4D.
unarchive the sdk.zip in your preferred folder
execute kernel_app_64bit.exe g_updateProject=<your full path to sdk>
open the solution in your IDE
build the examples shipped in the sdk.zip archive.
If your Cinema 4D version is older than R20, then you can skip steps 3, 4 and 5 since solution files and API folder are already available in Cinema 4D installation path.
I'm not sure it's a bad habit or what's the difference. There's maybe type conversion, i don't know.
Or maybe with the code optimization there's no difference at the end.
I just wanted to add my 2 cents to have bool and not value xD
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