Post #2952:
bl
📋 Metadata
- Author: roaoao
- Date: 2020-01-08 20:43:13
- Type:
answer - Quality Score: 8/10
- Reply to: post_02947
- Replies (1): post_02953
🏷️ Tags
macro scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Modal Editor
- Property Editor
- Python Scripting
💬 Content
blndrusr:
What would be command to replace environment texture in the world shader?
Try this code:
C.world.node_tree.nodes["Environment Texture"].image = D.images["Texture"]
blndrusr:
is it possible to change rotation of a texture via Mapping Node with modal operator?
Yes, use this path for Property modal slot:
C.world.node_tree.nodes["Mapping"].inputs[2].default_value[0]
❤️ 3 likes