Post #4320: Any one can give me the code for changing the color space of the selected nodes?

📋 Metadata

  • Author: RobertLe
  • Date: 2022-05-13 18:34:38
  • Type: question
  • Quality Score: 5/10
  • Replies (1): post_04321

🏷️ Tags

macro python-scripting beginner unsolved

  • Macro Editor
  • Python Scripting

💬 Content

Any one can give me the code for changing the color space of the selected nodes?

Basically I want to do:
bpy.data.images[“selection”].colorspace_settings.name = ‘Linear’

But I haven’t found any replacement for ‘selection’. Like. ‘*’ doesn’t work. Sorry, not a coder.


🔗 View on Blender Artists