Page 1 of 1

Creating objects with create_polymesh with live attributes?

Unread postPosted: Thu May 02, 2019 10:41 am
by atnreg
Hi!

I found the great example code from Sam where an OBJ is converted into Polymesh (https://forum.isotropix.com/viewtopic.php?f=21&t=5307&p=19070&hilit=create_polymesh#p19070)
As Clarisse only has Box, Cylinder, Sphere and Polygrid, Polypshere 'primitive objects', I thought it would be cool to make some more to help with scattering etc. :)

The code adapted from Sam's works but now I would like to make them adjustable the same way as Polysphere Spans, Sides i.e. live attributes controlling the mesh.
The problem is that only way I know to make 'live' stuff is scriptedclass but it cannot act as Polymesh so I'm confused :?
I can of course make scriptedclass that has Polymesh 'linked' to it but it is not the same.

Can you please tell me how to do it, maybe even provide the code for Polysphere, that would be nice starting point? :mrgreen:

Thank you!

Antti

Re: Creating objects with create_polymesh with live attribut

Unread postPosted: Thu May 02, 2019 7:37 pm
by sam
No you can't. You need to make it in C++ and moreover, you'll never be able to do it in Python because of the GIL.

Re: Creating objects with create_polymesh with live attribut

Unread postPosted: Fri May 03, 2019 6:29 am
by atnreg
Oh, I was afraid of that...
Thank you anyway, now I won't waste time on trying :)