R18 Python Details
-
On 25/07/2016 at 21:00, xxxxxxxx wrote:
Any updates on what new little Python bits we will get with R18?
Kind Regards.
-
On 26/07/2016 at 09:20, xxxxxxxx wrote:
Hello,
Well, R18 actually brings important additions to the Python API, not only little bits
As part of our ongoing effort to bridge the gap between Python and C++, the R18 Python API now supports:
- Dynamic descriptions: NodeData.GetDDescription()/GetDParameter()/SetDParameter() and enhanced Description class
- BodyPaint 3D UV commands: CallUVCommand() and GetActiveUVSet()/FreeActiveUVSet()
- Texture baking: InitBakeTexture()/BakeTexture()
- All Custom GUIs: BaseCustomGui class is no longer empty and provides methods (e.g. GetData()/SetData())
The Python API also adds support for the following new R18 features:
- MoGraph Weight
- Substance Engine
- Object Tracker
- Quaternion Rotation
- Vertex Colors
- Color Swatches
-
On 26/07/2016 at 11:28, xxxxxxxx wrote:
Does that mean that the ListView gizmo works now?
In the previous versions. We could create an instance of the gizmo. But there was no way to populate it with data.-ScottA
-
On 26/07/2016 at 16:57, xxxxxxxx wrote:
Cool! Thanks Yannick!
Congratz with R18!
-
On 27/07/2016 at 02:26, xxxxxxxx wrote:
Hi Scott,
Originally posted by xxxxxxxx
Does that mean that the ListView gizmo works now?
In the previous versions. We could create an instance of the gizmo. But there was no way to populate it with data.Are you talking about the TreeViewCustomGui? This custom GUI has been working for several releases now but the related TreeViewFunctions class is not documented currently.
The changes related to custom GUIs have impacts on all custom GUIs, but especially on empty CustomGui classes like the InExcludeCustomGui.
For instance BaseCustomGui.SetData()/GetData() will be available to set and get a custom GUI data. -
On 27/07/2016 at 07:55, xxxxxxxx wrote:
No. I mean the SimpleListView gizmo.
https://developers.maxon.net/docs/cpp/2023_2/class_simple_list_view.htmlWhen I use help on an instance of the class in the console in R13. There are no functions in it like DataChanged() that are required to add the data to the LV gizmo.
I asked about it a few years ago. And I was told it was not supported in Python yet.
I've been checking the upgrades since then. But I've never seen any new changes that made this gizmo work in Python. -
On 28/07/2016 at 02:47, xxxxxxxx wrote:
Hi Scott,
I'm afraid the SimpleListView gizmo is still not available in Python. It will be added to the list of missing classes in the Python API.
-
On 28/07/2016 at 06:56, xxxxxxxx wrote:
OK. Thanks.
-ScottA