Search the Community
Showing results for tags 'customnode'.
-
Hi, I want to store a value inside a parameter. I don't want to create a portIn to define a parameter, or use the OIPControl method. Is there an other way to store an calculated value inside my node? I think this must be easy, but i can not find the appropriate syntax. This is what i don't want to use: Fx_Value = Marionette.OIPControl( 'Dim', Marionette.WidgetType.RealCoord, 0.0) OR Fx_Value = Marionette.PortIn('0','Calculated value') Can i for example do something like this to store a value. Fx_Value = (),Realcoord,0.0 Below you can find my code to check 2 input ports. At the moment i store the result in a parameter defined by a Marionette.PortIn. My network is running but the node looks ugly. Lots of unused input ports, Or OIPControls whithout a destination. Example: #___Begin___Controle Boolean self.Params.Fx_Value.value = self.Params.Slag_Of_Groef.value > 0 if self.Params.Fx_Value.value: self.Params.breedte_Rug.value = Waarde_Slag_Of_Groef + Corpus_Breedte - Dikte_Zijde_L - Dikte_Zijde_R + Waarde_Slag_Of_Groef else: self.Params.breedte_Rug.value = Corpus_Breedte - Dikte_Zijde_L - Dikte_Zijde_R #___Einde___Controle Can someone point me in the right direction? Pic off unused oipcontrols: