Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/06/2008 at 16:02, xxxxxxxx wrote:
User Information: Cinema 4D Version: 10 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- Hi i want adding a Camera.
> \> var cam = new(CameraObject); \> doc->InsertObject(cam, NULL, NULL); \>
\> var cam = new(CameraObject); \> doc->InsertObject(cam, NULL, NULL); \>
the following also works
> \> var cam = AllocObject(Ocamera); \> doc->InsertObject(cam, NULL, NULL); \>
\> var cam = AllocObject(Ocamera); \> doc->InsertObject(cam, NULL, NULL); \>
The following code doesn't work with both version.
> println(cam-> GetFocus());
println(cam-> GetFocus());
with kind regards msthavoc
On 13/06/2008 at 01:31, xxxxxxxx wrote:
GetFocus() is not defined for COFFEE.
You have to read out the description elements, something like this:
> \> println(cam#CAMERAOBJECT_TARGETDISTANCE); \>
\> println(cam#CAMERAOBJECT_TARGETDISTANCE); \>
cheers, Matthias
On 13/06/2008 at 02:52, xxxxxxxx wrote:
thank you very much, my problem is solved.