Skip to content

rendering into a single plane in another pile #2398

Answered by dankamongmen
joseluis asked this question in Q&A
Discussion options

You must be logged in to vote

so you have Pile A, Pile B, Pile C

Pile A has Plane 1, Pile B has Plane 2 and Plane 3, Pile C has Plane 4

and you want to retain all this, plus have new Pile D with Plane 5, which is a combination of the other 4?

planeD1 = ncplane_dup(plane1);
planeD2 = ncplane_dup(plane2);
planeD3 = ncplane_dup(plane3);
planeD4 = ncplane_dup(plane4); // have duplicated all four planes
ncplane_reparent(planeD1, planeD1); // make new pile with plane1 at root
ncplane_reparent(planeD2, planeD1);
ncplane_reparent(planeD3, planeD1);
ncplane_reparent(planeD4, planeD1); // all dups are now in their own pile
ncplane_mergedown_simple(planeD2, planeD1);
ncplane_mergedown_simple(planeD3, planeD1);
ncplane_mergedown_…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@dankamongmen
Comment options

@dankamongmen
Comment options

@dankamongmen
Comment options

@joseluis
Comment options

joseluis Nov 28, 2021
Collaborator Author

@dankamongmen
Comment options

Answer selected by joseluis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants