Fang opened this issue on Sep 18, 2004 ยท 23 posts
Fang posted Sat, 18 September 2004 at 1:53 PM
Does anyone know of a way to save the Bulge effect that Python creates as a morph target? I've tried spawning a morph and also exporting .obj files but it doesn't save the change in the mesh. I'm kinda getting the feeling it's not possible but if anyone knows differently, please let me know! Thanks for your time.
ockham posted Sat, 18 September 2004 at 2:44 PM
Attached Link: http://ockhamsbungalow.com/Python/Exploder2.zip
Sure. My exploder script does exactly what you want. There are a couple of different options...... the readme in the ZIP describes them.Grace37 posted Sat, 18 September 2004 at 2:55 PM
what python Bulge?
ockham posted Sat, 18 September 2004 at 3:02 PM
Fang posted Sat, 18 September 2004 at 3:47 PM
Ockham, thanks for the help, is there a way to stop exploder from bulging to the right? It works perfectly allowing you to save the morph but as the mesh bulges, it moves to the right so that when you try and conform it to a parent, it no longer fits =( Is there a line in the script to alter this? I've had a look but I don't really know what I'm looking at =P Thanks for your help
ockham posted Sat, 18 September 2004 at 3:51 PM
I haven't found a way to avoid that.
The script just uses the 'Normal directions'
as defined internally by Poser; in some
cases those normals point straight out from
the center as you'd expect, and in others they move
asymmetrically. If anybody has a solution,
I'd love to see it!
You may be able to adjust the origins of the
bulged object to compensate.
Edit: I think the basic problem is that the normals are defined with respect to "vertex 0" of each body part, and the first vertex is generally not the same point as the ultimate center (origin) of the part. There is probably a fancy way to compensate for this......
Message edited on: 09/18/2004 15:57
Fang posted Sat, 18 September 2004 at 3:58 PM
Is there a way to add your save morph target script into the standard python bulge script? That kind of effect is exactly what I'm looking for and if I could add your script for automatically making a morph target my problem would be solved. Could this be done?
ockham posted Sat, 18 September 2004 at 4:02 PM
Hmmmm... Could be done, but I don't see why. The original bulge script produces random bulges, doesn't it? Or is there a different one?
Fang posted Sat, 18 September 2004 at 4:06 PM
It's this bulge effect that's perfect for what I'm after, like I said in my original mail, all I want to do is be able to save that effect as a morph target. If your little script could be added, it'd be perfect! I really appreciate your time.
ockham posted Sat, 18 September 2004 at 4:09 PM
Okay, I'll make a variant of my script that runs the CL type of random bulge. Coming up shortly.....
Fang posted Sat, 18 September 2004 at 4:11 PM
You're a STAR! Tahnkyou!
ockham posted Sat, 18 September 2004 at 4:13 PM
Taking a closer look at the CL script, I see that it isn't really random; they had a randomizer in there but commented it out. Their method is in fact different from mine, and I see why it might work better!
Fang posted Sat, 18 September 2004 at 4:43 PM
Just tried it, I'm still getting a problem tho =( It bulges the mesh but also moves it upward by a huge degree. When all parts are deformed, It looks as tho the model scale has been made bigger by about 200% but with the added bulge effect... Lol, I know I'm a pain, any ideas why it would do this? Thanks again.
ockham posted Sat, 18 September 2004 at 4:44 PM
I noticed that too. You may just have to scale the whole thing down after adjusting the bulge morph.
Fang posted Sat, 18 September 2004 at 4:52 PM
Ahhh, it appears the morph it makes isn't for the bulge effect, just the scaling effect. If I set the dial to zero the mesh reforms to the correct size/scale but is still bulged... Sorry for the hastle =(
ockham posted Sat, 18 September 2004 at 4:54 PM
So you can get the effect you want, with the right tweaking?
Fang posted Sat, 18 September 2004 at 4:57 PM
What are the lines for the "spawn morph target" script? Can those be added directly to the CL bulge script? Like I said, I don't know scripting at all so let me know if I'm way off =)
Fang posted Sat, 18 September 2004 at 5:00 PM
"So you can get the effect you want, with the right tweaking?" Unfortuantly not. The morph dial doesn't effect the bulge effect, only the scaling. I need the mesh to be normal when the dial is at zero. It's the correct size but it's still bulged =(
ockham posted Sat, 18 September 2004 at 5:10 PM
Let me take a closer look. Could be I'm still adding something that's not in the CL method,
Fang posted Sat, 18 September 2004 at 5:14 PM
Thanks for the time and effort spent on this Ockham, it's really appreciated.
ockham posted Sat, 18 September 2004 at 5:15 PM
Fang posted Sat, 18 September 2004 at 5:29 PM
Perfect! Thankyou, your time spent is very much appreciated. Sincerely, Fang.
ockham posted Sat, 18 September 2004 at 5:30 PM
Good. I'll put this in the package with the Exploder.