Isotropix Forums

Copying particles to another particle container?

Clarisse Scripting related topics

Copying particles to another particle container?

Unread postby pschloter » Mon Oct 05, 2020 1:17 am

Is it possible to copy existing painted particles from container to another existing particle container?
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Copying particles to another particle container?

Unread postby dboude » Mon Oct 05, 2020 9:07 am

Hi,

I guess. By creating a third container and fill it with the points from the other two.

This might help https://clarissewiki.com/4.0/sdk/manipulating_point_clouds.html

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Copying particles to another particle container?

Unread postby pschloter » Mon Oct 05, 2020 6:40 pm

Thanks. There is no feature in the UI to move the particles from an existing container to another existing container correct?
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Copying particles to another particle container?

Unread postby sam » Mon Oct 05, 2020 6:41 pm

Not move but merge yes in the Particle Shelf. There's a merge particles script.
EDIT: I meant Bake (you can bake multiple particles together => merge)
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm

Re: Copying particles to another particle container?

Unread postby pschloter » Mon Oct 05, 2020 7:32 pm

Thanks, got it. There is no way to replace the particles in an existing container though, correct? Trying to find some way to not have to re-connect the container and use an existing already "hooked up" particle container.
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Copying particles to another particle container?

Unread postby dboude » Tue Oct 06, 2020 8:32 am

pschloter wrote:There is no way to replace the particles in an existing container though, correct?


In the UI no, but with a script it's possible.

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Copying particles to another particle container?

Unread postby pschloter » Fri Oct 09, 2020 2:12 am

Hi Démian,

How does one access the point positions for a GeometryParticleContainer? Ideally, a function would return an array with the positions. Thanks!

item = ix.selection[0]
if item.get_module().is_geometry():
geo = item.get_module().get_geometry()
ptc = geo.get_point_cloud()

fails with AttributeError: 'SwigPyObject' object has no attribute 'get_point_cloud'
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Copying particles to another particle container?

Unread postby anemoff » Fri Oct 09, 2020 9:59 am

Hi,

It seems that some classes are missing in the Python bindings or auto-downcast is broken.
Please create a bug report.

Thanks,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 373
Joined: Wed Jan 13, 2016 10:10 am


Return to Scripting