Petras1
(Petras Vestartas)
August 29, 2023, 8:31am
1
Hi,
I have a specific question regarding Rhino UI of object properties.
Is there any way to write custom code using Python to add additional option of the object properties tab? I would like to preview (toggle off/on) attributes of a geometry object. Is there any sample code?
This is an illustration what I am trying to do:
Tom_P
August 29, 2023, 4:59pm
2
does this older topic help ?
Petras1
(Petras Vestartas)
August 29, 2023, 8:59pm
3
Thank you for the reference.
But the examples are in C# which I image needs to be compiled. I am wondering if a similar python project exists.
Petras1
(Petras Vestartas)
August 30, 2023, 7:27am
4
@dale
What would be the most common approach in this scenario?
Probably there are two follow up questions:
can this be done using python only?
if not, can I for example develop a plugin using C++ , store for example attributes in a rhino object attributes, and for the backend use Python?
dale
(Dale Fugier)
August 30, 2023, 2:46pm
5
No. To extend the Properties panel, you’ll need a plug-in (C#, C++).
Petras Vestartas:
if not, can I for example develop a plugin using C++ , store for example attributes in a rhino object attributes, and for the backend use Python?
Yes. It will some assembly and p/invoke work.
– Dale
1 Like
Petras1
(Petras Vestartas)
August 30, 2023, 10:20pm
7
Could you please point me to C++ project example for the Properties Panel?
dale
(Dale Fugier)
August 30, 2023, 11:08pm
8
1 Like