ScriptSpot home

Forum topic · Scripts Wanted

Crop TextureMap?

By ostia · 2015-02-23

Downloads
Description

Batch Export (Like a Collect Asset Script)

Comments (10)
ostia

ok.thank Mr.

Hi pixamoon.

This time, extraction of still images only
Get the path to the Extract file, it is useful if can replace
but It doesn't matter. even without

>>- if image is used in more than one texture with different crop. (than has to save with different names to not override)>>

[prefix & Number SUFFIX auto Rename?]
example:

texture.jpg→ Pixa texture 001.jpg
texture.jpg→ Pixa texture 002.jpg

>>- if bitmap has output, UV settings..>>
sorry ..I dont know that .
At least I think that's unnecessary..?

Reply to ostia
pixamoon

:)

Oki, cool, now I know more what you need.

I'll try to add to this basic things only for tomorrow.

but it will just find all crop texture and save them with one prefix name + number if this is ok. (all as jpgs - to save to original formats is more complicated)

Let you know when is ready :)

Reply to pixamoon
ostia

Rep

I am looking forward to the completion
Thank technician.
I have to hand the gratitude and wallet, will wait;b

Reply to ostia
pixamoon

crop

oki,
I didin't have time to add it to Bitmap Tracking/Resizing... but u can have it now as simple test. Just open it in Script Editor, change destination folder and file Name prefix and run it. It will find all bitmaps with crop and save them as new cropped jpgs.

Please see attached.
Cheers,
pixamoon

Attachments
ostia

ok.nice product. but

hi, pixamoon.
The script [Crop is not work on DEMO] it says as follows.

I need function is [extract texture region] = Crop?

Description [ 64...128...256...] Crop a x2 just size?

Reply to ostia
pixamoon

crop

Hi ostia,

Crop function is not finished yet, because I found there can be at least 2 ways to do it + exceptions etc. So was just waiting for your answer.

If you need to save crop from existing settings, there are few exceptions to do:
- if image is used in more than one texture with different crop. (than has to save with different names to not override)
- if crop is animatable ? save all as IFL or just current frame ?
- if bitmap has output, UV settings, than has to be reloaded to new and than cropped and saved
etc...

as I understand you're looking for function to get crop from existing textures, right ?
Do you want to just save it or also replace bitmap paths to new cropped files ? (in max project)

Let me know.

Reply to pixamoon
pixamoon

what kind of crop ?

Do you want to use existing crop from each texture or new overall crop for all ?