Tue, Nov 19, 5:03 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 18 10:25 pm)



Subject: poser pro and path to files in the pz3 problem


kuroyume0161 ( ) posted Mon, 26 May 2008 at 3:57 PM

One thing missing - that I'm dealing with at the moment: an associated PMD file.  The user can simply copy it and rename it or replace the old pz3 with the new one.  Just making this possibility known.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


estherau ( ) posted Tue, 27 May 2008 at 2:16 AM

 thanks svdl will keep u posted

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Tue, 27 May 2008 at 2:28 AM

One thing I'm concerned about is case sensitivity. I can't test that on Windows, but I do know that file names in Unix (and thus probably in Mac OSX) are case sensitive.
I've tested the script on a Poser Pro test .pz3 that contains items from multiple runtimes, and on my system the script can resolve each and every reference.
I hope it'll work on the Mac. But I cannot be sure.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Tue, 27 May 2008 at 6:10 AM

 I didn't think case sensitivity would be a problem because it isn't a problem for the finder on my mac when I do searches.  There is some sort of problem though.  The script opens and asks me to chose the pz3 and when I locate the pz3 Iwant, it creates a new pz3 but there is just a spinning beachball in poser(unless maybe my runtimes are so massive I just haven't waited long enough or something??) and then I have to forcequit and the new pz3 your script has made doesn't seem to have any changes to the paths with external runtimes, but just to the paths for the cameras which were in the poserpro folder.
Love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Tue, 27 May 2008 at 6:15 AM

file_406989.jpg

 does it matter that all my external runtimes are in a folder called poserall which is separate to the poserpros folder Love esther PS here's just part of the poserall folder.  One of the folders is open so you can see the runtime inside it.  Each subfolder of poserall has a runtime

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Tue, 27 May 2008 at 2:59 PM · edited Tue, 27 May 2008 at 3:06 PM

The script does take some time to run (about one minute on a 100 Mb pz3 with objects from 6 separate runtimes), that's why it prints progress to the screen (one line for each 1000 lines of .pz3 it processes, plus every object/texture reference it encounters). It works perfectly on Windows, and the script does not ue any OS specific routines.

I have never used a Mac, so I don't know whether printing to the debug windows works.

You have quite a lot of external runtimes, and each time the script encounters a relative reference for the first time, it'll scan those runtimes until it has found the reference. As soon as the script finds the reference, it'll stop searching the remaining runtime, and it'll store the reference in an in-memory dictionary.
The second time that it encounters the same reference it'll find it in the in-memory dictionary first, and so it doesn't scan the runtimes. Which is a definite speedup for the script.

Depending on the size of your scene and the speed of your Mac I'd expect the script to take from 3 to 30 minutes to complete. I expect the script to be slower on your Mac mainly due to the amount of runtimes you have (I've got 10 external runtimes, you've got over 30), and the fact that my disk systems are faster than Mac disks.(unless you have a $5000+ MacPro system, that is).

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


LostinSpaceman ( ) posted Tue, 27 May 2008 at 6:09 PM

Thanks for another fine script even if I don't have Poser Pro. ;)


kuroyume0161 ( ) posted Tue, 27 May 2008 at 6:19 PM

svdl, maybe you can take a hint from what I explained my code doing above and let the user order and select the Runtimes to use for resolving references rather than using all of them in the order given?  It really can expedite the process even though it does require some user configuration.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


estherau ( ) posted Tue, 27 May 2008 at 7:07 PM

 I think maybe the script isn't working at all.  Because nothing comes up in the script window and the ball spins for ages.
Is it because I don't have the external runtimes in the poser folder.  Is it looking for them in there or just somewhere on my harddrive or somewhere on all my 4 internal hard drives?
Love esther
PS That is a good idea Robert

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


kuroyume0161 ( ) posted Tue, 27 May 2008 at 7:17 PM

If he's getting the Runtimes from the LibraryPrefs.xml file like the feature that you requested, then it should be capable of working with all of them no matter where they reside (as long as anything on an external drive is available).  Don't remember if Poser Python enumerates available Runtimes.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


svdl ( ) posted Tue, 27 May 2008 at 9:40 PM

Quote - If he's getting the Runtimes from the LibraryPrefs.xml file like the feature that you requested, then it should be capable of working with all of them no matter where they reside (as long as anything on an external drive is available).  Don't remember if Poser Python enumerates available Runtimes.

It does, in Poser 7 and up. And the script uses that feature.
It may be broken on the Mac - I don't know. I do know that I've avoided Tkinter, since it's flaky on PC and broken on Mac (at least, it has been for several versions).

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


svdl ( ) posted Tue, 27 May 2008 at 9:44 PM

Esther, could you try the following script?

# Test print statements and Libraries() function

import poser

libraryList=poser.Libraries()
for library in libraryList:
        print library
# end script

If it works, it prints a list of your external runtimes to the screen, in a simple text popup window. If not, then that part of Python is broken on Mac, and I'll have to do something else.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Tue, 27 May 2008 at 10:49 PM

 do i just paste the whole thing into a text  doc, then change extension to.py ?

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


kuroyume0161 ( ) posted Tue, 27 May 2008 at 10:55 PM · edited Tue, 27 May 2008 at 10:56 PM

Yes.  And put it in the proper place like the other script.

svdl: Ok.  I was looking at the Poser 6 Python doc and couldn't find it there.  So, this will be limited to Poser 7+ then.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


estherau ( ) posted Tue, 27 May 2008 at 10:56 PM

   File "/Applications/Poser Pro/Runtime/Python/poserScripts/ScriptsMenu/svdl/test2.py", line 1

    {rtf1ansiansicpg1252cocoartf949cocoasubrtf270

                                                     ^

SyntaxError: invalid token

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Tue, 27 May 2008 at 10:57 PM

 

 

  File "/Applications/Poser Pro/Runtime/Python/poserScripts/ScriptsMenu/svdl/test.py", line 1

    {rtf1ansiansicpg1252cocoartf949cocoasubrtf270

                                                     ^

SyntaxError: invalid token

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


kuroyume0161 ( ) posted Tue, 27 May 2008 at 10:58 PM

rtf = run time file/function (?)
cocoart = Cocoa run time file/function (?)

Which version of MacOS are you running?  Though I haven't had any problems with Poser 7 or Poser Python on MacOSX 10.4.11 or 10.5.2.  Let me double check the latter.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


svdl ( ) posted Tue, 27 May 2008 at 11:11 PM

file_407053.txt

Hmm, looks like a paste error, Python can be nitpicky about empty lines or spaces. Here's the same script in a text file (save as testLibs.py), with the correct line spacing and indentation.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


svdl ( ) posted Tue, 27 May 2008 at 11:12 PM

kuroyume: this script is targeted at Poser Pro, it solves a problem that only occurs with Poser Pro. So I didn't make it backwards compatible with P6 or earlier.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


kuroyume0161 ( ) posted Tue, 27 May 2008 at 11:20 PM · edited Tue, 27 May 2008 at 11:21 PM

Gotcha and true. :)  It could be useful as a way to rereference PZ3s to changes in Runtimes (path or whatnot).  I've added this to my plugin as well - so that people sharing C4D scenes with Runtime-related texture references, the required content, but different paths to their Runtimes can have them re-resolved. Or, if they've reinstalled to different drives on a new system perhaps (etc. and so on).  ;)

I had no problem with scripts on 10.5.2 in Poser 7 - my script was written on Windows and it works on MacOS.  Hopefully there isn't some problem with Python scripts on Mac with Poser Pro!

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


dadt ( ) posted Wed, 28 May 2008 at 3:24 AM

This problem is not just with PZ3 files but also with character,prop,hair,material collections   - in fact any type of file saved from PP.


dadt ( ) posted Wed, 28 May 2008 at 4:39 AM · edited Wed, 28 May 2008 at 4:44 AM

I've just done some tests with interesting results.

I set up a scene in Poser 7 with a V4 character  ,clothes jewellry and a few assorted props. None of these are in my P7 or PP runtimes and the character has its obj and textures in other runtimes than where the CR2 file is located. I ran 3 cloth room and one dynamic hair simulations then saved the scene as a PZ3.

I then loaded it into PP and saved the scene from there, then did some tests on how they loaded. In each case I loaded the scene into a freshly started program so that no info was left in temp files.

Poser 7 loaded the P7 version of the file in 12 min  40 secs. No problems
Poser 7 loaded the PP version in 11 min 30 sec, It found all items and textures without any queries.

Poser Pro loaded the P7 version in 5 min 40 sec. No problems,good speed gain.
Poser Pro loaded the PP version in 10 min 0 sec.

Carrara 6 loaded the P7 version in 50 sec. No problems
Carrara 6 loaded the PP version in 60 sec. I was pleasantly surprised that it found everything with no problems.


estherau ( ) posted Wed, 28 May 2008 at 9:07 AM

 svdl
this part is working really well!!

 here's the cut and paste of the result;-
/Applications/Poser Pro

/Applications/Poser Pro/Downloads

/Applications/PoserAll/Poser_pankoVC_combat

/Applications/PoserAll/Poser 5/Poser 4

/Applications/PoserAll/Poser 5

/Applications/PoserAll/Poser 6

/Applications/PoserAll/Poser_Hair

/Applications/PoserAll/Poser_military

/Applications/PoserAll/Poser_GI_CombatGear_V3

/Applications/PoserAll/Poser_GI_CombatGear_M3

/Applications/PoserAll/Poser_schlabber

/Applications/PoserAll/Poser_shadowdancer

/Applications/PoserAll/Poser 5/newRuntime

/Applications/PoserAll/posermildollarbaby

/Applications/PoserAll/Poser_BDUV3-1 Folder

/Applications/PoserAll/Poser_V3streetfighter

/Applications/PoserAll/Poser_Victoria4

/Applications/PoserAll/Poser_ppletexnmorphs

/Applications/PoserAll/Poser_combatmedicposes

/Applications/PoserAll/Poser_trucks

/Applications/PoserAll/Poser_BDUV3-1 Folder

/Applications/PoserAll/Poser_M3everydaywear

/Applications/PoserAll/Poser_M3BDU

/Applications/PoserAll/Poser_daz desert soldier

/Applications/PoserAll/Poser 5/newRuntime

/Applications/PoserAll/posermildollarbaby

/Applications/PoserAll/shadownet_test_buttondress

/Applications/PoserAll/Poser_ppletexnmorphs

/Applications/PoserAll/Poser_Hair

/Applications/PoserAll/shadownet_furtest

/Applications/PoserAll/Poser_streets

/Applications/PoserAll/Poser_streets

/Applications/PoserAll/Poser_stonemason

/Applications/PoserAll/Poser_Miki2_Complete

/Applications/PoserAll/Poser_World

/Applications/PoserAll/Poser_school

/Applications/PoserAll

/Applications/PoserAll/Poser_casualwkendV3

/Applications/PoserAll/Poser_SciFi

/Applications/PoserAll/ziggieICUsept06

/Applications/PoserAll/Poser_Miki2_Complete

/Applications/PoserAll/Poser_BCMiki2

/Applications/PoserAll/Poser_junglevines

/Applications/PoserAll/Poser_Tribal

/Applications/PoserAll/Poser_Animals

/Applications/PoserAll/Poser_BCVickie4

/Applications/PoserAll/Poser_shadownet

/Applications/PoserAll/Poser_Peasant_tex

/Applications/PoserAll/Poser_Teenmike3

/Applications/PoserAll/Poser_M3denemjeansnjckt

/Applications/PoserAll/Poser_realstreetclothes

/Applications/PoserAll

/Applications/PoserAll/Poser_jungleV4

/Applications/PoserAll/Poser_shadownet

/Applications/PoserAll/Poser_Boxing

/Applications/PoserAll/Poser_universalmagicmags

/Applications/PoserAll/Poser_Jeanz_V4

/Applications/PoserAll/Poser_skeletons

/Applications/PoserAll/Poser_knight

/Applications/PoserAll/Poser_aikoBC

/Applications/PoserAll/Poser_V4Cowgirl

/Applications/PoserAll/Poser_Hair

/Applications/PoserAll/Poser_G2

/Applications/PoserAll/Poser_Apollo

/Applications/PoserAll/Poser_hairtotalupdo

/Applications/PoserAll/Poser_G2morphsuit

/Applications/PoserAll/Poser_HighStakes-DoubleDown

/Applications/PoserAll/Poser_bar

/Applications/PoserAll/Poser_bar

/Applications/PoserAll/Poser_Freak

/Applications/PoserAll/Poser_M3suit_Beowulf

/Applications/PoserAll/Poser_Velvet Rope

/Applications/PoserAll/Poser_bullking

/Applications/PoserAll/Poser_architecturalinteriors

/Applications/PoserAll/Poser_Animals

/Applications/PoserAll/Poser_Margharita

/Applications/PoserAll/Poser_mouse

/Applications/PoserAll/poser_jmmpack Folder

/Applications/PoserAll/Poser_shadowdancerV4

/Applications/PoserAll/Poser_hairtotalupdo2

/Applications/PoserAll/Poser_Panko_AssaultWeapons_4

/Applications/PoserAll/Poser_IngenueV3

/Applications/PoserAll/Poser_Animals

/Applications/PoserAll/Poser_Minotaur

/Applications/PoserAll/Poser_Panko_AssaultWeapons_1

/Applications/PoserAll/Poser_bookcasenclock

/Applications/PoserAll/Poser_architecturalinteriors

/Applications/PoserAll/Poser_BVHshacklensswat

/Applications/PoserAll/Poser_M3loungewear

/Applications/PoserAll/Poser_casualM3

/Applications/PoserAll/Poser_hairtotalupdo2

/Applications/PoserAll/Poser_shadownet

/Applications/PoserAll/Poser_Panko_AssaultWeapons_1

/Applications/PoserAll/Poser_totaleyes

/Applications/PoserAll/Poser_Secretary

/Applications/PoserAll/Poser_Aeroplanes

/Applications/PoserAll/Poser_Apollo

/Applications/PoserAll/Poser_Panko_AssaultWeapons_2

/Applications/PoserAll/Poser_MilDragon

/Applications/PoserAll/Poser_Mitsu_hair

/Applications/PoserAll/Poser_USPS Mailbox

/Applications/PoserAll/Poser_Big_Casino

/Applications/PoserAll/Poser_City Block-1

/Applications/PoserAll/Poser_firearmDAZpack

/Applications/PoserAll/Poser_Clothes_Accessories_misc

/Applications/PoserAll/Poser_Gym

/Applications/PoserAll/Poser_Food

/Applications/PoserAll/wwconverted

/Applications/PoserAll/Poser_Hair_Cecile2

/Applications/PoserAll/Poser_G2

/Applications/PoserAll/Poser_MuscleCar

/Applications/PoserAll

/Applications/PoserAll/Poser_RealisticParlor

/Applications/PoserAll/Poser_Music

/Applications/PoserAll/Poser_FantasyHistory

/Applications/PoserAll/Poser_AmusementPark

/Applications/PoserAll/Poser_lauralukeclothes

/Applications/PoserAll/Poser_Eyes

/Applications/PoserAll/YA_VivLaura

/Applications/PoserAll/Poser_totaleyes

/Applications/PoserAll/Poser_Panko_IHMS

/Applications/PoserAll/Poser_AirBase

/Applications/PoserAll/Poser_RealJeans

/Applications/PoserAll/Poser_MercenaryBase

/Applications/PoserAll/panko_test

 

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Wed, 28 May 2008 at 9:22 AM

 I am running leopard. ie OS 10.5
Love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


kuroyume0161 ( ) posted Wed, 28 May 2008 at 11:22 AM

Quote - This problem is not just with PZ3 files but also with character,prop,hair,material collections   - in fact any type of file saved from PP.

True as well.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


svdl ( ) posted Wed, 28 May 2008 at 2:57 PM

Esther: you've got over a hundred runtimes in your system. That's quite a lot. The way the script is written, I expect the total running time to be almost linearly dependent on the number of runtimes.
On my system, I use 12 separate runtimes, so that would mean the script would run 10 times as slow on your system.
Another factor is the speed of the system itself. I tested and ran the script on an Intel Q6600/8 GB RAM / multiple SATA-II disk system, the runtime folders being located on another physical drive than Poser itself or the operating system. Operating system XP 64 bit. On that basis I expect the script to run 20%-50% faster than on a midrange to high end Mac.

Then again, it's strange that the script doesn't report to the screen. It SHOULD do so, for every texture/object reference it encounters, plus once for every 1000 lines read (a Poser scene file can contain over 10 million lines).

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Wed, 28 May 2008 at 8:01 PM

 guess what - i left it running all night, and when I went to bed there was a spinning beachball, but this morning it had reported to the screen and the last line says:-

Handling line  6628000

Done

Off to try the pz3 in vuenow.
will keep you posted.
Love esther
 

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Wed, 28 May 2008 at 8:07 PM

Okay, then I know what's going on. On the Mac, the screen doesn't update as it should. But the script (most probably) works.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Wed, 28 May 2008 at 8:27 PM

 Hi svdl,
well the new pz3 file that your proggie created now imports into vue but there is a problem finding textures - it comes in without any.   I checked the new pz3 and found this sort of pathway for the textures
textureMap ":Runtime:textures:Panko:Modern_1:L85A1_v1.jpg"
this texture is actually in an external runtime.
Love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Wed, 28 May 2008 at 8:52 PM

That is weird.
Here's how the script works:

  • it reads in a line from the original .pz3;
  • it tries to split the line at the string ":Runtime:";
  • if there's only one part after the spliting, the line did not contain the text ":Runtime" and gets written out to the new .pz3, unmodified;
  • if there's two parts, the second part gets split into substrings at the ":" signs, then joined together with the OS folder separator (os.sep returns "/" in the case of Unix/MacOSX, ":" in the case of MacOS9 and older, and "" in the case of Windows).
  • the rejoined path part is combined with each library folder in turn, and the script then checks if the file represented by the resulting absolute path exists. It should find the file in one of the linked runtimes.
  • and then the first part gets written to the .pz3, together with the absolute path.

On Windows, it works for every path in the .pz3, be it an object reference, a texture reference, a readScript reference or a .PMD reference.
Why it doesn't work on Mac is beyond me.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Wed, 28 May 2008 at 8:55 PM

 maybe because the textures need to be separated by : instead of / ???

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Wed, 28 May 2008 at 8:58 PM

 this is the last part of the screen

Testing for file '/Applications/PoserAll/Poser_Panko_AssaultWeapons_1/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Panko_AssaultWeapons_1

Testing for file '/Applications/PoserAll/Poser_totaleyes/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_totaleyes

Testing for file '/Applications/PoserAll/Poser_Secretary/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Secretary

Testing for file '/Applications/PoserAll/Poser_Aeroplanes/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Aeroplanes

Testing for file '/Applications/PoserAll/Poser_Apollo/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Apollo

Testing for file '/Applications/PoserAll/Poser_Panko_AssaultWeapons_2/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Panko_AssaultWeapons_2

Testing for file '/Applications/PoserAll/Poser_MilDragon/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_MilDragon

Testing for file '/Applications/PoserAll/Poser_Mitsu_hair/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Mitsu_hair

Testing for file '/Applications/PoserAll/Poser_USPS Mailbox/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_USPS Mailbox

Testing for file '/Applications/PoserAll/Poser_Big_Casino/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Big_Casino

Testing for file '/Applications/PoserAll/Poser_City Block-1/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_City Block-1

Testing for file '/Applications/PoserAll/Poser_firearmDAZpack/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_firearmDAZpack

Testing for file '/Applications/PoserAll/Poser_Clothes_Accessories_misc/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Clothes_Accessories_misc

Testing for file '/Applications/PoserAll/Poser_Gym/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Gym

Testing for file '/Applications/PoserAll/Poser_Food/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Food

Testing for file '/Applications/PoserAll/wwconverted/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/wwconverted

Testing for file '/Applications/PoserAll/Poser_Hair_Cecile2/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Hair_Cecile2

Testing for file '/Applications/PoserAll/Poser_G2/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_G2

Testing for file '/Applications/PoserAll/Poser_MuscleCar/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_MuscleCar

Testing for file '/Applications/PoserAll/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll

Testing for file '/Applications/PoserAll/Poser_RealisticParlor/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_RealisticParlor

Testing for file '/Applications/PoserAll/Poser_Music/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Music

Testing for file '/Applications/PoserAll/Poser_FantasyHistory/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_FantasyHistory

Testing for file '/Applications/PoserAll/Poser_AmusementPark/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_AmusementPark

Testing for file '/Applications/PoserAll/Poser_lauralukeclothes/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_lauralukeclothes

Testing for file '/Applications/PoserAll/Poser_Eyes/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Eyes

Testing for file '/Applications/PoserAll/YA_VivLaura/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/YA_VivLaura

Testing for file '/Applications/PoserAll/Poser_totaleyes/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_totaleyes

Testing for file '/Applications/PoserAll/Poser_Panko_IHMS/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_Panko_IHMS

Testing for file '/Applications/PoserAll/Poser_AirBase/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_AirBase

Testing for file '/Applications/PoserAll/Poser_RealJeans/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_RealJeans

Testing for file '/Applications/PoserAll/Poser_MercenaryBase/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/Poser_MercenaryBase

Testing for file '/Applications/PoserAll/panko_test/Runtime/textures/PW texture files/SP3-Business suit/SP3 business suit blouse-TEX3-PW.jpg"'

Not present in  /Applications/PoserAll/panko_test

Handling line  6628000

Done

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Wed, 28 May 2008 at 9:00 PM

 In the mac (os 10) all the texture paths have : seperators for some reason even though the .obj files don't.
Love esther
":Runtime:textures:Quarker:RadiantJaguarHair:RJH_Brown.jpg"

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Wed, 28 May 2008 at 9:03 PM

The only thing that I can think of is symbolic links messing up the script. The fact that it leaves the texture references unmodified means that it could not resolve the relative path to an absolute path, and I've read something about Unix symbolic links messing up the "exists" function in Python.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Wed, 28 May 2008 at 9:09 PM

 but the .obj paths work fine on your script.
Is it the : separaters causing the problem?
Love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Wed, 28 May 2008 at 9:10 PM

 /Applications/PoserAll/Poser_V3streetfighter/Runtime/Geometries/Panko/L85A1.obj

example of object path  - the separaters are different on the mac to the texture paths.

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Wed, 28 May 2008 at 9:12 PM

I found something in the file listing, and I think I know what's wrong. The texture file name has been enclosed in double quotes, and one of those quotes got included in the search expression.
Now that I know what is going wrong, I can fix it.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


estherau ( ) posted Wed, 28 May 2008 at 9:12 PM

 yee ha!!

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


svdl ( ) posted Wed, 28 May 2008 at 9:40 PM · edited Wed, 28 May 2008 at 9:43 PM

file_407133.txt

I made a new test.pz3, explicitly using texture references enclosed in quotes mixed with unquoted references, and tested the new script. It works. All references get converted to absolute. The new script is in the link.

P.S.: I'm glad I made the script as verbose as it is, it allowed me to find the error.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


svdl ( ) posted Wed, 28 May 2008 at 9:46 PM

Quote - > Quote - This problem is not just with PZ3 files but also with character,prop,hair,material collections   - in fact any type of file saved from PP.

True as well.

Beg to differ: items stored in libraries SHOULD have relative references! Saving them with absolute references is an error, and items with absolute references are (rightfully) rejected by the marketplace testers here and at DAZ.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


svdl ( ) posted Wed, 28 May 2008 at 9:54 PM

Esther: considering the amount of runtimes you have, I think I'd better make the script somewhat smarter. Here's what I'm going to do: the script will first search in a list of "preferred" runtimes, and if it cannot resolve the reference using that list, it'll use the full list. As soon as it finds the reference, it'll add that runtime to the "preferred" list.
I think that checking for file existence is one of the more time consuming parts of the script, and this way I can reduce the amount of existence checks.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


kuroyume0161 ( ) posted Wed, 28 May 2008 at 9:58 PM · edited Wed, 28 May 2008 at 9:59 PM

Quote - > Quote - > Quote - This problem is not just with PZ3 files but also with character,prop,hair,material collections   - in fact any type of file saved from PP.

True as well.

Beg to differ: items stored in libraries SHOULD have relative references! Saving them with absolute references is an error, and items with absolute references are (rightfully) rejected by the marketplace testers here and at DAZ.

I beg to differ further - if someone uses references from different Runtimes and saves, say, the figure to the Figure library then what - eh? ;)

