Notifications
Clear all

[Closed] pFlow > Force > Influence

Hi,

Somehow I cannot make to control the influence of the force via maxscript. It looks like there are more than one nodes of the Force operator.

When I call my force operator from the listener it seems to be doing well. It really changes the influence values.

But when I want to do this in the script, the influence is not changed in the operator, but it seems to be keeping the value in some other node with the same name.

try(destroyDialog test)catch()
rollout test "FallingRocksFX" width:400 height:300 (
	spinner __Gravity "Gravity:" type:#float range:[1,1000,$__MainGrav.Influence] pos:[180,70] width:70
	on __Gravity changed val do (
		$__MainGrav.Influence = __Gravity.value
	)
)createDialog test

As long as I change $__MainGrav.Influence via listener everything is ok. But the script does not change the influence of the operator, but somehow stores the value in $__MainGrav.Influence !!??

I’m completely confused