THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/11/2007 at 07:18, xxxxxxxx wrote:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac OSX ;
when we use the xref, the materials assigned to the xreferenced geometry is not in our document.
How i can get the materials attached to a Xref?
I'm on VP_INNER
On 27/11/2007 at 07:26, xxxxxxxx wrote:
ok, i got it .. with GetCacheParent on the CacheParent.
In fact i detect the Xerf in this way:
On 18/12/2007 at 15:13, xxxxxxxx wrote:
i see that the materials from xref objects are not in the active basedocument.. but.. if i get a material associated to the xref and call the xrefmat->GetDocument()... the document pointer is the same of the active document... so. To make a fast routine without loop on all RayObject.. get TextData->mp... how i can get these materials?
On 18/12/2007 at 16:00, xxxxxxxx wrote:
I get the xref material
doc = xrefmat->GetDocument(); // Doc is valid
BaseMaterial *mat2 = doc->GetFirstMaterial(); // mat2 == NULL;
On 19/12/2007 at 09:20, xxxxxxxx wrote:
On 19/12/2007 at 10:40, xxxxxxxx wrote:
Sorry, I have no idea. I have to check this myself and see if I can get an answer from the developers.
On 19/12/2007 at 11:32, xxxxxxxx wrote:
there must be a part where i can get all materials for each Xref because with any xref mat can be possible to loop trought to all mats in each xref.. but will be good to know how to find them without loop all rayobjects.