Message 1 of 3
Not applicable
03-02-2019
03:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When calling sphere() in combination with callbacks.addscript #nodelayerchanged max crashes. Simple prints and manipulation of existing nodes for example move works if you put them inside the function but not constructs.
Example:
macroScript NewTest
Category: "TestScripts"
(
global RunThis
fn RunThis =
(
sphere()
)--end fn
fn disable_event = (callbacks.removescripts #nodeLayerChanged id:#TestID)
fn enable_event = (callbacks.addScript #nodeLayerChanged "(RunThis())" id:#TestID)
disable_event()
enable_event()
)--end script
Solved! Go to Solution.