Cannot pass individual splines as driver variable path #85318

Closed
opened 2021-02-02 21:16:36 +01:00 by Emily Jones · 6 comments

System Information
Operating system: Ubuntu 20.10
Graphics card: GTX 1660 Ti

Blender Version
Broken: 04572f08 2.9.3
Worked: unknown

Short description of error

For a driver that depends on a curve, setting the path to splines- [x] is the same as splines

Exact steps for others to reproduce the error

From startup:
Create a Nurbs path
Create a driver for the default cube's z transform
Add a variable to the driver with target id_type = "CURVE" and id = the nurbs curve.
Set the path to splines[0]
Set the scripted expression of the driver to be CUSTOM(spline) where CUSTOM is a Python function added to the driver namespace
The type of the argument the function will receive is CurveSplines rather than Spline.

From provided file:
Open .blend and run test.py to add CUSTOM to the driver namespace. Observe that the type printed out is CurveSplines

minimal_spline_example.blend

**System Information** Operating system: Ubuntu 20.10 Graphics card: GTX 1660 Ti **Blender Version** Broken: 04572f08 2.9.3 Worked: unknown **Short description of error** For a driver that depends on a curve, setting the path to `splines- [x]` is the same as `splines` **Exact steps for others to reproduce the error** From startup: Create a Nurbs path Create a driver for the default cube's z transform Add a variable to the driver with target id_type = "CURVE" and id = the nurbs curve. Set the path to splines[0] Set the scripted expression of the driver to be CUSTOM(spline) where CUSTOM is a Python function added to the driver namespace The type of the argument the function will receive is CurveSplines rather than Spline. From provided file: Open .blend and run test.py to add CUSTOM to the driver namespace. Observe that the type printed out is CurveSplines [minimal_spline_example.blend](https://archive.blender.org/developer/F9609738/minimal_spline_example.blend)
Author

Added subscriber: @Emily_Jones

Added subscriber: @Emily_Jones
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

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

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

I can confirm this issue. It indeed seems like it still passes the whole collection to the custom python function when it should only pass a single spline.

I can confirm this issue. It indeed seems like it still passes the whole collection to the custom python function when it should only pass a single spline.

This issue was referenced by 3f90c11621

This issue was referenced by 3f90c11621845424a0b61d293f71ab179e88f56b

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Campbell Barton self-assigned this 2021-02-04 01:22:26 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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#85318
No description provided.