[icon ] blenderdumbass . org [icon blender] Blender Subforum

Custom property for Dimensions field

April 13, 2026

👁 8

https://blenderdumbass.org/blender_subforum/custom_property_for_dimensions_field : 👁 1
https://blenderdumbass.org/ : 👁 1
https://blenderdumbass.org/reviews/No_One_Will_Save_You : 👁 1

[avatar]by Tcll




0 Minute Read



So what I'm ultimately trying to do is calculate the length of a curve using a round-about method with an Array modifier on another object... ↩ Reply

But what I'd like to be able to do is edit the curve while seeing that length update as I edit... ↩ Reply

The only way I can fathom to do as such is with a driver on a Custom property for this field: ↩ Reply
[embedded image]


But I'm not sure where exactly I'd need to do that, or with what... ↩ Reply

Maybe a script could do it, but I'm not sure how :P ↩ Reply

[icon unlike] 1
[icon terminal]
[icon markdown]

Find this post on Mastodon

[avatar]  Blender Dumbass c:0 April 13, 2026


For the context it seems like this is Blender 2.79 and not a modern Blender. Which complicates things since Blender did a lot of changes to the depsgraph since that.

[icon reply]
[avatar]  Blender Dumbass c:1 April 13, 2026


I think the most low-tech solution would be to split the frame and focus one side on the length object. While having like a model of a ruler next to it.

... replies ( 1 )
[avatar]  Tcll c:2 April 13, 2026



@blenderdumbass

lol that reminds me of what I used to do to make outline curves for SVG art (I no longer use this as PyCharm is a better SVG editor capable of proper outlines that don't look polygonal) XD

you needed a separate frame just to modify the stroke-width curve, and it got rather insane quite rapidly XD

both that and this are ghetto af XD

for a makeshift ruler, I'd say you actually don't need much to make that work...

the Array object can just have a fixed unit-width that can easily be tracked, say 0.01 for precision

then all you really need is to offset a marker object to the desired length the Array object will extend to

you don't even need to have the entire length in view, just a good portion before the marker should be good enough :P

though it would still be nice to see the actual number rather than having to flip between object selections to verify accuracy... heh :P




[icon reply]
[avatar]  Tcll c:2 April 13, 2026


... c:1
[avatar]  Blender Dumbass c:1 April 13, 2026


I think the most low-tech solution would be to split the frame and focus one side on the length object. While having like a model of a ruler next to it.


@blenderdumbass

lol that reminds me of what I used to do to make outline curves for SVG art (I no longer use this as PyCharm is a better SVG editor capable of proper outlines that don't look polygonal) XD

you needed a separate frame just to modify the stroke-width curve, and it got rather insane quite rapidly XD

both that and this are ghetto af XD

for a makeshift ruler, I'd say you actually don't need much to make that work...

the Array object can just have a fixed unit-width that can easily be tracked, say 0.01 for precision

then all you really need is to offset a marker object to the desired length the Array object will extend to

you don't even need to have the entire length in view, just a good portion before the marker should be good enough :P

though it would still be nice to see the actual number rather than having to flip between object selections to verify accuracy... heh :P

[icon reply]
[avatar]  Blender Dumbass c:3 April 13, 2026


Figured something out... you can technically stuff a python expression referencing a specific value in the scene.

bpy.data.objects["Cube.001"].dimensions.z



this is what I put into the driver of cube 1 to make it move to the size of cube 2. And not just scale, but the dimension. But since depsgraph is not particularly great in blender 2.79. It doesn't update automatically.

... replies ( 1 )
[avatar]  Blender Dumbass c:4 April 13, 2026


Okay. Blender has templates in the Text Editor that spawn example code for how to add functionality. I modified one a bit and got this:

import bpy


class HelloWorldPanel(bpy.types.Panel):
    """Creates a Panel in the Object properties window"""
    bl_label = "Size Panel"
    bl_idname = "OBJECT_PT_hello"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "object"

    def draw(self, context):
        layout = self.layout
        row = layout.row()
        row.label(text="SIZE IS: " + str(bpy.data.objects["Cube.001"].dimensions.z))


def register():
    bpy.utils.register_class(HelloWorldPanel)


def unregister():
    bpy.utils.unregister_class(HelloWorldPanel)


if __name__ == "__main__":
    register()




It spawns a little size thingie in the Object properties. And it is updated in real time. Using the example dimensions from

[embedded image]





[icon reply]
[avatar]  Blender Dumbass c:4 April 13, 2026


Okay. Blender has templates in the Text Editor that spawn example code for how to add functionality. I modified one a bit and got this:

import bpy


class HelloWorldPanel(bpy.types.Panel):
    """Creates a Panel in the Object properties window"""
    bl_label = "Size Panel"
    bl_idname = "OBJECT_PT_hello"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "object"

    def draw(self, context):
        layout = self.layout
        row = layout.row()
        row.label(text="SIZE IS: " + str(bpy.data.objects["Cube.001"].dimensions.z))


def register():
    bpy.utils.register_class(HelloWorldPanel)


def unregister():
    bpy.utils.unregister_class(HelloWorldPanel)


if __name__ == "__main__":
    register()




It spawns a little size thingie in the Object properties. And it is updated in real time. Using the example dimensions from
... c:3
[avatar]  Blender Dumbass c:3 April 13, 2026


Figured something out... you can technically stuff a python expression referencing a specific value in the scene.

bpy.data.objects["Cube.001"].dimensions.z



this is what I put into the driver of cube 1 to make it move to the size of cube 2. And not just scale, but the dimension. But since depsgraph is not particularly great in blender 2.79. It doesn't update automatically.


[embedded image]


[icon reply]
[avatar]  Tcll c:5 April 14, 2026


awesome, that worked perfectly!

I even multiplied the dimension value by 10 and marked it with mm (my grid is unit-accurate to cm, so it works out nicely)

but yeah here it is to show: :)
[embedded image]


[icon reply]
[icon question]








[icon articles]Please Help Me Debunk This Theory

[thumbnail]

[avatar]  Blender Dumbass

👁 91 💬 5



I know that philosophy is not a science. Because it is about what we cannot know, as some smart people out there say. But I've got here a philosophical theory which I want you to debunk. The theory is something I truly believe in, and therefor I'm biased towards it. So I suppose you could be better at debunking it, since you are not me.


[icon articles]The Inherent Instability Of Euphemisms

[thumbnail]

[avatar]  Blender Dumbass

👁 62



Often it is required of a storyteller to say less in order to say more. Steven Spielberg had to censor the most gruesome parts of the holocaust in order to make a movie that was actually watchable, and his intuition was arguably right. The movie ended up being a hit, exposing millions upon millions of people to the the holocaust. But it wasn't the horror. It was a watered down version, made so people would not be too upset watching it. The reality of the situation was so much worse that Spielberg didn't even think a movie showing the actual truth was possible. Nobody would be brave or masochistic enough, he thought, to actually see it. A similar story happened to Dunkirk, another World War II movie, this time by Christopher Nolan, who deliberately avoided the worst aspects of a war film to make a film which the audience could watch without taking their eyes from the screen, and as a result, a film that is arguably scarier because of that. Nolan's masterful management of tension is so good that the movie doesn't need violence and blood to be visceral. And yet, to some extent the movie is a watered down version of what war supposed to be. And some argue it is a lesser film because of it.


[icon codeberg] Powered with BDServer [icon python] Plugins [icon theme] Themes [icon analytics] Analytics [icon email] Contact [icon mastodon] Mastodon
[icon unlock]