Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CShapeTranslator::MakeCommonAttributes

2 REPLIES 2
Reply
Message 1 of 3
esmithADCDZ
256 Views, 2 Replies

CShapeTranslator::MakeCommonAttributes

I have a translator that used to work fine when compiling with gcc 4.9.2, but when compiled with gcc 5.30 or gcc 6.3.0, crashes maya when loaded.

It seems very similar in nature to:

https://answers.arnoldrenderer.com/questions/886/mtoa-api-cextensionattrhelper-error.html

The NodeInitializer method of the translator is:

void CABCViewerTranslator::NodeInitializer(CAbTranslator context)

{

CExtensionAttrHelper helper(context.maya, "procedural"); CShapeTranslator::MakeCommonAttributes(helper);

CAttrData data;

data.defaultValue.BOOL() = false;

data.name = "overrideGlobalShader";

data.shortName = "ogs"; helper.MakeInputBoolean(data) ;

}

When compiling with gcc 5/6, commenting out CShapeTranslator::MakeCommonAttributes(helper);, allows the translator to load fine.

Compiling against Arnold 5.0.2.3, MtoA 1.2.0.2 and Maya 2018.

Tags (1)
Labels (1)
2 REPLIES 2
Message 2 of 3

Hi, MtoA for Maya 2018 is compiled with gcc 4.8.2, and since there are STL symbols in the API it's normal that it breaks with gcc 5/6.

(btw, I'm assuming you meant MtoA 2.1.0.2 and not 1.2.0.2 which is several years old)

Message 3 of 3
esmithADCDZ
in reply to: esmithADCDZ

Hi Sebastien,

Yes, I meant 2.1.0.2!

I thought it might have something to do with the compiler that you use, so I grabbed the HB-2.1.0.2 tarball from gitlab and compiled it with gcc 5.3.0. Perhaps that doesn't remove those STL symbols though.

Mtoa loaded and rendered ok in maya, but the problem with the translator persisted.

Is there anything to be done about this?

thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report