Skip to main content
added 16 characters in body
Source Link
Tyler
  • 596
  • 7
  • 20

My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 4 shapekeys1 shapekey in each dropdown, and then reference those user-selected shapekeys in scripting that modifies their values based on relative camera position. They should dynamically update anytime the user changes the shapekeys.

My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 4 shapekeys, and then reference those user-selected shapekeys in scripting that modifies their values based on relative camera position. They should dynamically update anytime the user changes the shapekeys.

My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 1 shapekey in each dropdown, and then reference those user-selected shapekeys in scripting that modifies their values based on relative camera position. They should dynamically update anytime the user changes the shapekeys.

Expanded on what my goal is so those trying to help me can give better advice.
Source Link
Tyler
  • 596
  • 7
  • 20

My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 4 shapekeys, and then reference those user-selected shapekeys in scripting that modifies their values based on relative camera position. They should dynamically update anytime the user changes the shapekeys.

I want it to operate like this:

enter image description here

To that end, I'm trying to create a dropdown using an enum: bpy.context.active_object.data.shape_keys.key_blocks.items()

I'd ideally like to place it inside a row.prop() I've defined, but for testing purposes I've tried placing it inside a layout.prop() and nothing populates in the panel. Can someone help me understand what I'm doing wrong?

I want it to operate like this:

enter image description here

I'm trying to create a dropdown using an enum: bpy.context.active_object.data.shape_keys.key_blocks.items()

I'd ideally like to place it inside a row.prop() I've defined, but for testing purposes I've tried placing it inside a layout.prop() and nothing populates in the panel. Can someone help me understand what I'm doing wrong?

I want it to operate like this:

enter image description here

My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 4 shapekeys, and then reference those user-selected shapekeys in scripting that modifies their values based on relative camera position. They should dynamically update anytime the user changes the shapekeys.

I want it to operate like this:

enter image description here

To that end, I'm trying to create a dropdown using an enum: bpy.context.active_object.data.shape_keys.key_blocks.items()

I'd ideally like to place it inside a row.prop() I've defined, but for testing purposes I've tried placing it inside a layout.prop() and nothing populates in the panel. Can someone help me understand what I'm doing wrong?

added a GIF example of what I'd like to accomplish
Source Link
Tyler
  • 596
  • 7
  • 20

I want it to operate like this:

enter image description here

Here's a look at the raw code: (Disclaimer: I'm a newbie Blender Python programmer, and there is a lot of code below that is redundant and for experimentation only)

Here's a look at the raw code: (Disclaimer: I'm a newbie Blender Python programmer, and there is a lot of code below that is redundant and for experimentation only)

I want it to operate like this:

enter image description here

Here's a look at the raw code: (Disclaimer: I'm a newbie Blender Python programmer, and there is a lot of code below that is redundant and for experimentation only)

deleted 4 characters in body
Source Link
Tyler
  • 596
  • 7
  • 20
Loading
Source Link
Tyler
  • 596
  • 7
  • 20
Loading