Been trying to get this to work. So the python component has no input or output and draws a custom mesh. It needs to set a ClippingBox, but it has no affect with python 3 script.
The same thing works fine with C#.
In the image the mesh is visible as the C# providing the clippingbox like a a crutch. As soon as the Py3 is alone or the C# preview off, the mesh is not drawn.
Same problem on mac and windows.
Would be grateful for any help. Even confirming if it works or not elsewhere.
Thank you, Anders!
I have actually followed your examples and tried different ways. Haven’t found a single one that works on my setup(s) right now.
I have tried to use the IsPreviewCapable also.
I don’t think there could be much of a difference in how I initiate the BoundingBox, but I have also tired different methods and scopes. Lookin in the debugger I see that it is nicely available before return.
I am wondering if it could be bug in current release. Mine is (8.15.25019.13002, 2025-01-19 on mac)
Yes. Thanks!
I have now come to a similar resolution.
So the following syntax (as it comes with the script template and is stated in the docs) does not work (currently):
I also tried in C# script.
And it has not effect there either. It also needs at least one output to be able to have a preview.
Seems to be something in how the new script component handles / allows the overrides.
Ugh I had completely forgotten about this. So in pythonnet there is a different property decorator for when a python class needs to override property of its base dotnet class: