PluginShader Xlayer

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/10/2009 at 15:17, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hello

I want to create PluginShader that is contained in LayerShaderLayer class.

But, I couldn't do it.

Could you give me an example?
My code not working. Child is not created.

> \> mat = BaseMaterial::Alloc(Mmaterial); \> if (!mat) return FALSE; \> doc->InsertMaterial(mat, NULL, FALSE); \> \> PluginShader\* shd = PluginShader::Alloc(Xlayer); \> if(!shd) return FALSE; \> PluginShader \*shbitmap = PluginShader::Alloc(Xbitmap); \> if(!shbitmap) return FALSE; \> PluginShader \*shcheck = PluginShader::Alloc(Xcheckerboard); \> if(!shcheck) return FALSE; \> \> shbitmap->GetDataInstance()->SetFilename(BITMAPSHADER_FILENAME, Filename("tex") + memshaderplus[k].texturename); \> shd->InsertShader(shcheck, NULL); \> shd->InsertShader(shbitmap, NULL); \> \> filemater->GetDataInstance()->SetLink(MATERIAL_COLOR_SHADER, shd); \> filemater->InsertShader(shd, NULL); \> \>

thanks
dinnye

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/10/2009 at 18:29, xxxxxxxx wrote:

This is currently not possible.

insert shader under layer shader

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/10/2009 at 21:36, xxxxxxxx wrote:

thanks