This works! Thank you very much, @i_mazlov.
Posts made by BruceC
-
Right aligned button
Hi,
I'd like to place one button at the right side of a row of the window, and the rest of the buttons to the left side of the same row.
like this:__________________________________________ | b1 b2 b3 b4 .... bn-1 bn| | | | | | |
I put the first n-1 buttons to a group, and the last button the another group, and I thought applying BFH_RIGHT flag to the right group and the last button could help me get the expected result, however, I found the button n is always right after button n-1 instead of at the very right side of the row.
The actual result is as below:__________________________________________ | b1 b2 b3 b4 .... bn-1 bn | | | | | | |
The code I used is similar to below:
// parent group GroupBegin(100, BFH_SCALEFIT, <n>, 0, ""_s, 0, 0, 0); // group at the left side GroupBegin(200,BFH_LEFT|BFV_FIT,<n-1>,0,""_s,0); AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "b1", BFH_FIT|BFV_FIT, minw, 0,customdata); AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "b2", BFH_FIT|BFV_FIT, minw, 0,customdata); AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "b3", BFH_FIT|BFV_FIT, minw, 0,customdata); AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "b4", BFH_FIT|BFV_FIT, minw, 0,customdata); ... AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "bn-1", BFH_FIT|BFV_FIT, minw, 0,customdata); GroupEnd() // group at the right side GroupBegin(300, BFH_RIGHT | BFV_FIT, 1, 0, ""_s, 0); AddCustomGui(201, CUSTOMGUI_BITMAPBUTTON, "bn", BFH_RIGHT|BFV_FIT, minw, 0,customdata); GroupEnd() GroupEnd()
Could you please help me find out what's going wrong?
Note: I need the last button always at the right side of the row after user resizes the window width. -
RE: Is project tool guaranteed to be backward compatible?
Thank you very much for the clarifying, @ferdinand
-
Is project tool guaranteed to be backward compatible?
Hi,
For example, if a new project tool is released in the future frameworks, will it guaranteed to work with old frameworks?An another example, can I use ProjectTool_S24.zip to build R21 SDK? I know it builds, but are there any concerns? or is it recommended to use ProjectTool_R21.zip to build R21 SDK?
Thanks!
-
Post build event settings on windows and mac
Hi,
Could you please share how to customize the post build events for MSVC and XCode solution files generated by project tool?
Is there a setting in project tool to do this? Otherwise, which file and where in frameworks/settings can be modified to achieve this?Thanks!
-
RE: Download Cinema 4D 2023.2.0 link doesn't work
Thank you, @m_adam. I cannot delete this topic either once there are replies.
-
RE: Error compiling R25 framework on MacOS
Thank you, @ferdinand. I modified sourceprocessor.py for now, and it works.
-
Error compiling R25 framework on MacOS
Hi,
I got the sdk.zip file from C4d (R25.117) install directory on mac. When I compile the example plugin project (plugins/example.nodes) in R25.117 on mac, I got below errors.
Can you please help take a look?
Thanks.BTW, there is no problem building 2024 nor 2023 sdk versions.
One more thing, I need to build multiple C4d sdk versions on this mac.cd /tmp/R25/frameworks/core.framework/project /bin/sh -c /tmp/R25/build/core.framework.build/Release/core.framework.build/Script-A0F4AB3A6F00000000690000.sh Loading generator module dumpgenerator from ../../../frameworks/settings/sourceprocessor/generators/dumpgenerator.py... Loading generator module phgenerator from ../../../frameworks/settings/sourceprocessor/generators/phgenerator.py... Loading generator module summarygenerator from ../../../frameworks/settings/sourceprocessor/generators/summarygenerator.py... Loading generator module cppgenerator from ../../../frameworks/settings/sourceprocessor/generators/cppgenerator.py... Looking for source files in /tmp/R25/frameworks/core.framework... Traceback (most recent call last): File "/private/tmp/R25/frameworks/core.framework/project/../../../frameworks/settings/sourceprocessor/sourceprocessor.py", line 2829, in <module> if not main(): File "/private/tmp/R25/frameworks/core.framework/project/../../../frameworks/settings/sourceprocessor/sourceprocessor.py", line 2490, in main if not recurse(args, args.directory): File "/private/tmp/R25/frameworks/core.framework/project/../../../frameworks/settings/sourceprocessor/sourceprocessor.py", line 2423, in recurse if not process(a): File "/private/tmp/R25/frameworks/core.framework/project/../../../frameworks/settings/sourceprocessor/sourceprocessor.py", line 2781, in process msg, err, exc, sources, oldSources = scanFiles(args, stampTime, previousFiles, generators, scriptDir, summary, results) File "/private/tmp/R25/frameworks/core.framework/project/../../../frameworks/settings/sourceprocessor/sourceprocessor.py", line 2128, in scanFiles p.start() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle 'module' object Command PhaseScriptExecution failed with a nonzero exit code
-
Download Cinema 4D 2023.2.0 link doesn't work
Hi,
Sorry for posting this message here (I'm not sure which section I should post). Please help move this to whichever it suits. Thanks.I'm trying to download Mac - Download Cinema 4D 2023.2.0 from the page below.
https://support.maxon.net/hc/en-us/articles/5091942997404-Where-can-I-download-the-previously-released-updates-builds-of-Cinema-4DHowever I found the link doesn't work. Could you please help fix the link? Thanks
-
RE: Stop projecttool asking for return to exit
@i_mazlov Thank you very much! This works!
-
Stop projecttool asking for return to exit
Hi,
The project tool on Windows always ask for "press return to exit" after generating the project file, as below.
Can this be disabled? i.e. It just exits without asking pressing any key.
Thanks!
-
RE: ProjectTool & visual studio: /DELAYLOAD
Thanks for the reply, @ferdinand.
I can confirm that below syntax doesn't work. I still get the same error.
AdditionalLinkOptions=%(AdditionalOptions) /DELAYLOAD:"mydll.dll"
I'll see what alternatives I could use.
-
ProjectTool & visual studio: Treat Specific Warnings As Errors
Is there a way to specify the Visual Studio option below in projectdefinition.txt? Thanks!
Configuration Properties-> C/C++->Advanced->Treat Specific Warnings As Errors
-
ProjectTool & visual studio: /DELAYLOAD
Re: ProjectTool & visual studio: /DELAYLOAD
I tried
AdditionalLinkOptions=/DELAYLOAD:"xxx.dll"
And as FilipM said, the option gets added under
Configuration Properties-> Linker ->All Options->Additional Options
and, I still got link error:
Error LNK2019 unresolved external symbol __HrLoadAllImportsForDll referenced in function "......................."
But if I add xxx.dll to
Configuration Properties-> Linker ->All Options->Delay Loaded DLLs
The link error disappears.
Configuration Properties->linker->Command Line looks the same except that /DELAYLOAD:"xxx.dll" is at the end of All Options if xxx.dll is added to Configuration Properties-> Linker ->All Options->Delay Loaded DLLs, but it will be at the Additional Options if it is added by AdditionalLinkOptions=/DELAYLOAD:"xxx.dll"
Can you please let me know how to solve this problem? Thanks.
I'm runningMicrosoft Visual Studio Professional 2019 Version 16.11.31