Page MenuHome

Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
Closed, ResolvedPublic

Description

System Information
Windows 8.1 x64
Renderer: GeForce GTX 860M/PCIe/SSE2
Vendor: NVIDIA Corporation
Version: 4.4.0

Blender Version
Broken: 2.72.1 4d4da31

Short description of error
Cant use driver variable with Dimensions property, while Scale property is working.

Exact steps for others to reproduce the error
Open blend file

and look for the driver variables.
bpy.context.active_object.dimesions.x is working just fine in console.

Event Timeline

Mikhail Rachinskiy (alm) raised the priority of this task from to 90.
Mikhail Rachinskiy (alm) updated the task description. (Show Details)
Mikhail Rachinskiy (alm) edited a custom field.

Yeah, this is a know issue with dimensions… will merge with another report (not the same issue on first look, but actually has the same causes). Thanks for the report anyway.

Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.Oct 16 2014, 4:05 PM

Hmm, no actually, it’s something different here.

First of all, you are controlling dim using it as parameter, this will never work in any case (dependency cycle).

However, there is something else here, rather strange - dimensions.x is always invalid, but dimensions[0] does work, that’s not normal I think.

Bastien Montagne (mont29) renamed this task from Cant use driver variable with Dimensions property to Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works.Oct 16 2014, 4:06 PM

Found the glitch, fix incoming.