Alessio Posted April 9, 2021 Share Posted April 9, 2021 Hi, I am wondering if it is possible to show the output value of a math node in the object info shape menu like on the image below. If it is, can someone tell me how to do it? Quote Link to comment
Antonio Landsberger Posted April 9, 2021 Share Posted April 9, 2021 Hi @Alessio, that is possible. Simply use the Marionette.WidgetType.TextStaticParam in the OIP part (see also the developer wiki) and change the value shown by using self.Params.Something.SetValue For example: FileName = Marionette.OIPControl( 'File name', Marionette.WidgetType.TextStaticParam, '<None>' ) self.Params.FileName.SetValue( str(os.path.basename(vs.GetFPathName())) ) Regards, Antonio Quote Link to comment
Alessio Posted April 9, 2021 Author Share Posted April 9, 2021 Hi @Antonio Landsberger , Thank you for your supply. I am not realy sure how to do this. I am quite new at marionette. I want to create it with a input like the image. i hope you can help me out. Regards, Alessio Quote Link to comment
Antonio Landsberger Posted April 10, 2021 Share Posted April 10, 2021 If you only want to see the values that are coming out of a node, use the "Print Debug" node. Consider disabling both the time and type in the OIP of this node. If you are new to Marionette, please check out the online webinar series "Marionette Monday" by Sarah: @sbarrett Could you please ask the web team to make a YouTube playlist out of the Marionette Monday webinars? Quote Link to comment
Alessio Posted April 13, 2021 Author Share Posted April 13, 2021 @Antonio Landsberger i can't get it to work. i want it to be like the image below. Quote Link to comment
Robert J Posted June 26, 2021 Share Posted June 26, 2021 (edited) Hi, @Alessio Did you resolved this problem? May be this is a bug. I am trying to do something similar. I figured out that StaticText in wrapped object works only if node have no input. Output only. Inputs disabling text in OIP. This is strange. I have no idea how SetValue without inputs. Is any different way to take value and put in somewhere in code without nodes? Who can help us to resolve this magic static text behaviour? Edit: It looks like OIP is generated ones during startup and edit code. No way to refresh OIP during object working or I do not know how. Anybody known any tips for this? One way I know is using Text object or record Database with Worksheets. Edited June 27, 2021 by Robert J Quote Link to comment
Antonio Landsberger Posted June 28, 2021 Share Posted June 28, 2021 Hi @Robert J and @Alessio, currently there are indeed two issues present: 1) The OIP widget StaticText only works in nodes without input ports. 2) The OIP widget StaticText only shows up in the input node OIP, not in the Marionette Object - even if the node is named. Even though not to exclude this usage, I believe that this is so by design. It may be the case that this scenario was never considered. I will file a wish report for this to be implemented, because there are legitemate use cases. Regards, Antonio Quote Link to comment
Robert J Posted June 28, 2021 Share Posted June 28, 2021 Thanks, I workaround this by attached record to marionette object. This was a suggestion in similar problem on forum. I agree. Text, StaticText, StaticTextParam should be updated during updating Marionette object and should be visible in OIP. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.