Line Art Object scale/size tolerance?

I chose to use a GPencil generating Line art to add an outline to an animation. In this animation, I rely a lot on scaling objects/bones to 0.001 in order to make objects appear and disappear. The issue this gives me, is that the LineArt generation still pics up the microscopic meshes and gives me a little dot for it. I know that I can move those micro meshes away from the camera’s view when they’re small, but for this project, the way it’s been built, this would take a considerable amount of time.

I’m asking if there is a way or a trick to make the lines smaller than x in length not appear?

Example:

If the objects are separate, create the following GN on one of them (after the armature):

Copy the modifier to all of them.

If they are all part of the same object… try this instead:

Good luck.

3 Likes

Thanks a lot for the idea, it would work great, but since my objects are child of bones, and are scaled globally by the bone, their local size doesn’t change, so the geonode setup is not dynamic with the size of the object. Do you know of a way to evaluate the global size for the bounding box, instead of the local size?

test.blend (701.1 KB)
In that test setup, I would need the cube that’s parented to the empty to disappear. That seems inaccessible since the inherited size doesn’t appear in the object’s date (as far as my knowledge go).

This might work in your case:


Also try the “Relative” setting if the above doesn’t work.

Good luck.

1 Like

It does! I learned quite a bit thanks to you. I still need to understan why this works though!

Thanks again

Why not just animate the visibility?

Line Art don’t care about that.

Never mind - correction: it’s only on the frame it doesn’t care if you’re animating visibility - in the animation it does care. So would be a valid solution.

1 Like

Long story short, the animation is going to be use in a WebGL engine as well, where you can’t animate the visibility. Also I have a lot of independent objects, which would require a lot of time to animate the visibility.

On the latter, there are ways around that (collections, view layers) - but, yeah … none of that would help if this is not an animation, but web content.

1 Like