Isotropix Forums

Creating objects with create_polymesh with live attributes?

Clarisse Scripting related topics

Creating objects with create_polymesh with live attributes?

Unread postby atnreg » Thu May 02, 2019 10:41 am

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
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP2b,Blender,Fusion360,Houdini,ZBrush,Onyx,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 485
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Creating objects with create_polymesh with live attribut

Unread postby sam » Thu May 02, 2019 7:37 pm

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.
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1387
Joined: Fri Jan 25, 2013 11:33 pm

Re: Creating objects with create_polymesh with live attribut

Unread postby atnreg » Fri May 03, 2019 6:29 am

Oh, I was afraid of that...
Thank you anyway, now I won't waste time on trying :)
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP2b,Blender,Fusion360,Houdini,ZBrush,Onyx,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 485
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland


Return to Scripting