V4 pz2 injection doesn't work
Same situation as my previous post, different problem.
I am posting this here because this site seems more active and switched on than some other sites. Plus it also involves technology that DAZ uses.
I made a very complex V4 injection which works fine using PMD for Poser, but that doesn't work for DAZ.
Now, for DAZ, I am experimenting with a CR2 (pz2) injection method (with all the Deltas included). It looks like this:
}
version 7
}
createFullBodyMorph morph1
createFullBodyMorph morph2
createFullBodyMorph morph3
etc...
actor BODY
{
groups {}
channels
{
valueParm morph1
{
bla bla etc
}
valueParm morph2
{
bla bla etc
}
valueParm morph3
{
bla bla etc
}
}
actor hip
{
channels
{
targetGeom morph1
{
bla bla etc
}
targetGeom morph2
{
bla bla etc
}
targetGeom morph3
{
bla bla etc
}
}
actor abdomen
{
channels
{
targetGeom morph1
{
bla bla etc
}
targetGeom morph2
{
bla bla etc
}
targetGeom morph3
{
bla bla etc
}
}
}
etc etc...
All deltas are included.
but once I load this in Poser, only morph3 has been loaded, and all the valueParms have been confused with the V4 channels.
I've noticed that if I load them up one-by-one that morph1, 2 and 3 replace each other, as if there's only one channel available for them... and that's why I end up with only morph3... while I make each channel with createFullBodyMorph.
With the PMD it works perfectly. I load the PMD first and them add the extra info. But If I try that with straight pz2 coding, I get the same problem... one by one replacing.
Why does this happen?? Any ideas?
Comments
Guess my first question would be are you somebody who really knows what they're doing in creating complex injections or truly a "new member" experimenting with how to do this?
V4.2 has already a set of available morph channels for the community to use and for most of us, that's a good idea. One morph per channel. If said figure is loaded and another morph is injected to the same channel, it will overwrite it. I do hope you're working 'on copies".
There is one vendor I'm aware of who knows how to make new .cr2s for V4.2 adding in her new morphs.
Well, I made three comics that starred a very complicated V4 called Lali and fans started to ask about her. People wanted to buy her. So I decided, ah, why not sell parts of her... BIG MISTAKE! Had I known about the incredible hell called pz2, i would've never conceded to do it. I have a background in C#, C++ and JAVA, SQL Server, COM services, Web Apps... I thought it would be a walk in the park... but I barely know what I'm doing... sometimes it seems like I'm the only one doing it.
The standard injection channels are not enough for my figure since it has that many morphs, and like you say, there are many other products out there that already use these channels. So I make my own channels. With PMD it works perfectly... but not with regular CR2. I'm missing something...
Yes I am working with copies, zillions of them.
Do you remember the name of that vendor?
thanks!
Not too far from the truth TBH, the problem is that most Gen4 and earlier content is made for Poser in Poser, so everything works in Poser and very few die-hards bother to see if it works in DS, so when things are used that Studio can't deal with that's when the problems start, it's also when us DS users have to get a bit "creative" to get content to work right.
A couple of months back I posted the code for creating a CR2 that would load V4's MFD and inject Alizea3D's GND4 PMD morphs, the same approach would work here, just require a heck of a lot more code.
There is another method but that requires the use of DS, the Gen4's are build around DAZ's EXP system,, with the EXP exporter you can create your own custom channels for V4, as well as creating regular INJ/REM PZ2's, that way people just need to run the updater and your channels will appear in V4.
EDIT found it
That code is pretty basic, but it should give you some ideas on what you need to do to get your morphs working in DS, and it should also work in Poser.
Should be reachable via sitemail at sharecg.com and/or Renderosity.
I remember where I saw their work and will post back the info.
edit: okay here's the vendor and information I was recalling. If the above code works for you though, great. If not, maybe these folk can help.
OMG!!! you guys are amazing. Ok I'll check this all out after I get some sleep (I'm in Africa hehe).
Really, I appreciate it so much! I've just been getting silence on other sites. This is the right place to be!
thanks a billion!
Edit:
Yep, I know those guys. We're going to try something similar but just simpler. But thanks for showing me that quote, useful info!!
I'll get back once I know more, and then I'll post a solution for other people that are perhaps interested in a solution.
Not too far from the truth TBH, the problem is that most Gen4 and earlier content is made for Poser in Poser, so everything works in Poser and very few die-hards bother to see if it works in DS, so when things are used that Studio can't deal with that's when the problems start, it's also when us DS users have to get a bit "creative" to get content to work right.
A couple of months back I posted the code for creating a CR2 that would load V4's MFD and inject Alizea3D's GND4 PMD morphs, the same approach would work here, just require a heck of a lot more code.
There is another method but that requires the use of DS, the Gen4's are build around DAZ's EXP system,, with the EXP exporter you can create your own custom channels for V4, as well as creating regular INJ/REM PZ2's, that way people just need to run the updater and your channels will appear in V4.
EDIT found it
That code is pretty basic, but it should give you some ideas on what you need to do to get your morphs working in DS, and it should also work in Poser.
thanks so much. We're busy testing this out now!
edit: Just tried this: http://docs.daz3d.com/doku.php/artzone/pub/tutorials/exp/tutorials with someone elses injection and works perfectly. but with mine it crashes during the initialisation. Cannot seem to isolate the problem. It hangs at the grps for the abdomen...
The PMD route you suggested was what we already managed to do and it works very well, except for DAZ and for older Poser versions that seem to replace the groups instead of append them.