Timeline for proper bpy.ops context setup in a plugin [closed]
Current License: CC BY-SA 3.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 3, 2021 at 3:28 | comment | added | Aquarius Power |
the functions require the argument in a variable=value syntax like: bpy.ops.mesh.decimate(ratio=0.18) if I try bpy.ops.mesh.decimate(0.18) I get that 1-3 params error too.
|
|
S Dec 22, 2014 at 18:13 | history | edited | David | CC BY-SA 3.0 |
added tags, clarifyed question
|
S Dec 22, 2014 at 18:13 | history | suggested | X-27 is done with the network | CC BY-SA 3.0 |
added tags, clarifyed question
|
Dec 22, 2014 at 18:12 | review | Suggested edits | |||
S Dec 22, 2014 at 18:13 | |||||
Jun 11, 2013 at 17:07 | history | closed |
ideasman42 zeffii iKlsR CharlesL Daniel |
off topic | |
S Jun 11, 2013 at 7:39 | history | suggested | zeffii | CC BY-SA 3.0 |
caps and stray html tags
|
Jun 11, 2013 at 5:54 | comment | added | zeffii | @AshleyDuhn stop using the html break tag, they get converted to readable characters. Stackexchange uses markdown stackoverflow.com/editing-help to help markup your text, read that link -- it's great. | |
Jun 11, 2013 at 5:48 | review | Suggested edits | |||
S Jun 11, 2013 at 7:39 | |||||
Jun 11, 2013 at 4:01 | vote | accept | ogeid | ||
S Jun 11, 2013 at 3:51 | history | suggested | Adhi | CC BY-SA 3.0 |
Edit indentation for code and output.
|
Jun 11, 2013 at 3:33 | answer | added | Adhi | timeline score: 6 | |
Jun 11, 2013 at 3:19 | comment | added | ogeid | bpy.ops has been updated since last try.<br/> it seems to be an incorrect file location.<br/> <br/> using:<br/> filepath = bpy.path.ensure_ext(filepath, filename_ext)<br/> bpy.ops throws:<br/> location: <unknown location> -1<br/> | |
Jun 11, 2013 at 3:18 | comment | added | Adhi |
You don't need self and context when calling an operator. Those first two argument positions are reserved for execution context.
|
|
Jun 11, 2013 at 3:16 | review | Close votes | |||
Jun 11, 2013 at 17:07 | |||||
Jun 11, 2013 at 3:16 | comment | added | ogeid | try:<br/> dtm = bpy.ops.import_img.load(self,context,filepath=self.filepath,scale=self.scale,bin_mode=self.bin_mode, cropVars=False,)<br/> except ValueError:<br/> print("location: <unknown location> -1")<br/> | |
Jun 11, 2013 at 3:16 | comment | added | Adhi | Maybe it's something in add_to_menu, trying to call an operator with incorrect arguments. | |
Jun 11, 2013 at 2:59 | comment | added | ideasman42 | This looks more like a bug report then a question. | |
Jun 11, 2013 at 2:46 | review | Suggested edits | |||
S Jun 11, 2013 at 3:51 | |||||
Jun 11, 2013 at 2:43 | comment | added | Adhi | Which addon is that? If it isn't the "HiRISE DTM" one, please give a link to the full source code. | |
Jun 11, 2013 at 2:31 | history | asked | ogeid | CC BY-SA 3.0 |