Scene time input node #93098
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93098
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, to access the scene's time in geometry nodes, one has to use a
#frame
driver.People have gotten used to doing this, but there is no particular reason it has to be complicated.
Instead, we should add a "Time" node that gives the current scene time, in frames and seconds.
Details
The node should have two single value outputs:
Implementation
Implementation wise the node itself should be fairly trivial. The more complex part is probably making the object reevaluate when the scene time changes.
DEG_get_ctime(...)
.GeoNodeExecParams::depsgraph()
.updateDepsgraph
inMOD_nodes.cc
, the node group has to be scanned for a Scene Time node, and if available a relation has to be added to the depsgraph. Maybe a new function next toDEG_add_node_tree_relation
has to be added for that (e.g.DEG_add_scene_time_relation
).Further Questions
Node name: "Time" is a bit vague when there could possibly be other sources of time in the future-- simulation time, object time. So
Scene Time
might be a better more explicit name.Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @HooglyBoogly
Time input nodeto Scene time input nodeAdded subscriber: @Blendify
Sounds good 👍🏻 a reminder to me or someone else to rename the compositor time node to "time curve node".
https://docs.blender.org/manual/en/latest/compositing/types/input/time.html
Added subscriber: @GeorgiaPacific
Can we add the scene framerate also? This way we can easily calculate time in seconds (or any other unit) rather than in frames.
Isn't that what the seconds output is for though? Anyway, I don't really think framerate should be exposed that way, since it can be problematic if changing the framerate for rendering can change arbitrary things in some node tree.
My bad I didn't see the seconds output, I thought there was only frames.
Added subscriber: @MiroHorvath
This issue was referenced by
bd3bd776c8
Added subscriber: @Blendork
@guitargeek @HooglyBoogly will this stay a Geometry Nodes exclusive? It would be useful in Shader Nodes too(like a few other GN exclusives)
Changed status from 'Confirmed' to: 'Resolved'