Community
3ds Max Forum
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I open the simulated viewport through scripts?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
bigboyhonghong
364 Views, 3 Replies

How can I open the simulated viewport through scripts?

bigboyhonghong_0-1657267410946.png

Does anyone know about it?   I can not find the method to open the simulation view window throght the maxscript. 
By the way , How can I get the method to open an arbitrary 3dsmax's  panel like the simulation view?

3 REPLIES 3
Message 2 of 4
10DSpace
in reply to: bigboyhonghong

@bigboyhonghong 

 

I have not played with this much myself, but since there is an existing macroscript for Simulation view in the list of actions via Customize>Customize User Interface, you can examine the code for opening the Simulation View by right clicking on it and selecting "Edit Macroscript."  

 

10DSpace_0-1657279018052.png

 

Be careful though not to make changes to the existing Macroscript itself.  Open a new window in the max editor and experiment with code in that.   From this, I found that

 

FluidSimObjectManager.ShowInterface()

  will open the Simulation view window and 

 

FluidSimObjectManager.HideInterface()

 

will hide it if you have a liquid selected.

 

There is also a more complete description of Liquids with maxscript if you have not already seen it here:

 

https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=GUID-D0504863-171B-43E3-8229-31A8D13E7A9A

Message 3 of 4

Enabling the MAXScript listener MacroRecorder is useful to expose many commands when using them, for example:
macros.run "Fluids" "SimulationView"
macros.run "Fluids" "ToggleSimulationView"



Daniel Cantin
QA Manager, 3ds Max, Maya
Entertainment Creation Products, DCP
Message 4 of 4
bigboyhonghong
in reply to: 10DSpace

hanks for your help!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report