Are there standardized features in the python API for displaying the popup and error message that users typically see in Blender when they're not doing something the right way?  Trying to apply a modifier in edit mode, for instance...or when there is an exception, you get a popup with a red triangle and a description, and there is a message printed in the info header (see screenshot below). From my searching in the API and around the web, it seems like the answer is no.    I can otherwise just make my own panel and popup for this that replicates that functionality. The only thing left to do for this is identify the remaining parts of the API that are relevant to replicate:
21009
I wonder if it is currently possible to print or send messages to the Report window in the Info view? this would be quite useful sometimes.
53721
I work with a web-based platform with lots of data and various tools to view the data, perform analysis. Users are often impressed by one or two features and stick with them. The platform adds new features regularly; too many and too often for most users (and the sales team) to keep up. We have release notes that are emailed out and the occasional press release, but we're still in search of organic ways for users to discover new features.   One idea we had was a pop-up that included "Did you know?" text and some graphics. We know that most users ignore these. Has anyone been successful with popups like that? Or Are there other interfaces that have seen more success?
92452
In an edit diff, when the revision changes the title, removed words are shown struck out in red and added words are shown with a green background. This is fine when there are only removed words, or only added words, but when there are both, the result is difficult to read.        Getting default accessible fields of… No. Getting accessible fields of an object in a Salesforce object… No. Getting accessible fields of a Salesforce object using REST API. Phew. Yeah, ok.        Program causes run. Time error? Oh, Program causes run-time error … when run on specific machine. Yeah, sounds sensible. What was the old title? Oh dear…  Please show both the old title and the new title, one below the other.
100318
I would like to put a link to a webpage in an alert dialog box so that I can give a more detailed description of how to fix the error that makes the dialog box get created.    How can I make the dialog box show something like this:  There was an error.  Go to this page to fix it. wwww.TheWebPageToFix.com    Thanks.
61905
Is there some way I can show custom exception messages as an alert in my jQuery AJAX error message?  For example, if I want to throw an exception on the server side via  by throw new ApplicationException("User name already exists");, I want to catch this message ('user name already exists') in the jQuery AJAX error message.  jQuery("#save").click(function () {   if (jQuery('#form').jVal()) {     jQuery.ajax({       type: "POST",       url: "saveuser.do",       dataType: "html",       data: "userId=" + encodeURIComponent(trim(document.forms[0].userId.value)),       success: function (response) {         jQuery("#usergrid").trigger("reloadGrid");         clear();         alert("Details saved successfully!!!");       },       error: function (xhr, ajaxOptions, thrownError) {         alert(xhr.status);         alert(thrownError);       }     });   } });   On the second alert, where I alert the thrown error, I am getting undefined and the status code is 500.  I am not sure where I am going wrong. What can I do to fix this problem?
80551
Question The title says it all. I want to be able to make this in Blender's UI, and sample it at specific points :  Problem There is very insufficient documentation on this, and I can't find any examples for how to create a . I have worked with templates before, and , but it requires a curve mapping prop. Extra Info I found a few threads about this, and one gives me the impression that this cannot be done at all, but it is also very old.   This similar question has been asked here before, but it didn't even get a comment:  Is this even possible to access in python (as in only accessible in C)?
100874
There is one problem, it seems that text won't appear on my program. The three images show the errors and also my laptop specs (I believe I just have very small amount of laptop power that makes Blender glitch).  Everything else works fine (zooming, panning, rotating, etc.) and the buttons are still there and do what they're supposed to do, but the text just won't appear.  Might anybody know how to fix this?        The drive update didn't help either. I know a way around it though, does anybody know a page which shows screenshots of more or less the buttons on blender
113762
I am currently in the process of writing a project in python for Blender to simulate crowds automatically. However I would need for there to be a custom UI to allow the user to choose their settings such as min to max speed, how much they want locations to randomised by etc. But from tutorials I have watched, and links I have followed all seem to have the buttons and sliders only do what is already predefined in blender and does not allow me to make it execute a function I have wrote. I managed to find a workaround for creating a custom shape by adding it to the operator menu, but is there a way for it to save the value of a slider to a variable rather than doing a predefined Blender function.  import bpy import math import mathutils  class TargetMakerPanel(bpy.types.Panel) :     bl_space_type = "VIEW_3D"     bl_region_type = "TOOLS"     bl_context = "objectmode"     bl_label = "CrowD"         def draw(self, context) :         layout = self.layout         scene = context.scene         TheCol = self.layout.column(align = True)         TheCol.operator("mesh.make_target", text = "Add Target")         layout.label(text=" Random Speed:")         row = layout.row()         row.prop(scene, "frame_start")         row.prop(scene, "frame_end")  class MakeTarget(bpy.types.Operator) :     bl_idname = "mesh.make_target"     bl_label = "Add Target"     bl_options = {"UNDO"}      def invoke(self, context, event) :         Vertices = \           [             mathutils.Vector((-0.5, -0.5,0)),             mathutils.Vector((0.5, -0.5, 0)),             mathutils.Vector((0.5, 0.5, 0)),             mathutils.Vector((-0.5, 0.5, 0)),            ]         NewMesh = bpy.data.meshes.new("Target")         NewMesh.from_pydata \             (             Vertices,             [],             [[0, 1, 2], [0, 1, 3], [1, 2, 3], [2, 0, 3]]           )         NewMesh.update()         NewObj = bpy.data.objects.new("Target", NewMesh)         context.scene.objects.link(NewObj)         return {"FINISHED"}     #end invoke   def register() :     bpy.utils.register_class(MakeTarget)     bpy.utils.register_class(TargetMakerPanel)  def unregister() :     bpy.utils.unregister_class(MakeTarget)     bpy.utils.unregister_class(TargetMakerPanel)  if __name__ == "__main__" :     register()   In my code I would ideally like it so that the row that slider that says "Start Frame" would allow me to recognise that value and assign it to a variable called MinSpeed.... Rather than it automatically changing the frame as blender had already defined it as...
63383
The code below works flawless, if e.g. triggered by a menu button in a 3D view.          for area in bpy.context.screen.areas:            if area.type == 'VIEW_3D':             for space in area.spaces:                 if space.type == 'VIEW_3D':                      space.viewport_shade = 'BOUNDBOX'   However, if I bundle it into a function and hook it to a handler, it returns a NoneType error:  @persistent def allBound(dummy):   for area in bpy.context.screen.areas:        if area.type == 'VIEW_3D':         for space in area.spaces:             if space.type == 'VIEW_3D':                  space.viewport_shade = 'BOUNDBOX'   bpy.app.handlers.render_pre.append(allBound)   Returns:  AttributeError: 'NoneType' object has no attribute 'areas'   How to solve this?
54174
From my thesis:     In this method, the get_config_value function is used that is defined within the PyWPS API.   How should I format the "get_config_value" variable?  It should be formatted differently than the rest of the text, but I don't know what the conventions are.  Using italic or bold fonts doesn't look right to me.
5352
i am just getting into rigging in blender, and in the graph editor with the properties panel open i get a error message saying "ERROR: Phyton auto-execution disabled." Another thing that i noticed is a message on the top menu bar saying "Auto-run disabled."   I am in the graph editor because i want to create a driver for a simple but convent 2d ball rig, and i was wondering will be a problem for me later down the road. Also, what the heck should i do about the message. I don't like "ERROR"  sign being thrown at me.   Thank you, Chris
62447
How can I prevent ajax failure popups and instead route the failure to the console log instead?  Is this something I can do with Drupals implementation of jQuery?
15003
Can you add new statements (like print, raise, with) to Python's syntax?  Say, to allow..  mystatement "Something"   Or,  new_if True:     print "example"   Not so much if you should, but rather if it's possible (short of modifying the python interpreters code)
111353
HTML (or maybe just XHTML?) is relatively strict when it comes to non-standard attributes on tags. If they aren't part of the spec, then your code is considered non-compliant.  Non-standard attributes can be fairly useful for passing along meta-data to Javascript however. For instance, if a link is suppose to show a popup, you can set the name of the popup in an attribute:  &lt;a href="#null" class="popup" title="See the Popup!"     popup_title="Title for My Popup"&gt;click me&lt;/a&gt;   Alternatively, you can store the title for the popup in a hidden element, like a span:  &lt;style&gt;     .popup .title { display: none; } &lt;/style&gt; &lt;a href="#null" title="See the Popup!" class="popup"&gt;     click me     &lt;span class="title"&gt;Title for My Popup&lt;/span&gt; &lt;/a&gt;   I am torn however as to which should be a preferred method. The first method is more concise and, I'm guessing, doesn't screw with search engines and screen readers as much. Conversely, the second option makes storing large amounts of data easier and is thus, more versatile. It is also standards compliant.  I am curious what this communities thoughts are. How do you handle a situation like this? Does the simplicity of the first method outweigh the potential downsides (if there are any)?
30324
Is it possible to make python addon as a modifier?   I just would like to make some deformation modifiers. But I know only python.
23314
I need to implement alert popup on standard page layout on click of standard button "Save".How can i achieve it.I tried google but not getting a valid implementation.Any idea would be much appreciated.
42087
Writing a python script and it needs to find out what language a block of code is written in. I could easily write this myself, but I'd like to know if a solution already exists.  Pygments is insufficient and unreliable.