Wed, Apr 24, 5:27 AM CDT

Welcome to the Poser 11 / Poser Pro 11 OFFICIAL Technical Forum

Forum Moderators: nerd

Poser 11 / Poser Pro 11 OFFICIAL Technical F.A.Q (Last Updated: 2024 Apr 15 3:14 am)

banner

Welcome to the Poser Forums! Need help with these versions, advice on upgrading? Etc...you've arrived at the right place!


Looking for Poser Tutorials? Find those HERE



Subject: How do you create a mat pose file for a prop?


davo ( ) posted Tue, 25 August 2020 at 6:59 PM · edited Wed, 24 April 2024 at 4:53 AM

I know that I can create a material collection file and use it from the materials library, but I'd rather have a mat pose file for a prop in the pose library. Is there a way to do this? Is there a simple code change to append or change in a pz2 file? I have tried to just rename a .mc6 file to .pz2, but it does not work. Any suggestions? Thanks in advance :-) Davo


davo ( ) posted Tue, 25 August 2020 at 7:18 PM

Yikes, nevermind, I can just move a .mc6 file into the pose library and it'll work from there as is.


hborre ( ) posted Tue, 25 August 2020 at 7:20 PM

https://community.hivewire3d.com/threads/for-ds-users-mc6-to-pz2-conversion.122/

This link will explain how to convert the file from a material collection to a MATPose file. You will need to edit the file through either a text editor or notepad++. Disregard the DS portion of the post.


davo ( ) posted Tue, 25 August 2020 at 8:24 PM

I tried to do that already, but it didn't seem to work. I can try again.


EldritchCellar ( ) posted Wed, 26 August 2020 at 9:50 AM

A pose can only be applied to a prop if the prop is parented to a figure.



W10 Pro, HP Envy X360 Laptop, Intel Core i7-10510U, NVIDIA GeForce MX250, Intel UHD, 16 GB DDR4-2400 SDRAM, 1 TB PCIe NVMe M.2 SSD

Mudbox 2022, Adobe PS CC, Poser Pro 11.3, Blender 2.9, Wings3D 2.2.5


My Freestuff and Gallery at ShareCG




hborre ( ) posted Wed, 26 August 2020 at 5:18 PM

Is it parented or just a figure present in the scene?


HartyBart ( ) posted Wed, 26 August 2020 at 5:43 PM

I'm pretty sure I recently saw a Python script to do this automatically.



Learn the Secrets of Poser 11 and Line-art Filters.


EldritchCellar ( ) posted Wed, 26 August 2020 at 7:50 PM · edited Wed, 26 August 2020 at 7:52 PM

...only possible if parented to a figure. Always been that way. There's a text hack that allows you to change the pz2 to a camera file cm2 and apply with only the prop in scene. Reading on this some and there's suggestion that 'figure in scene' might be enough in a particular instance.

20200826_204440.jpg



W10 Pro, HP Envy X360 Laptop, Intel Core i7-10510U, NVIDIA GeForce MX250, Intel UHD, 16 GB DDR4-2400 SDRAM, 1 TB PCIe NVMe M.2 SSD

Mudbox 2022, Adobe PS CC, Poser Pro 11.3, Blender 2.9, Wings3D 2.2.5


My Freestuff and Gallery at ShareCG




HartyBart ( ) posted Thu, 27 August 2020 at 1:55 AM · edited Thu, 27 August 2020 at 1:57 AM

I found the script I was thinking of. It might be of help, as a starting point for making a newer better one that works across more types. Google for: MatFile_gui.py and Python script for creating MAT pose files



Learn the Secrets of Poser 11 and Line-art Filters.


davo ( ) posted Sat, 29 August 2020 at 10:16 AM

The prop is not parented to anything in the scene. I was able to simply rename an .mc6 to .pz2 and stick it in the pose library with my other material pose files so people don't have to navigate all over the place to simply change a texture. That might be a cheat, but it works just fine:-)


structure ( ) posted Sat, 29 August 2020 at 11:21 AM · edited Sat, 29 August 2020 at 12:11 PM
Forum Coordinator

this script ( needs modifying ) will allow you to apply an mt5/mz5 to to the preview material on a prop

import os.path
import poser                                                # get poser
reset = False                                               # set reparent variable
scene = poser.Scene()                                       # define scene
actor = scene.CurrentActor()                                # get the actor

if len( actor.Materials() ) > 0:                            # make sure the actor has materials
    if actor.IsProp():                                      # is this actor a prop?
        if actor.Parent().Name() == "UNIVERSE":             # is this actor parented?
            actor.SetParent( scene.Actor("GROUND") )        # set actor parent
            reset = True                                    # inform script we need to reparent prop

    material = actor.Materials()[0]                         # get actors preview material
    material.LoadMaterialSet( 
        os.path.join(poser.TempLocation(), "test.mt5" ))    # load material
    if reset:
        actor.SetParent( scene.Actor( "UNIVERSE") )         # if we need to reparent - do so

    scene.DrawAll()

for an mc6/mcz use

    actor.LoadMaterialCollection( file )

How it Works:

it tests the currently selected actor to see if it is a prop and has a parent

if there is no parent ( UNIVERSE will be the parent ) it temporarily parents the prop to the GROUND

after applying the material ( in this case a temporary mat ) if the prop was not parented

it reparents the prop to the UNIVERSE

=========================

Locked Out


EldritchCellar ( ) posted Sat, 29 August 2020 at 3:28 PM

Long live Poser 6 lol.



W10 Pro, HP Envy X360 Laptop, Intel Core i7-10510U, NVIDIA GeForce MX250, Intel UHD, 16 GB DDR4-2400 SDRAM, 1 TB PCIe NVMe M.2 SSD

Mudbox 2022, Adobe PS CC, Poser Pro 11.3, Blender 2.9, Wings3D 2.2.5


My Freestuff and Gallery at ShareCG




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.