Node - visibility status
turnip26 a commencé cette discussion dans 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 réponses · Page 1 sur 1
Avatar de Scrubs
Administrateur

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 de Scrubs
Administrateur

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 de Scrubs
Administrateur

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.

Publicité
2 participants
Avatar de turnip26
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.