Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 101 characters in body
Source Link
Jem
  • 113
  • 1
  • 6

New to Python / blender API here. HEreHere is the process I'm attempting to script after having manually selected a material from the active object:

  • identify texture
  • find all other materials in scene using that same texture
  • replace with selected material.

update : found the solution, problem was about the API changes in Blender 2.8.

(original issue) I'm stuck at step 1: I can't find a way to tell the API: "please get me a pointer to the active material's texture".

Is this possible?

Thanks in advance,

New to Python / blender API here. HEre is the process I'm attempting to script after having manually selected a material from the active object:

  • identify texture
  • find all other materials in scene using that same texture
  • replace with selected material.

I'm stuck at step 1: I can't find a way to tell the API: "please get me a pointer to the active material's texture".

Is this possible?

Thanks in advance,

New to Python / blender API here. Here is the process I'm attempting to script after having manually selected a material from the active object:

  • identify texture
  • find all other materials in scene using that same texture
  • replace with selected material.

update : found the solution, problem was about the API changes in Blender 2.8.

(original issue) I'm stuck at step 1: I can't find a way to tell the API: "please get me a pointer to the active material's texture".

Is this possible?

Thanks in advance,

Source Link
Jem
  • 113
  • 1
  • 6

Script to replace all materials linked to the a given texture

New to Python / blender API here. HEre is the process I'm attempting to script after having manually selected a material from the active object:

  • identify texture
  • find all other materials in scene using that same texture
  • replace with selected material.

I'm stuck at step 1: I can't find a way to tell the API: "please get me a pointer to the active material's texture".

Is this possible?

Thanks in advance,