Post processor modularity

LorroPrecision
Contributor

Post processor modularity

LorroPrecision
Contributor
Contributor

Hi

 

Is there a recommended way to reference another javascript file from the post file?

 

I have a few different posts that I have written for different functionality. I know I can just select the different post files from Fusion, but I would rather combine everything into one file, but be able to develop a specific aspect of the post from within its own file.

 

I know you can load separate js files from a html file and in C, you can have separate libraries. Is there something equivalent for the js post files? My main post is getting very big and unwieldy and annoying to develop.

 

Thanks

0 Likes
Reply
Accepted solutions (1)
354 Views
2 Replies
Replies (2)

viacheslav.shapilov
Autodesk
Autodesk
Accepted solution

Hi, @LorroPrecision .

Postprocessor has include function, that does something similar to <script src="xxx"> tag in HTML. You can use it to include some common code between your posts. But it is a bit tricky on Fusion side, as it will not automatically handle your includes, if you want to move post across folders in posts library. As For Fusion post is just a single file. So, even if it is possible, it is not very convenient.


Viacheslav Shapilov
Developer Technical Services
Autodesk Developer Network


0 Likes

LorroPrecision
Contributor
Contributor

OK, thanks for the info.

0 Likes