Start for C++
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/11/2004 at 15:24, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.012
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi all,I just started to understand how i can make port from coffee to c++.
In coffee i can easy get an object with a otherobj=op->GetNext(); or with a FindObject(); then i can understand if is a Primitive, pointobject, splineobject or any others derivate from BaseObject class.
How i can make samething in C++?Thanks
Renato T. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/11/2004 at 23:18, xxxxxxxx wrote:
i hope that my post was not a stupid post
Best regards
Renato T. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2004 at 09:09, xxxxxxxx wrote:
otherobj->IsInstanceOf(Opoint) (or Opolygon, Obase, Ospline, etc.)
No post is stupid.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2004 at 10:44, xxxxxxxx wrote:
Kuro
I need to create otherobject with a GetNext() or similar function then i can verify with IsInstanceOf.
But GetNext()is not working.I'm study Spherize.cpp source and i'm trying to get a spline like other argument to make new deformator but i still don't working
Other good things is to get spline object from argument on attribute manager but i need to create a different parameters like Strenght or Radius.
i'm sorry for my bad english but i hope that you understand.Cheers
Renato T. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2004 at 15:03, xxxxxxxx wrote:
I don't understand 'create'. GetNext() retrieves the next object in the Object Manager (GetDown() retrieves the first child of the object). In order to 'create' an object (BaseObject), you need to call newObject = BaseObject::Alloc(type) where 'type' is Obase, Onull, Obone, Ospline, etc.
Then, you insert the object into the Document with baseDocument->InsertObject(newObject, PARENT, PREV, BOOL) where PARENT is the BaseObject to parent 'newObject' to (or NULL for no parent), PREV is the BaseObject which should precede this one in the Object Manager (or NULL for it to be first), and BOOL is 'TRUE' or 'FALSE' to check for duplicate name and rename this one with a '.N' index (like MyObject.1).
Let me know if one of these directions in which I'm heading is good?
Robert
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2004 at 21:10, xxxxxxxx wrote:
Kuroyume0161, thanks for your patience
I wrong to speak, i don't need to create but i need to "get" other obj that is a SplineObject.
I need to make a new parameters (Link or Object) for spherize deformator to read points and tangents for curve.
A parameters like Spline Deform that have 2 Spline like arguments.I hope that you can understand this bad english
Cheers
Renato T. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2004 at 23:02, xxxxxxxx wrote:
So, you have a deformer object with spline objects as children, right?
But, you want to make sure that they're spline objects after using obj->GetNext() and before using them in some processing?
If the splines are children of the deformer, you should do something as follows:
BaseObject *child; if (child = deformer->GetDown()) { for (child; child; child = child->GetNext()); { if (child->IsInstanceOf(Ospline)) // this object is a Spline, do your thing } }
This starts by getting the deformer's first child object. Then it goes down the object list looking for any object that is a Spline object (Ospline). When an object is found to be a Spline, you can do what you need, like add it as a BaseLink in the deformer's Attributes.
This code doesn't handle a hierarchy (objects with children with children and so on), but that can be done with a recursive method if needed.
Robert
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2004 at 01:08, xxxxxxxx wrote:
thanks, i can start from this
Renato T.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2004 at 01:12, xxxxxxxx wrote:
Robert, i tried to send email to you from your website but i got error.
Delivery Status Notification - Failed
i need to tell you something.
thanks
Renato T. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2004 at 20:31, xxxxxxxx wrote:
Did you get my private message?
Robert
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2004 at 22:14, xxxxxxxx wrote:
yes thanks
Renato T.