Thu, Oct 3, 12:29 PM CDT

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Using the function call LoadMaterialCollection


Anthony Appleyard ( ) posted Tue, 10 August 2021 at 8:52 AM · edited Thu, 03 October 2024 at 12:28 PM

The Poser Python manual describes this function:-

LoadMaterialCollection
Explanation
Load a material collection for this actor.
Arguments
Enter the file name of the material collection you wish to loa
Explanation
Load a material collection for this actor.
Arguments
Enter the file name of the material collection you wish to load

~~~~~~~~~~~~~~~~~~~~
For example,

act.LoadMaterialCollection("//Runtime//Libraries//Materials//police//riotarmor_base.mt5")

(The slashes should be backslashes.)

But it only works if called on an actor. How to I tell Poser Python to load a material onto a character?


FVerbaas ( ) posted Tue, 10 August 2021 at 12:49 PM
Forum Coordinator

How about the body actor?


structure ( ) posted Tue, 10 August 2021 at 2:02 PM · edited Tue, 10 August 2021 at 8:46 PM
Forum Coordinator

you need to change the extension to .mc6 or mcz - an mt5 is a material set not a material collection.

act.LoadMaterialCollection("//Runtime//Libraries//Materials//police//riotarmor_base.mc6")

a material set (mt5) contains only one material whereas a material collection (mc6) can contain multiple.

Locked Out


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.