Jump to content

Windows from polygons - example nodes


Smolak

Recommended Posts

If someone is interested here is my first attemp to using R25 nodes to build windows from polygons. You can interactively change depth and size of widnows frames. This is of course very simple example but can be easily expanding further.

 

Unfortunately at the moment only way to using object polygon selections in scene nodes is by weight maps. There is missing Get Selection node that exist in manual. It could probably read selection tags.

 

image.png.f0b4b8a35f41597c9b7ef284607e06bc.png

 

image.png.cdcbd04de228e0ad6297f96d1fa5010a.png

NODE Windows from Polygons_0001.c4d

 

image.png.623d02e2ca5c2fda93e608c625ad9660.png

Link to comment
33 minutes ago, Hrvoje said:

You can do selections by using "select" node and designate the selection you want to use. Check the scene 🙂

NODE Windows from Polygons_mod.c4d 260.65 kB · 0 downloads

Thank you very much for this tip. I tried select node but I didn't know that in selection string there is need to add " " string while typing tag name 🙂

Link to comment

You can also use some predefined stuff here - copy&paste from doc

 

re you can enter the name of the selection that you want to read out. Otherwise, the active selection will be used. You can also use special keywords and logical operations here to create a new selection from scratch or a combination of already saved selections. The following keywords and operations can be used:

  • default: If the geometry already has an active selection, it will be used for the output. If no selection is active, all elements of the chosen type will be used.

  • odd: All elements of the chosen type that have an odd index will be selected.

  • even: All elements of the chosen type that have an even index will be selected.

  • all: All elements of the chosen type will be selected.

  • hidden: Hidden elements will get selected.

  • Name of a saved selection: Use the name of a stored selection to make it active. Take care to use quotes with selection names. You can also use a combination of a saved selection and another keyword or selection.

  • Index string: You can use index numbers directly as you would with the “Index Array from String” Node.

  • Using operations: You can use mathematical and logical operations to combine or subtract selections. Using the string odd – “center” for instance selects all odd elements and then subtracts the selection that has been stored by the name “center”. You can use +, -, & (logical and), | (logical or) as well as a comma to combine multiple selections or index sequences

For those built in  selections you don't need to use quotes. so use odd instead of "odd" for example. Only names selections use quotes

Link to comment

Scene nodes especially with the new Capsules are incredibly powerful. They are game changer. Maxon should advertise them with more special tutorials.

Next time I will try how to make fences using Nodes by using custom objects as parts and copy them by spline with intelligent scalling withing spline.

Link to comment
  • 2 weeks later...

I need more clarification on this - the 'Get Selection' node is present in R24, it's present in the manual of R25, but it's missing in the actuial program of R25.

Was it replaced at the last minute & the documentation hasn't caught up, or is this a bug we need to report ?

This particular example aside, they are for reading in a 'Geometry' input from a 'Store Selection' node & outputting 'Indices' to feed into a 'selection' port - is something else doing this job now, or is it just missing ?

Link to comment

Documentation has to be updated. Selection to Indices is get selection node but name was misleading. The node will output index value for any selection that is stored in stream. For example:

 

You can have a selection with some predefined keyword

 

predefined_keyword.png

 

Or you can get a custom selection

 

 

 

custom_selection.png

Link to comment
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Copyright Core 4D © 2023 Powered by Invision Community