Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

[Maya 2024][bug] Flagged Built-in Python Function - Security Warning

[Maya 2024][bug] Flagged Built-in Python Function - Security Warning

Hanslee1991
Explorer Explorer
6,756 Views
4 Replies
Message 1 of 5

[Maya 2024][bug] Flagged Built-in Python Function - Security Warning

Hanslee1991
Explorer
Explorer

Hello friends, I need help resolving a bug I have been running into on Maya 2024.

I have been working on making a placeholder robot model for a personal project.

 

For a quick background about my knowledge on Maya. I'm mostly self-taught on using the program. More specifically in animation and character rigging. So 3D modeling, UV unwrapping, Shaders/Shader Groups, and other aspects of Rendering are fairly foreign to me. Thus one of the reasons for my side project.

That said, My model has a TV face which I want to have the screen update with different expressions. As if it has to change the channel to emote.

After researching what materials I needed to use. I was recommended to use the ones from Arnold. As I read that these work with PBR pipelines. Like those in Unreal engine. (Where I am trying to send it over to in the future.)

 

This said, the last few times I have tried to use these shaders. If I hold Right Mouse Button and attempt to select "Assign existing material" to the selected mesh. I will end up with this warning message, which soft locks my file. As I cannot select anything from, or exit the radial menu from the RMB. Nor can I select the "Allow" or "Deny" buttons on the window.

I don't know what is causing this issue? If there is a work around? If I have a specific plug-in or setting toggled that is causing this error? Or if this is just a good old fashioned bug?

 

With my established confusion to this issue stated. I would like to point out that this bug seems to happen more frequently after creating an AiImage node. But I am unclear if this is officially the cause? Or is simply coincidental?

If someone knows about this issue and how to fix it, I would be deeply grateful!

 

Thank you

Hans L.

Hanslee1991_0-1701991340401.png

 

Text from warning window:

Flagged Built-in Python Function - Security Warning

Warning: This scene file has stopped loading because it is attempting to call python built-in compile function.

More information:

Function: compile('[(Maya/Sufrface/Standard Surface, standardSurface),(Maya/Surface/Blinn,blinn),(Maya/Surface/Lambert,lambert),(Maya/Surface/LayeredShader,layeredShader),(Maya/Surface/Phong,phong),(Maya/Surface/PhongE,phongE),(Maya/Surface/Ramp Shader,rampShader),(Maya/Surface/SurfaceShader,surfaceShader),(Maya/Surface/Use Background,useBackground),]',"unknown",'eval', 1024, '_feature_version'=-1)

 

What do you want to do?

Choosing 'Allow' will execute the function above and open the file.

Choosing 'Deny' will block the function above and continue loading the file.

Learn more about security preferences

Allow/Deny

Apply to all flagged built-in functions in this file

0 Likes
Accepted solutions (1)
6,757 Views
4 Replies
Replies (4)
Message 2 of 5

brentmc
Autodesk
Autodesk
Accepted solution

Hi,

 

Are you using Maya 2024.2?

As a workaround you should be able to go into the Maya security preferences and uncheck the compile function under Security > Python to disable the popup.

 

screenshot_000276.png

Brent McPherson
Principle Engineer
Message 3 of 5

Hanslee1991
Explorer
Explorer

Hi @brentmc 

 

I am currently using Maya 2024.1, from what I can tell.

 

Still, I will give this a shot and report back in a bit. 😊

 

Thank you

0 Likes
Message 4 of 5

Hanslee1991
Explorer
Explorer

@brentmc 

 

Looks like this has fixed the problem I was running into.

 

Thank you so much for the help my friend!

ThanksForTheSaveSonicTheHedgehogGIF.gif

0 Likes
Message 5 of 5

joeTCN99
Participant
Participant

Hi, 

I've encountered this this problem too. Maya 2024.2, windows and linux. I've found hitting enter will run the allow method - which gives me back control on Linux. On Windows, maya crashes!

 

I can disable the flagging for calls to 'compile' as mentioned above. We often deal with externally provided scene files though - is it risky turning off this flagging setting?

 

Thanks