As originally noted, whether you save a PZ3 or anything to the library, the same exact rules apply.

Though I'll agree with you on commercial products requiring relative references.

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


estherau ( ) posted Wed, 28 May 2008 at 10:07 PM

 trying the new script.  will go to work soon and let you know when I come home tonight.
Love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


markschum ( ) posted Wed, 28 May 2008 at 10:09 PM

file_407137.txt

You can get the files full path if the scene is loaded to Poser , but Poser doesnt seem to save that info in the pz3. There are some comments from curious labs from Poser 5 that say, Do not have duplicate file names  in multiple runtimes because of the possibility that the wrong one gets picked.

Heres the script I wrote that checks each runtime for the file and replaces the full path
Just rename from txt back to the py

Its a non-elegant brute force approach 


estherau ( ) posted Wed, 28 May 2008 at 10:20 PM

 hi it actually finished before I went to work - guess what!!  IT WORKS!!!  Everything imports perfectly into vue.  yipppeeeee!
love esther
PS thank you muchly svdl - you are a champion

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


estherau ( ) posted Wed, 28 May 2008 at 10:38 PM

 mark- i will have to try this tonight when i get home from work
love esther

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


Mazak ( ) posted Thu, 29 May 2008 at 7:33 AM

bookmark ;-)

Mazak

Google+ Bodo Nittel 


estherau ( ) posted Thu, 29 May 2008 at 10:45 AM

 Mark - I just tried your script - it works very well indeed.  And very fast too.  I didn't try it on the same file that I tried with svdl script but I have a feeling yours may be faster.
I will have to try it on a more complex scene to see if that is correct.
Thankyou very much to everyone - this is great.
Much vue happiness because of this.
Love esther
PS it definitely is a very fast script!  Just checked.
PPS any chance of a standalone one that doesn't need poser open to fix the file or maybe could batch fix them?  Not essential by any means.  what we have already is wonderfully great!!!!!!

MY ONLINE COMIC IS NOW LIVE

I aim to update it about once a month.  Oh, and it's free!


markschum ( ) posted Fri, 30 May 2008 at 2:57 PM

thanks , note the bit about non-elegant brute force solution :)  

there may be some references that the program wont handle .

it creats a filename_new.pz3 with the changes . I hate changing the original files in case something bad happens .

written in python to run from poser but the pz3 does NOT have to be loaded , I just use poser to get python running .


LostinSpaceman ( ) posted Fri, 30 May 2008 at 2:59 PM

Nice work guys!


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.