Node - visibility status
turnip26 started this discussion in Animation Editor

Hi, is this currently limited to one object at a time? My idea was to have 10 bricks appear over a 10 second period to reveal a build. That can be done by doing a compare of the frame number and making the brick visible from a selected frame but for a large build that would be painful, having to create two nodes for each brick and defining the frame that each brick becomes visible from ...

6 replies · Page 1 of 1
Avatar of Scrubs
Administrator

Most nodes can accept a list. You can actually visually see if an IO can handle lists. The connector point is less opaque when it does.
However, not all nodes currently exist to generate a list of 3D objects.

For example the Visibility Output node can accept a list for both inputs. The object visibility is set according to the boolean located at the same index:

  • objects = [object1, object2, object3];
  • visibility = [true, false, true];

object1 and object3 will be made visible and object2 will be made invisible.

Remember that visibility also depends on the parent. If the parent has the visibility turned off, no matter what you set, children will remain hidden.

Thanks - I'll have to wait until all nodes do exist to get a list of objects then - then I can set visibility based on some math over time and achieve my result. I noticed a 3D viewer has appeared overnight 😃

Oh and the zoom in and out of the node editor is ace 😃!

Avatar of Scrubs
Administrator

It displays the input vectors in the 3D viewport. It is great to visualise positions without the need to add parts.
I also worked the whole day to add the support for zooming and panning in all four directions.

Avatar of Scrubs
Administrator

Here is an example of both nodes together:
https://i.imgur.com/128piLk.png

Both fabulous additions - are you planning to add INVERT as an option to VECTOR MATH NODE? At the moment I am having to separate the vector, do my math on the one I want to invert and combine them again. It works but it's a bit messy.

Advertising
2 participants
Avatar of turnip26
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.