User avatar
By b-kandor
#204710
no - but you could write a macro to step through you animator sequence and save out an mxs for each frame. Then there is that utility in the goodies section for automating the rendering of sequenced mxs files.
User avatar
By w i l l
#227420
Nice one! I'll look into that.

I didn't realise that with the new plugin you could convert a Solidworks texture to a Maxwell texture too.

Jaun or anyone - Is this a new thing with the 1.5 update? Does this mean that the plugin could potentially/nearly be as good as Studio?
By superbad
#227478
It's actually always been that way- textures applied in SW get carried over to Maxwell. The problem is you can't really control the positioning and projection of the textures in Solidworks.
By superbad
#227520
Exactly. Depends on what you're doing really- almost everything I render is made from wood, so it's no good for me. If you were just using non directional bump maps it might be alright.
User avatar
By w i l l
#241972
Any news on if/when Maxwell can be used to render out frames from Solidworks animator?

This would be so good.
User avatar
By b-kandor
#241980
Hi Will,

I thought someone wrote a macro to do this already - but my mind is going.... I'll try to remember.

I just did a google search: "solidworks animator macro frame" This was the first link:

http://xenic1.googlepages.com/apiExample2.html

Looks like it's just what you need, create a new macro, copy paste the vb code on that page into your macro - save it. Then run from the tools menu or bind to key or button.

Let me know how it goes? I'm too busy to experiment right now.
User avatar
By w i l l
#241986
Yeah i thought that was a macro to simulate changes in light - is there a part of that macro that can be used to export mxi/mxs files for any animation set up in animator?

Maybe its just the last 2 parts...... plus part of the first?:



Sub GenerateMXSFrame(
nltAddin As swMaxwell2006.CswMaxwell2006,
dirName As String,
index As Long,
outputFile
)
Dim MyName As String
Dim myMXS As String
Dim myIMG As String
Dim res As Long
MyName = CStr(index)
myMXS = dirName + MyName + “.mxs”
myIMG = dirName + MyName + “.jpg”
res = nltAddin.ExportToMxs(myMXS, myIMG, False)
Call AddCommandToBatchRenderFile(dirName + MyName, outputFile)
End Sub




Sub AddCommandToBatchRenderFile(name, outputFile)
mxsfile = name + “.mxs”
imgfile = name + “.jpg”

CommandLine = “mxcl -mxs:” + mxsfile
CommandLine = CommandLine & “ -output:” & imgfile
CommandLine = CommandLine & “ -sampling:11”
CommandLine = CommandLine & “ -threads:4”
CommandLine = CommandLine & “ -nowait”

outputFile.WriteLine (CommandLine)

End Sub



?
User avatar
By b-kandor
#241989
Yep your right - I didn't look at it closely. The code you copied will just save an mxs file. No part of that macro controls the animator addin and after consulting the api documentation there is no method of advancing frame by frame. You can play for a set duration in seconds like .1 sec so if you had 10 fps set as you animation speed this could work....
User avatar
By w i l l
#241998
Hmmm dont know - i haven't had any experience with coding but i'm getting into Solidworks animating (or what there is of it) and would love to try with the plugin.

At the moment i'm setting up the animation then moving the time bar/cursor one frame forward at a time and clicking render to get a series of images. Bit of a nightmare.
User avatar
By b-kandor
#242002
How many frames per second do you get dragging the bar - it looks like a lot?
Sketchup 2025 Released

Thank you Fernando!!!!!!!!!!!!!!!!!!!!!!!!!!! hwol[…]

I've noticed that "export all" creates l[…]

hmmm can you elaborate a bit about the the use of […]

render engines and Maxwell

Funny, I think, that when I check CG sites they ar[…]