THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/06/2007 at 14:07, xxxxxxxx wrote:
Cinema 4D Version:
I'm trying to call the EditSpline:project function using SendModellingCommand. To do this I need to set a LONG(
in the basecontainer of the ModelingCommandData. How can I figure out which values of MDATA_SPLINE_PROJECTMODE that correspond to which projection mode? The docs only say "see dialog", but I don't see how that helps me?
On 19/06/2007 at 16:44, xxxxxxxx wrote:
What it should say is "see dialog and then see resources".
When there is a set of constant defines they will almost always be listed in either the _api class headers or in the res or modules folder in the Resource folder.
In this instance, "Projection Mode" is found under the Project command (Structure->Edit Spline->Project).
And the relevant file is:
MDATA_SPLINE_PROJECT_MODE = 2022, // LONG
MDATA_SPLINE_PROJECT_MODE_VIEW = 0,
MDATA_SPLINE_PROJECT_MODE_XY = 1,
MDATA_SPLINE_PROJECT_MODE_ZY = 2,
MDATA_SPLINE_PROJECT_MODE_XZ = 3,
MDATA_SPLINE_PROJECT_MODE_X_AXIS = 4,
MDATA_SPLINE_PROJECT_MODE_Y_AXIS = 5,
MDATA_SPLINE_PROJECT_MODE_Z_AXIS = 6,
MDATA_SPLINE_PROJECT_MODE_SPHERICAL = 7,
#endif // ToolSplineProject
On 20/06/2007 at 01:02, xxxxxxxx wrote:
That's exactly what I needed. Thanks a lot!