by: just_last_knight

structure »
Click and login to follow "structure" new uploads

Portfolio | Gallery | More Poser | Back
Added 6 years ago

Quickly switch between the Head.obz and the plane ( Head.obj ) available at  Replacement OBJ

 

Should now work wherever your content is installed … more »



Format: Poser Mats
Usage Rights: Unrestricted use
Categories: Materials, Textures
log in to rate

Views: 325
Downloaded: 42



Donate to structure through PayPal: 
Feedback & Discuss Post a Comment
structure (6 years ago)Inappropriate?
@semicharm thanks for the update
structure (6 years ago)Inappropriate?
yw - glad you got it working
Semicharm (6 years ago)Inappropriate?
It was just some quick code to test the file location. BTW, I found the issue. It's checking poser.ContentRootLocation() first. I forgot about that one. There's a copy of head.obz there too, but it's not the one Poser uses when the main runtine is external. Changing that to os.path.dirname( poser.AppLocation() ) works perfectly. Thanks you so much! :D
structure (6 years ago)Inappropriate?
btw - don't put "head.obz" in the path - you need add it later.

so currently - it looks like this for your setup :

location = os.path.dirname( poser.AppLocation() )
location = os.path.join( location, "runtime", "geometries", "MatRoomPreview" )
if os.path.exists( location ):
swapheads( location, ext, obj )
structure (6 years ago)Inappropriate?
sent you an email with the source code - let me know if you don't get it
Semicharm (6 years ago)Inappropriate?
Since you used compiled python I can't fix your code. The best I can do is give an example and you'll have to figure out what to do with it.

import os, poser
previewRuntimePath = "Runtime/Geometries/MatRoomPreview"
oldHeadPath = os.path.join(os.path.dirname(poser.AppLocation()), os.path.normpath(previewRuntimePath), "head.obz")

if os.path.exists(oldHeadPath): print more …
Semicharm (6 years ago)Inappropriate?
Installed the new script, but it is still looking in the wrong folder. You need to reference the path from poser.AppLocation() to find the correct runtime. If need be I can write the code to get the correct folder.
structure (6 years ago)Inappropriate?
yw !
structure (6 years ago)Inappropriate?
Updated to account for runtimes outside the main library
Semicharm (6 years ago)Inappropriate?
That is a really neat idea. Too bad the script does not work when the main Poser library is installed outside of the program runtime. It is an option in the program install and my main drive is not big enough for all of my libraries anyway. The core system files such as head.obz are still stored in the program runtime, but there are no user files in there so it is not indexed in the libraries ( more …



© 2024 Internet Business Systems, Inc.
670 Aberdeen Way, Milpitas, CA 95035
+1 (408) 882-6554 — Contact Us
ShareCG™ is a trademark of Internet Business Systems, Inc.

Report a Bug Report Abuse Make a Suggestion About Privacy Policy Contact Us User Agreement Advertise