Sun, Feb 2, 12:53 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 01 9:10 pm)



Subject: Deleting morph target in Python


Trollzinho ( ) posted Sun, 20 December 2009 at 1:07 AM · edited Sun, 02 February 2025 at 12:44 AM

I found a small script for Poser called MorphTidy. It lets you delete all morphs that matches your search criteria. Well, it doesn't work. Maybe its for earlier versions. But after debugging it, almost all of it works except the very part where it deletes the morph target it found. What the original script tries to do to delete the morph is: 

print "Deleting: ",ps.Name()
ps.SelectActor()
scene.DeleteCurrentProp()

As you might have guessed, "ps" addresses the parameter it found that matches the search. The part where it fails is the ps.SelectActor(). But I'm not sure if scene.DeleteCurrentProp() will work as it never got there.

So I looked for any command that could remove a morph target, and the closest I could find was RemoveValueParameter. However, I just can't get it to work on removing a morph target. Maybe its not for it after all.

Well, anyone knows of a command or a process that can be used to remove a morph target?


jonnybode ( ) posted Sun, 20 December 2009 at 2:31 AM

Hi!

SVDL made a script called removemorphs.py
You migth wanna check in the Python forum here at Rendo to see if its still available.



Trollzinho ( ) posted Sun, 20 December 2009 at 10:04 AM

I found it on his free stuff page. But that script does a different thing.  It actually never gets to delete the morph targets. But it does have some interesting code that I can try on my own script...


Trollzinho ( ) posted Mon, 21 December 2009 at 3:06 AM

Anyone else have any ideas on how to remove a morph target using Python? I've been googling for it like crazy for the past 2 days and I'm beginning to believe its not even possible...


Trollzinho ( ) posted Mon, 21 December 2009 at 4:03 AM

Nevermind, looks like this problem is solved!


PhilC ( ) posted Mon, 21 December 2009 at 4:31 AM · edited Mon, 21 December 2009 at 4:39 AM

There is no direct Python method to enable morph deletion.

However my "Poser Pocket Knife" plug in does have the tools to delete morphs selected by various parameters. The morphs are not just hidden they are totally removed from the figure.
 
I'd be interested to know if your solution was similar to mine.

You may find this resource of interest.


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.