Python expression window does not show image texture source image change operations #68054

Closed
opened 2019-08-01 11:08:27 +02:00 by Jesse Kaukonen · 6 comments
Member

System Information
Operating system: Debian 10
Graphics card: Intel HD 4000

Blender Version
Broken: v 2.81 Alpha, Date 2019-07-30 20:50, Hash: 5359b7a03307 (latest daily linux 64-bit)

The scripting workspace Python expression output window does not display the executed Python expression when an image texture's input image is changed into another. That is, if two images are loaded in the image texture, opening the dropdown menu displaying available images and changing the image into another does not show the Python expression that can be used to complete the same task via the Python console.

On the other hand, if, for example, the default Principled BSDF shader's "distribution" field is changed from its dropdown menu, the following Python expression is printed:

bpy.data.node_groups["Shader Nodetree"].nodes["Principled BSDF"].distribution = 'MULTI_GGX'

Exact steps for others to reproduce the error

  • Start default 2.81 scene
  • Go to scripting workspace
  • Open the shader editor
  • Add a new shader node: Texture -> Image Texture
  • Load two images from disk
  • With the images loaded, change from one image into another
  • No python expressions are printed in the printout window

blender_281_pythonscripting0002.png

**System Information** Operating system: Debian 10 Graphics card: Intel HD 4000 **Blender Version** Broken: v 2.81 Alpha, Date 2019-07-30 20:50, Hash: 5359b7a03307 (latest daily linux 64-bit) The scripting workspace Python expression output window does not display the executed Python expression when an image texture's input image is changed into another. That is, if two images are loaded in the image texture, opening the dropdown menu displaying available images and changing the image into another does not show the Python expression that can be used to complete the same task via the Python console. On the other hand, if, for example, the default Principled BSDF shader's "distribution" field is changed from its dropdown menu, the following Python expression is printed: ``` bpy.data.node_groups["Shader Nodetree"].nodes["Principled BSDF"].distribution = 'MULTI_GGX' ``` **Exact steps for others to reproduce the error** * Start default 2.81 scene * Go to scripting workspace * Open the shader editor * Add a new shader node: Texture -> Image Texture * Load two images from disk * With the images loaded, change from one image into another * No python expressions are printed in the printout window ![blender_281_pythonscripting0002.png](https://archive.blender.org/developer/F7641288/blender_281_pythonscripting0002.png)
Author
Member

Added subscriber: @gekko

Added subscriber: @gekko
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-08-01 11:34:19 +02:00
Member

Can confirm, #68053 is a bit related, will put on my desk for investigation...

Can confirm, #68053 is a bit related, will put on my desk for investigation...

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Generating the proper 'python path' is not always working, especially with ugly things like 'root' node trees of other IDs. Thanks for the report, but that's not considered a bug, although enhancements are possible here for sure.

Generating the proper 'python path' is not always working, especially with ugly things like 'root' node trees of other IDs. Thanks for the report, but that's not considered a bug, although enhancements are possible here for sure.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#68054
No description provided.