• Welcome to World Machine Community. Please login or sign up.
September 16, 2019, 05:08:32 am


Read the Development Diary for an inside look at World Machine's progress!

WM PDK 2.3 Build Status on Device

Started by CKlosters, January 31, 2013, 10:20:17 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


There used to be a pstate member variable on the device to check what render state was being used by WM
I can't find it anymore in the 2.3 PDK. Can I still access that, or has it been replaced with a get function?

I used it to check if an export node was valid for rendering something to disk based on a build (in the Activate function).
In Preview mode, the export was skipped. Otherwise it would continue to the output function.

Is there any replacement for that?

Or is there a better way to render something to disk based on a normal build? The default file export seems to do it (save the file every time the world machine is being build).

Hope someone can help!



Hi there,

In 2.3 the pstate has been changed slightly and moved to the BuildContext and renamed to be more clear -- now you can simply check the "export_outputs" member in the context provided to your activate function. If this is true, it is a final build and you should export your results.
-- Stephen Schmitt
- Creator of World Machine


Thanks Remnant,

that was exactly the answer I was looking for. Almost there porting all our plugins to 2.3.
Have to say it was easier than expected. Most name changes make sense and I'm glad you decided to use smart pointers.

Cheers Coen

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview