Camera Switching
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 01:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi !
The goal is to make a camera the active one when it is selected...
I can't get it work. (C4D 11.5).The C.O.F.F.E.E Tag is on the camera itself.
main(doc,op) {
var bd,cam;
cam=op;
bd = doc->GetActiveBaseDraw();
bd->SetSceneCamera(cam); <- this always returns "Member not found" ...
}
Thanks for help.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 08:32, xxxxxxxx wrote:
Something like this should work:
main(doc,op) { var bd = doc->GetActiveBaseDraw(); bd#BASEDRAW_DATA_CAMERA = op; }
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 08:57, xxxxxxxx wrote:
just to add. SetSceneCamera member is not available in COFFEE, that´s why it wouldn´t work int he first place and gives you this message. Matthias code works just fine though.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 13:53, xxxxxxxx wrote:
It works great ! That was so simple, I think I saw it when I explored BaseDraw.h, I didn't deduced it was the one :D...
So Matthias, 3D Designer, my question is now :
Why "SetSceneCamera()" isn't available in C.O.F.F.E.E. although it is in the C.O.F.F.E.E. SDK I just picked up on www.Plugincafe.com ?
Is there a way to know which commands works with C.O.F.F.E.E. and which one doesn't ?Lots of thanks !
void SetSceneCamera(BaseObject* op)_<_h4_>_
Sets a new scene camera. If op is NULL, the editor camera is used._h5> _Paramet_ <_h5_>_i>
> BaseObject* op
>
>> The new camera. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 14:21, xxxxxxxx wrote:
I just downloaded the coffee docs and I don´t see this command documented. Are you sure you didn´t download teh c++ sdk docs?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 15:44, xxxxxxxx wrote:
woops ... Seems like you're right ... It is less complicated than the C++ one, and I guess less powerfull too...
Thank you again !
Mike