Info from dialog
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/07/2003 at 17:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C++ ;---------
How can I get information from a C4D- Dialog?
For example I want to read a scale-Factor from the "Real-Control" SCALE_FACTOR.// in MeshExporter.res: CONTAINER MshExporter { NAME MshExporter; INCLUDE Fbase; GROUP MshExporter { REAL SCALE_FACTOR { UNIT REAL; } } }
A short code-sample would be nice.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2003 at 03:39, xxxxxxxx wrote:
Hello,
please have a look at the code examples in the SDK first. Where do you want to get the Real value from? What plugintype?
Some lines of code would help.
Best
Samir -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2003 at 08:04, xxxxxxxx wrote:
It is an Exporter. In C4D you see the Dialog under: Edit->Preferences->Import/Export. The Dialog contains only a "REAL- Control" for Scaling. I just want to read the value in that Control from the Exporter-Plugin.
My Res-File reads (as stated before) :// in MeshExporter.res: CONTAINER MshExporter { NAME MshExporter; INCLUDE Fbase; GROUP MshExporter { REAL SCALE_FACTOR { UNIT REAL; } } }
I don´t use GEDialog or so. I just edited the necessary *.res, *.str *.h- files and now I try to get info from the Control. How?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2003 at 08:18, xxxxxxxx wrote:
It should work like any other examples in the SDK too:
BaseContainer *data = node->GetDataInstance();
then you can access the real value through the container with
Real sf = data->GetReal(SCALE_FACTOR);
Best
Samir -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2003 at 10:20, xxxxxxxx wrote:
That´s it, thanks.
No Info anyhwere, for what node in the Save()- Function is good or what Info it holds, where it comes from or what it means.
But it´s a node! Found it, thanks.
A 2-page description of fundamental SDK-objects and data-organisation would make working with the API a pleasure. But this way, it´s frustrating most times. Anyway, got it, thanks. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2003 at 10:25, xxxxxxxx wrote:
well, a node actually defines all objects in Cinema 4D (tags, keys, objects and also filters) and is represented by the NodeData class that inherits from the BaseData (that is topmost afaic remember).
It´s nothing more than a pointer to the node instance filled directly by Cinema 4D and passed to the corresponding functions.
Well, actually that´s how I understood it