Timeline for How to invoke custom node operator
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 16, 2020 at 13:35 | comment | added | ttsesm | Apologies, I do not understand what do you mean and how to use it :-( | |
Oct 16, 2020 at 13:18 | comment | added | batFINGER |
In draw code layout = self.layout If it is used before an operator layout.operator(...) the operator will have that context member. eg may be in the 3d view or properties UI.
|
|
Oct 16, 2020 at 13:13 | comment | added | ttsesm |
How is the layout.context_pointer_set() is defined? Because I am getting NameError: name 'layout' is not defined .
|
|
Oct 15, 2020 at 16:45 | comment | added | batFINGER |
That'll do it. The node editor has an active_node and node (IIRC) context member. Use layout.context_pointer_set("node", node) to set it in the layout if not using from node editor.
|
|
Oct 15, 2020 at 13:06 | history | answered | ttsesm | CC BY-SA 4.0 |