Generating one point with Line node in End Points mode #87702

Closed
opened 2021-04-22 11:13:30 +02:00 by Sergey · 9 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 630 Intel 4.5.0 - Build 25.20.100.6471

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-04-21 20:15, hash: 932b23782a

Short description of error
It looks inconsistent to me that the node in Offset mode can generate only one point but in Edn Points mode it can't.

Exact steps for others to reproduce the error
untitled.blend

  1. Open the file
  2. Switch between the node modes and look into Spreadsheet editor
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) HD Graphics 630 Intel 4.5.0 - Build 25.20.100.6471 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-04-21 20:15, hash: `932b23782a` **Short description of error** It looks inconsistent to me that the node in `Offset` mode can generate only one point but in `Edn Points` mode it can't. **Exact steps for others to reproduce the error** [untitled.blend](https://archive.blender.org/developer/F10032253/untitled.blend) 1. Open the file 2. Switch between the node modes and look into Spreadsheet editor
Author

Added subscriber: @randum

Added subscriber: @randum
Member

Added subscribers: @HooglyBoogly, @JacquesLucke

Added subscribers: @HooglyBoogly, @JacquesLucke
Member

Hm, I can confirm the behavior, but I'm not sure if this should be considered a bug. Should the single point be the start location, the end location or maybe in the middle?

Hm, I can confirm the behavior, but I'm not sure if this should be considered a bug. Should the single point be the start location, the end location or maybe in the middle?
Member

I guess it would make most sense at the beginning, since that's a bit similar to the offset mode? That's pretty arbitrary though...

I guess it would make most sense at the beginning, since that's a bit similar to the offset mode? That's pretty arbitrary though...
Author

I was trying to recreate array linear modifier with the node. I think primitive nodes quite suitable for this. And it's very convenient that the Offset mode is able to generate one point because there are cases when generating of one object is what is expected from the array modifier. Also it's convenient sometimes to generate arrays with the end points mode interface.

One more evidence of that End points mode also could be capable of generating only one point is the linspace function of the numpy library. Its functionality actually is pretty the same. The function can generate array with only one value which is equal to the start parameter.

I think if someone need guarantee output of the node consists of no less than two points it's always possible to use a math node before the count parameter.
Actually with new switch node it's also possible to replace output of the node with one point but this solution looks unnecessary too nody.

I was trying to recreate array linear modifier with the node. I think primitive nodes quite suitable for this. And it's very convenient that the `Offset` mode is able to generate one point because there are cases when generating of one object is what is expected from the array modifier. Also it's convenient sometimes to generate arrays with the `end points` mode interface. One more evidence of that `End points` mode also could be capable of generating only one point is the [linspace](https://numpy.org/doc/1.20/reference/generated/numpy.linspace.html?highlight=linspace#numpy.linspace) function of the `numpy` library. Its functionality actually is pretty the same. The function can generate array with only one value which is equal to the start parameter. I think if someone need guarantee output of the node consists of no less than two points it's always possible to use a math node before the count parameter. Actually with new switch node it's also possible to replace output of the node with one point but this solution looks unnecessary too nody.
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Since there was no particular reason not to allow only one point, I will call this a bug. I'll commit a fix in a moment.

Since there was no particular reason not to allow only one point, I will call this a bug. I'll commit a fix in a moment.

This issue was referenced by 14b26fc976

This issue was referenced by 14b26fc976590c6daa752d4327270540b757b652
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey self-assigned this 2021-04-27 00:02:32 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#87702
No description provided.