Bug with RelinkBitmap in my Batch sript

Hi mates,
I am solving some crazy bug almost two days without any solution. Everything is going to be more and more complicated...
My script works as a batch and it uses another script, which knows to run with orders. This script is Relink Bitmap by Colin Senner. Before using the script, you have to run the Relink Bitmap script, otherwise you couldn't call the functions of Relink Bitmap.
Ok, so If I compile my script and run it, it writes bug: Call needs function or class at this row:

sceneRelinkBitmaps ("D:\Texture") ignoreCase:true recursive:true undoOn:false lowMemory:false allMaps:true

If I create new script only with this row and run it, the script works. But in my previous code, script doesn't work.

Ok, If I compile the script again and run it, suddenly the script works well....oh good :( I have also removed loading texture path from INI file, which script creates automatically. So the row about Relinkbitmap is as easy as possible, but it is not working...
Pleas...I relly appreciate any help. Thanks!

AttachmentSize
batch_library_helper.ms8.34 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Swordslayer's picture

Weird, I don't use the Relink

Weird, I don't use the Relink Bitmap script but did you try changing sceneRelinkBitmaps to ::sceneRelinkBitmaps? Still, it should work as it is. On a side note, if all you want do is repath assets in a large number of .max files, setting asset metadata directly should be faster and is simple enough - and you don't even have to open any of those files in max at all.

fajar's picture

my think is , that you should

my think is , that you should discuss it with Colin first, because relink bitmap is closed maxscript (.mse/encrypted maxscript), when he making the script he has his purpose to do so, so you must ask him. He is good person whos might willing to help you. maybe he can make his script in silent mode.

that my thought for you.

thanks and best regard

fajar

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.