Set Focus to Camera
-
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); \>
the following also works
>
\> var cam = AllocObject(Ocamera); \> doc->InsertObject(cam, NULL, NULL); \>
The following code doesn't work with both version.
>
println(cam-> GetFocus());
with kind regards msthavoc
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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); \>
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/06/2008 at 02:52, xxxxxxxx wrote:
thank you very much, my problem is solved.
with kind regards msthavoc