Forum: Poser Python Scripting


Subject: How to fetch the full os.path of a CurrentFigure ?

HartyBart opened this issue on Dec 27, 2020 ยท 27 posts


adp001 posted Tue, 19 January 2021 at 12:26 PM

FVerbaas posted at 12:22PM Tue, 19 January 2021 - #4410728

'PoserLogger' was indeed the name I dreamed up for the system. LOL! Again the idea is to keep track of the 'ingredients' used, to support fading memories, for crediting when publishing or later building 'something similar'. A script to regenerate the scene was not the idea.

With a script written as an add-on you are able to get some information:


class SceneObserver:
    def objectsAdded(self, objects):
        pass
    def objectsDeleted(self, objects):
        pass    
    def objectsRenamed(self, objectsOldNames):
        pass    
    def objectsInternalRenamed(self, objectsOldInternalNames):
        pass
    def objectSelected(self, selection):
        pass
    def sceneDeleting(self, scene):
        pass
    def sceneCreated(self, scene):
        pass
    def frameChanged(self):
        pass
    def materialsChanged(self, materials):
        pass
    def cameraChanged(self): 
        pass
    def lightsChanged(self):
        pass

After one of those events occure you have to dig for further information.