Making an Object Instance
- 
					
					
					
					
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 10/05/2004 at 05:17, xxxxxxxx wrote: User Information: 
 Cinema 4D Version: 8.207
 Platform: Mac OSX ;
 Language(s) : C++ ;--------- 
 This is a simple question, but I could not find documentation for it.With the C++ SDK, how do you create an instance of a BaseObject? I looked at the posts here on making a clone, but it appears that a clone is a copy, not an instance. I can allocate an instance with: 
 BaseObject* ob = Alloc(Oinstance);But then how does one set the source object for this instance object? 
- 
					
					
					
					
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 10/05/2004 at 05:37, xxxxxxxx wrote: Please see Oinstance.res. In there you'll find that AutoAlloc<BaseLink> link; if (link) { link->SetLink(anotherobj); ob->SetParameter(DescLevel(INSTANCEOBJECT_LINK), GeData(link), 0); }does the trick. 
- 
					
					
					
					
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 10/05/2004 at 05:44, xxxxxxxx wrote: Thanks Mickael!