EnglishBob opened this issue on Mar 20, 2014 ยท 9 posts
EnglishBob posted Thu, 20 March 2014 at 5:25 AM
I'm trying to devise a script that will let me browse for and load any library file.
I can use LoadLibraryFigure( path ) to load any sort of geometry-based content: figures, props or hair. So far, so good.
Contrary to what I've read elsewhere, I seem to have to use the correct specific method for modifier types: LoadLibraryPose for poses, LoadLibraryLight for lights and so on, although I haven't tested every permutation yet. If this is true, then I should add some code to detect the file extension that I choose and switch to using the right load method - but if you know a better way, please let me know!
A bigger problem, in Poser 7 anyway, is that there isn't a LoadLibraryMaterial method - or is there? It isn't in the Python Methods manual. I tried
scene.LoadLibraryMaterial( path )
but it didn't do anything. However there wasn't a syntax error either, so maybe the method exists but is broken?