THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/10/2008 at 09:02, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
I'm wanting to populate a document with many random shapes and colors. I don't understand how to assign materials to these shapes via COFFEE. For instance, say I've got this:
> var foo_sphere; \> foo_sphere=new(SphereObject); \> doc->InsertObject(foo_sphere,NULL,NULL);
,
and I'd like to
- create a material
- fill, say, the luminance channel with a particular color
- assign that material to the sphere I've just created above.
If someone could show me the few lines of COFFEE code that would do this, and/or point me somewhere in the "minimalist" documentation to look, I'd be extremely appreciative.
thanks,
Michael