Thanks Gergely – it’s because I’m trying to use it in a parameter script. Didn’t get an error because I was doing it in the master script, so thought I’d managed to get around it. But no.
I am trying to do this so I can list the BMat ID of the object in a schedule. How would I go about this otherwise?
AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb