Create Model from segment with certain color

Hello to all,
I managed to create a model from a segmentation.

shNode = slicer.mrmlScene.GetSubjectHierarchyNode()
sceneItemID = shNode.GetSceneItemID()
exportFolderItemId = shNode.CreateFolderItem(sceneItemID , “Models”)
FinalModel = slicer.modules.segmentations.logic().ExportAllSegmentsToModels(segmentationNode, exportFolderItemId)

How can I set the color of the model? I tried to use the following code but the final model had no details.

FinalModel=slicer.mrmlScene.GetFirstNode(NameOfModel,‘vtkMRMLModelNode’)
modelDisplayNode = FinalModel.GetDisplayNode()
modelDisplayNode .SetColor(250,0,0)

Colors of the exported models are taken from the segment colors, so the easiest is to set the segment’s color before the model export.