allowCooking = false on Table referenced geo

I am referencing an FBX COMP in a table (named shadowCasters) like so


I need to somehow use this reference to disable cooking on the same FBX COMP. ie allowCooking=false
Simply adding .allowCooking=false to the path reference in the table doesn’t work.

@art3mis I don’t think the allowCooking flag can be evaluated as an expression.

You’d instead need to look for a specific event when you want to run a script that targets your geo:

op('yourFBX').allowCooking = False

I don’t usually like to hard flip cooking like this unless you have no other options - when you turn cooking back on you’re almost guaranteed to see frame drops or see your project stall while the geometry is reinitialized.

Thanks. Good advice.