-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open image with python script #23
Comments
@mnee15 I am not sure if this will work. 🤔 I never developed the plugin with python scripts in mind. If I can find some time this weekend I will try to find a way. |
@mnee15 projector = bpy.data.objects['Projector']
projector.proj_settings.projected_texture = 'custom_texture'
node = projector.children[0].data.node_tree.nodes['Image Texture']
image_path="D:\\theLocationOfYourImage\\"
image_filename="name.png"
bpy.data.images.load(image_path+image_filename,check_existing=True)
node.image=bpy.data.images[image_filename]
bpy.context.scene.render.filepath = "//result.png"
bpy.ops.render.render(use_viewport = True,write_still=True) Hope this is useful for someone. |
@richyjunior Thanks for sharing I linked to your solution from the wiki. 👍 |
Hello, I want to change projection image in python script.
but projection image does not change.
Do you know the solution?
The text was updated successfully, but these errors were encountered: