It is currently 19 Jun 2013, 00:50

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Multipatch Texture Setup
PostPosted: 22 Feb 2011, 01:49 
Offline
Moderator
User avatar

Joined: 26 Sep 2009, 15:51
Posts: 782
Location: Bonn, Germany
Tim Crowson has rewritten his Mari2XSI script supporting a lot of new options

Here's the information he just posted on the mailing list:

Quote:
I finally got around to revamping our old Mari2XSI script. It was always a very limited script anyway. The new version is an Addon that does a good bit more. If you use this and encounter any problems or glitches, please let me know!

Links:
Info page
Download the Addon
Demo Video


New Features and Changes:
- Installs as a .xsiaddon
- Supports both Mari and Mudbox naming conventions (detects them automatically)
- Renamed to 'Multipatch Texture Setup'
- Implemented via a new command in the Render Tree: User Tools > Multipatch Texture Setup, which launches a custom UI for the setup.
- The new system allows for multiple UV maps on the target mesh.
- Once the compound has been created, you can configure certain settings after the fact, such as the UV map or the color profile depending on your linear workflow setup.
- Currently works with Mental Ray (fo sho!). Exploring Arnold options now. 3delight later...


Now for the disclaimer:
I'm not a codemonkey by nature. I'm primarily a modeling and texture artist, with a hint of Fume. I just use Python in what ways I can to help me get my work done. So if you look at my code, you will be very underwhelmed. For one thing, I just don't understand the whole custom callbacks thing with self-installing plugins, so I resorted to using a big Logic Statement instead. Also, lots of steps could probably use the Object Model instead of the commands, but whatever. It functions well, it's not slow. Works for my needs, maybe it will for yours too.

And if anyone can give me a tutorial on callbacks for custom plugins....I sure do hate all that unformatted red text in the Logic statement...


also featured on (freshly updated) rray.de ;)

_________________
Image rray.de, a resource site for softimage, updated apr 13th


Top
 Profile  
 
 Post subject: Re: Multipatch Texture Setup
PostPosted: 23 Feb 2011, 05:51 
Offline

Joined: 30 Nov 2010, 20:56
Posts: 15
Thanks Reinhart!

Currently it only works with Mental Ray. Later this week I'll be updating it again to allow compatibility with Arnold. I don't think it will require any additional update on rray.de, however.


EDIT: Actually, the support for Arnold didn't take as long as I thought. I just updated that download link, so the latest version should support Arnold as well as Mental Ray.

_________________
-Tim Crowson
High Nerd, of the Order of Magnetic Nerds


Top
 Profile  
 
 Post subject: Re: Multipatch Texture Setup
PostPosted: 07 Apr 2013, 17:21 
Offline

Joined: 07 Apr 2013, 13:42
Posts: 2
Heelo
I install the addon but i have errors with it:

Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SelectObjectsUsingMaterial("Sources.Materials.DefaultLib.Material")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.InspectObj("Sources.Materials.DefaultLib.Material", "All", "", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material.Blinn", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SelectObj("Sources.Materials.DefaultLib.Material", "", "")
Application.SetValue("Sources.Materials.DefaultLib.Material.Name", "Ship", "")
Application.MultipatchSetup()
Application.SetValue("Create_MultiPatch_Texture.uvListParam", 0, "")
Application.SetValue("Create_MultiPatch_Texture.fileDirectory", "D:\\Work\\Carpathia_space\\Pictures\\mari", "")
Application.SetValue("Create_MultiPatch_Texture.channelName", "coro", "")
Application.FindObjects("", "{4C4F7500-51EF-11D0-854E-00A02417D029}")
Application.SetValue("preferences.Interaction.autoinspect", False, "")
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 365, in import_OnClicked
# setupMultiPatchTexture()
# File "<Script Block 2>", line 264, in setupMultiPatchTexture
# for x in range(1, mix8Count+1):
# TypeError: range() integer end argument expected, got float.
# - [line 263 in C:\Program Files\Autodesk\Softimage 2014\Application\bin\sisetpluginvars.py]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : [261] (null)
# ERROR : [262]
# ERROR : >[263] # CREATE THE INITIAL MIX8s AND SET PARAMS --------------------------------------------------------------------------
# ERROR : [264] for x in range(1, mix8Count+1):
# ERROR : [265] xsi.CreateShaderFromProgID("Softimage.sib_color_8mix.1.0", curMat, "Mix_8_Colors"+str(x))
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 365, in import_OnClicked
# setupMultiPatchTexture()
# File "<Script Block 2>", line 264, in setupMultiPatchTexture
# for x in range(1, mix8Count+1):
# TypeError: range() integer end argument expected, got float.
#


Can you help ?

Thank you
Sergiu


Top
 Profile  
 
 Post subject: Re: Multipatch Texture Setup
PostPosted: 08 Apr 2013, 23:25 
Offline

Joined: 07 Apr 2013, 13:42
Posts: 2
I fidured out

If you are in trouble to make thi addon work
do this:
1. Deselect Python instaled with XSI 2013/2014
Install python in this order:
a)vcredistx64
b)vcredistx86
allt this file you foun at microsoft (google search)
IMPORTANT:
c)Pytnon 2.6 AMD x64 instaler (version 2.6.6 from python.org)
d)pywin32 AMD coresponding to Python version

2. make a bat file with this lines:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PYTHONPATH /t REG_EXPAND_SZ /d C:\Python26
reg add HKCU\Environment /v PYTHONPATH /t REG_EXPAND_SZ /d C:\Python26

And if u do this correctly u disable the python 2.7.3 ship with XSI2013/2014 and u back at Python 2.6 and everything works great


To test if it working do this:
import sys
import os
import distutils
import distutils.sysconfig
site_packages = distutils.sysconfig.get_python_lib(plat_specific=1)
build_no = open(os.path.join(site_packages, "pywin32.version.txt")).read().strip()
print "Python version: " + sys.version
print "PyWin32 version: " + build_no

Run this code in script editor :
If u disbale python 2.7.3
the result return nothing
If not result show u running pytnon 2.7.3 adn u do something wrong and u make star over withi this steps above

I do this and it is works for me,i cannot guarantee the results but for me WORKS

Greetings
Sergiu


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group