DirectStart cannot load a direct button and an animation actor at the same time

DirectStart cannot load a direct button and an animation actor at the same time. it load only the button the script is simple

face = Actor(“shama.egg”,

                            {"blink" : "shama-blinking.egg"})        

face.reparentTo(render)

face.loop("blink")

face.setY(1.5)

Add button

b = DirectButton(text=(“OK”, “click!”, “rolling over”, “disabled”), pos = (-1, 0,-0.8),

             scale=.3, command=run_shama)

Run the tutorial

base.run()

Could I see the full script, please? I suspect that I know what the problem is, but I want to check.

even if i use showbase i get the object with no textures

the script is :
from direct.showbase.ShowBase import ShowBase

from direct.task import Task

from direct.actor.Actor import Actor

from direct.gui.DirectGui import DirectButton

import simplepbr
class MyApp(ShowBase):

def __init__(self):

    ShowBase.__init__(self)

    self.face = Actor("shama.egg",

                            {"blink" : "shama-blinking.egg"})        

    self.face.reparentTo(self.render)

    self.face.loop("blink")

    self.face.setY(1.5)

    self.b = DirectButton(text=("OK", "click!", "rolling over", "disabled"), pos = (-1, 0,-0.8),

             scale=.3)

app = MyApp()

app.run()

Ah, it wasn’t what I thought, then, it would seem. A good thing that I checked!

Okay, so, let me confirm: if you do nothing more than remove the DirectButton line, everything works as expected, yes? (And to be safe, please double check by testing this for me.)

it works now i forgot to make the texture folder but when i try to use Direct Start i can see only the button not the object

Okay, could I see the version of the script that uses DirectStart, please?

(Also, why are you using DirectStart, if I may ask?)

this is the script
face = Actor(“shama.egg”,

                            {"blink" : "shama-blinking.egg"})        

face.reparentTo(render)

face.loop(“blink”)

face.setY(1.5)

Add button

b = DirectButton(text=(“OK”, “click!”, “rolling over”, “disabled”), pos = (-1, 0,-0.8),

             scale=.3)

Run the tutorial

base.run()

i wanna use direct start because i want to use other classes that has different utilities

Is that the full script? I don’t see a mention of DirectStart there.

… How does ShowBase prevent this, though…?

i didn’t try to use classe in another class. i will ry it if it works with show base