How to load a Scalars Overlay for a Model Node via Python

Hello,

I want to overlay some .mgh file on model (lh.pial),
the model can be loaded by:
model = slicer.util.loadModel(‘lh.pial’)
but it did not work by:
scalar = slicer.util.loadScalarOverlay(‘surf.mgh’)
Is there a function to overlay the .mgh on model?

Thanks so much.

A post was merged into an existing topic: Loading a Scalars file (.mgh) Overlay for a Model Node (.pial) via Python