Hello all, I need some help in creating two scripts.
First script.
- Ask user to import texture and displacement map
- Flip UV’s vertically on texture map and apply to active subtool
- Flip UV’s vertically on displacement map, make alpha and apply to displacement map active subtool
There are other things that I need to do but I am sure it is easy enough for me to figure out.
My approach was to get the total count for items in the texture library and select the last one to avoid same name textures. I was trying to use [IGetMax[Texture:BrushTxtr]] but it would not return any values.
I also used a method I found on the forums to directly apply the texture using the file path however I couldn’t flip the UV once it was already applied to the subtool. What can I do to be able to import textures, flip them and apply them to the subtool?
Second Script,
- Set new document width and height
- resize document
- Lock onto the front view of the subtool. (Mesh is always facing in the same axis)
- expose
- fit to screen
- add materials
- export
Most of this is pretty simple and what I really find tricky is the beginning part where I have to get the front view of the mesh. Is this possible?
Thanks in Advance,
J