I have add-on for Blender 2.49b, python 2.6.6 and I need it to "show the button" to a user like this:

result=Blender.Draw.PupMenu("Sketchfab Viewer ?%t|Yes|No")

But button does not show up in ubuntu, but it does in windows?

To run script press Alt+P in text windows and go in to addon folder than go in to 768dd88bd0bb49a8ad0a75ab143f685a and select astrea-768dd88bd0bb49a8ad0a75ab143f685a.html and hit Import. Then you should see

enter image description here

Edit: When I add print "2" on line 43 it does not show up in console so its problem in folder "newGameLib" I doubt that it contain some windows only releted command just like cls.

Also one thing should be changed line 3277




enter image description here

  • 6
    $\begingroup$ Unlikely that this is platform related, more likely differences in the API between different Blender versions. Your function call is not enough for us to identify the problem, please post a complete minimum working example. The How do I ask a good question page from the Help Center may help you improve your question. $\endgroup$
    – Robert Gützkow
    Dec 10 '19 at 11:53
  • 1
    $\begingroup$ If this is for version 2.4x and prior may be an idea to flag as such in question. $\endgroup$
    – batFINGER
    Dec 11 '19 at 8:12
  • 1
    $\begingroup$ Why are you using a version that is 10 years old? $\endgroup$ Dec 12 '19 at 22:32
  • 1
    $\begingroup$ @SlobodanVidovic this part is obvious. I was asking about explanation and context. What addon? What is it for? Why do you need it? I see it has something to do with Sketchfab website - do you think it still works the same today as it did 10 years ago? That seems unlikely. Seems like a waste of time. Is it not? $\endgroup$ Dec 12 '19 at 22:54
  • 4
    $\begingroup$ You are looking for SketchFab viewer addon? How about this addon for 2.79 and 2.8 In link here? github.com/sketchfab/blender-plugin $\endgroup$ Dec 12 '19 at 22:59

You can find your addon for 2.79 and 2.8 in link here. https://github.com/sketchfab/blender-plugin

If you are unfamiliar with 2.8, you can see basic tutorials in link below. https://www.youtube.com/playlist?list=PLa1F2ddGya_-UvuAqHAksYnB0qL9yWDO6

Playlists of tutorials for 2.8x on page 4 and those for 2.7x on page 5. I regard those as best for absolute beginners. https://docs.google.com/presentation/d/13UpIjJEE7Oa7x5BiMsjXGW5CGOTDF03-SocRYi4Babs/

  • $\begingroup$ tnx a lot but that's not what I'm looking for $\endgroup$ Dec 13 '19 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.