1
$\begingroup$

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

os.system("cls") 

to

##os.system("cls")

enter image description here

$\endgroup$
13
  • 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$ Commented Dec 10, 2019 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
    Commented Dec 11, 2019 at 8:12
  • 1
    $\begingroup$ Why are you using a version that is 10 years old? $\endgroup$ Commented Dec 12, 2019 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$ Commented Dec 12, 2019 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$ Commented Dec 12, 2019 at 22:59

1 Answer 1

3
+50
$\begingroup$

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/

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .