[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]The Psycho-Sexual analysis of Blender Dumbass

[thumbnail]

[avatar]  Blender Dumbass

🔐 3 👁 63 ❤ 5 🔄 2 💬 5

[<3] 110



People change. People change! People grow. People adopt. People change their minds about things. People learn new things everyday. People form opinions. People change. And so have I. I notice something rather strange about people that come into contact with me without prior knowledge of what I do and how I think. I remember the other day on mastodon being bombarded with hate for seemingly no reason what so ever. I either said something good about Richard Stallman, or said something slightly too vague about one thing or another. I know I held opinions that I'm not proud of today. I know I probably have opinions right now that I will change in the future. People change.

Therefor I decided that it would be a good idea, both for the sake of my mental health and just as an example of said change, to talk to you about myself. To psycho-sexually analyze what I stand for. What I believe in. And most importantly: how I got to this point. How I changed to be where I am today. Yet, in a strange kind of way I am slightly afraid of strangers when it comes to my psychology. It is my private life, after all. And I don't want to reveal everybody everything about me. The good, the bad and the ugly. And then the ugly, the bad and the good. I don't want to give haters the platform to hate. So I suppose this is the perfect excuse to use the fediverse gimmick I came up with, the other day. Basically you have to be at least somewhat of a fan of me and / or my work, in order for me to feel okay with sharing with you all this private, highly emotional, stuff. Don't worry about it. If you are a fan, this is going to be a piece of cake for you. The website will just check that you are, and everything is going to be okay. For everybody else, perhaps, this article isn't for you.


#biography #psychology #philosophy #story #sexuality #love #gnu #linux #computers #blender3d


[icon reviews]Star Trek 2009 is when you mix Spielberg with Michael Bay

[thumbnail]

[avatar]  Blender Dumbass

👁 8 💬 1



I have a soft spot for J. J. Abrams. His masterpiece Super 8 inspired me greatly to develop film-projects when I was a teenager. But his 2009 other masterpiece Star Trek ( together with 2009'th other Sci-Fi masterpiece Avatar by James Cameron ) is what pretty much started my obsession with space movies.


#startrek #jjabrams #film #review #movies #cinemastodon


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