THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2007 at 20:55, xxxxxxxx wrote:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
Newbie question. I'm trying to write COFFEE scripts and find there is always a disagreement between the documentation and the real thing when it comes to method names. One example is the GetPos() command.
All my SDK docs and even the ebook I bought say I can use GetPos to get an object's position. When I type the command into a COFFEE script inside a COFFEE tag attached to an object, the C4D compiler chokes on GetPos but approves GetPosition. I've looked at "C" code, docs, etc. - they all say GetPos not GetPosition. Any pointers on what I'm missing?
Thanks. - Lee
On 15/12/2007 at 04:26, xxxxxxxx wrote:
Sorry, I cannot confirm that. the Coffee SDK docs clearly say GetPosition() here.
On 15/12/2007 at 18:19, xxxxxxxx wrote:
Thanks for the reply Katachi. Maybe I am looking at the wrong documentation.
Here is an exerpt from the R10 SDK html files. This is at the top of the page describing the BaseObject as detailed in the file c4d_baseobject.h
class BaseObject : public BaseList2D
Real GetVisibility(Real parent);
void SetPos(const Vector& v);
The windows help file shows the same thing - GetPos(). It also shows a GetPosition() method, but that is for the position within a file, whereas I am looking for the command for the position of an object relative to it's parent object.
On 15/12/2007 at 18:25, xxxxxxxx wrote:
it´s the C++ SDK you are looking at. The coffee SDK is only available for 9.5. There is no COFFEE doc for higher versions available.
Get it here: http://www.maxon.net/pages/support/plugincafe_downloads_e.html
or direct link here:
On 15/12/2007 at 18:45, xxxxxxxx wrote:
Thank you, thank you, thank you!
You have saved me many MORE hours of trial and error as I learn to use COFFEE.
I figured it had to be something like that but I was unaware of the COFFEE SDK for earlier versions. I will download it ASAP.
Thanks for taking the time!