intro to jsextensions folder please?

Jan 21, 2012 at 5:40pm

intro to jsextensions folder please?

Could someone please post a brief intro/tutorial for the jsextensions folder?

Thanks

Joe

#61371
Jan 22, 2012 at 8:28pm

If you have any javascript objects (functions/constants/etc) that you want to be available globally in every [js] object, then save them in the jsextensions folder as a new file (this way the file won’t get overwritten during incremental software updates to max as a whole). It’s like being able to #include snippets of code that you find most useful and use repeatedly.

For example I have a file in jsextensions that includes a functions for parsing @style attributes typed in to the [js] object – much easier to call one line of code than copy/paste the whole lot into every javascript I write!

#221328
Jan 22, 2012 at 9:20pm

Luke

Many thanks for the info

1 question

if I make a standalone, will the jsextensions get packaged with it?

#221329
Jan 22, 2012 at 9:51pm

I have absolutely no idea but I would guess perhaps yes. Test it out and reply back and then everyone will know for sure!

#221330
Jan 23, 2012 at 4:11am

Whats the benefit?I have JavaScript files in one of my folders outside the Max installation but in the max search path. They are really visible to my projects and won’t get deleted if I upgrade max?

#221331
Jan 23, 2012 at 5:25am

dhj: did u try making standalone?

If so, success?

If success, could you post specific instructions?

Thanks

Joe

#221332
Jan 23, 2012 at 12:41pm

I’ve never tried to make a standalone. Are you suggesting that js files don’t get picked up for standalones unless they are in that special folder?

#221333
Jan 23, 2012 at 5:35pm

dhj: no, the opposite

#221334
Jan 23, 2012 at 7:02pm

If that’s the case, then what’s the problem — you put them in a folder in your search path and they’ll get picked up!

#221335
Jan 23, 2012 at 8:44pm

I haven’t done standalone at all yet, but thanks tons for the info

Joe

#221336

You must be logged in to reply to this topic.