Color Palette input in Dynamo Player

Hello Everyone,

I want to revisit an issue I first encountered in 2022. Back then, it was impossible to pick colors via palette from Dynamo Player, see screenshot. Has there perhaps been some development in this regard?

Hi,

Alternatively, you can use the Revit API UI.

# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference("RevitAPIUI")
from  Autodesk.Revit.UI import *
import  Autodesk.Revit.UI as RUI

clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
import Autodesk.Revit.DB as DB

window = ColorSelectionDialog()
#Allows the window to popup
selected = ColorSelectionDialog.Show(window)
if selected == ItemSelectionDialogResult.Confirmed:
    #Gets the selected color
    color_rgb = window.SelectedColor
    OUT = color_rgb.Red, color_rgb.Green,  color_rgb.Blue
else:
    raise Exception("Canceled by User")

You are a legend, thanks!