Posts made by yesbird
-
RE: Accessing Sweep's spline data from C4DImportExport.cpp
Hi, @Manuel
You wrote:This is not available in the implementation, which is why it is commented out (and why you have this error message 'unresolved external')
about this method:
// Vector GetPoint(Float r) const;
Although now I have spline implementation (cubic and linear) and using it for calculation the more neat solution could be to implementing method, mentioned above.
Could you tell me please, if you have plans of it's implementation ?
If not, I could implement it myself, having access to Cineware sources.All the best,
....
YB -
RE: Check if object enabled
Hi, @ferdinand
Many thanks for accurate and detailed response, ID_BASEOBJECT_GENERATOR_FLAG works like a charm !
....
YB -
Check if object enabled
Hi,
In my export utility I'm using following method to check if object should be rendered:Int32 BaseObject::GetRenderMode(void)
Could you please point me the method that shows if object is enabled (see attached image) ? Unfortunately, I can't find it in documentation.
Thanks in advance,
....
YB -
RE: Displaying tag properties as part of object's properties
Thanks, @Manuel.
The reason was in definition of TAG_MULTIPLE at the moment of registration. Now the tag properties are displayed as I was expecting.
....
YB -
Displaying tag properties as part of object's properties
Hi,
Could you please suggest me, how to make tag info available in object's properties, like here:
By default, tag properties are displayed separately, only when tag is selected.
Thanks in advance,
Sergey (Yesbird). -
RE: Calling system command on animation frame change
Hi, Manuel.
Thank you for description of both approaches, now I can compare them and choose the best.
Regards,
Sergey (Yesbird). -
RE: Calling system command on animation frame change
Hi, @manuel.
I only want to add, that Cineware-based solution even more preferable, as it much more easy to debug.
Btw, is there a way to detach C++ written plugin dll for rebuild time not restarting C4D application ?
....
YB -
RE: Calling system command on animation frame change
Hi, @manuel.
I mean regular SDK here.
....
YB -
RE: Accessing Sweep's spline data from C4DImportExport.cpp
Hi,@manuel.
Thank you for explanation, I will calculate spline points myself, no problem.
All the best,
....
YB -
RE: Accessing Sweep's spline data from C4DImportExport.cpp
Hi, @manuel.
Many thanks for fast and detailed response. Fortunately, I've alredy passed all steps, but last - getting spline points (not knots), and unfortunately, can not do it by strange issue: in file customgui_splinecontrol.h method that I need:
//Vector GetPoint(Float r) const;
is commented out and when uncommented, gives 'unresolved externa' error.
I have the lates SDK version:
22.008_RBCinewaresdk22.0_355130Could you please help me to find workaroud for this problem ?
Thanks in advance,
Sergey (Yesbird). -
Calling system command on animation frame change
Hello.
I'm writing an exporting tool for POV-Ray now and thinking about external rendering of animation frames, assuming following scenario:for every_frame: save_scene(); call_renderer(); // As external system command
I'm very new to the C4D SDK, so could you please suggest to me, how to find the event of frame change and run commands on this event ?
Unfortunately, searching manuals still does not give any results.
Thanks in advance,
Sergey (Yesbird). -
Accessing Sweep's spline data from C4DImportExport.cpp
Hello,
In the process of writing tool (https://github.com/syanenko/pov-tools) for exporting C4D objects to POV-Ray, I've ran into following problem: can not find any information about accessing spline data, available in Details tab of Sweep node, from C++.This spline is marked on following image:
I would like to use this data to alter sphere radius in POV's Sphere sweep object. The code of this tool is based on C4DImportExport.cpp example.
Could you please point me in the right direction?
Thanks in advance,
Sergey (Yesbird). -
RE: Drop-down list in tag for C++ plugin
Hello, @ferdinand.
Many, many thanks for your detailed description of UI background, grepping-based workflow is not new to me, so "sapienti sat"
I used the User Data Editor before, but now I discovered a new side. If I understand well, there is a possibility to create a UI sketch, save it and then find the appropriate
*.res
in{Cinema 4D RXX}\resource
directory. This technique should be very useful, I definitely will try it.All your code examples are exactly what I was looking for, now I can implement all my ideas in the best way.
Besides that, I would like to say that after more than 30 years of working in IT, I've never seen such attentive and mindful support - with not only code samples, but even with animated screenshots.
Writing plugins for C4D is pure fun now.
Thanks again,
...
YB -
RE: Drop-down list in tag for C++ plugin
Hello, @ferdinand.
Thank you very much for the rapid and detailed response, after reading the section about LONG parameter type more carefully, I was able to complete this part of the UI and now the list works fine.
Although I am satisfied with the present result, if you will give me a little more details about the radio buttons' custom GUI, I will be absolutely happy :).
Unfortunately, I didn't find any info about radio buttons in manual.All the best,
YB. -
Drop-down list in tag for C++ plugin
Hi, guys.
While writing C++ plugin for C4D I ran into the following problem: can't find any info about how to create a drop-down list for tag parameter.
Manual states, that it's possible to use CUSTOMGUI flag and I see implementation CUSTOMGUI_LISTVIEW in framework, but no any other info how to use it.
At the same time 'CUSTOMGUI MULTISTRING' works fine.Any help or suggestions please !
Thanks in advance,
...
YB