KingChaos Posted October 14, 2024 Share Posted October 14, 2024 hey, i tried to modify the "name node", in the following way with chatgpt: remove the oip.control widget add in string input "sName" which will be the name of the object to get. this is not working, because i cant do this by my own. #Revised by MFarrell on 02/05/16 #Edited by KingChaos with ChatGPT 10/14/24 #Modified April 2017 @Marionette.NodeDefinition class Params(metaclass=Marionette.OrderedClass): # APPEARANCE this = Marionette.Node('Name') this.SetDescription('Get a named object in the drawing') # Input Port sName = Marionette.PortIn('Input Value') sName.SetDescription('name of the object to get') # Output Ports obj = Marionette.PortOut('h') obj.SetDescription('The object with the specified name') # BEHAVIOR this.SetLinksObjects() def RunNode(self): # inputs obj = vs.GetObject(self.Params.sName.value) sName = self.Params.sName.value # Get the input value # outputs self.Params.obj.value = obj self.Params.outputValue.value = sName # Pass the input value to the output can someone help me make this node working? Or has someone a different node, which gets an named object if it exists? poly delete name.vwx Quote Link to comment
KingChaos Posted October 14, 2024 Author Share Posted October 14, 2024 @ domc kannst Du da bitte kurz helfen? Das vorerst letzte PUzzleteil 🙂 bei etwas ganz Grossem Quote Link to comment
Letti R Posted October 14, 2024 Share Posted October 14, 2024 Hello, this might be just what you are looking for: Regards, Letti 2 Quote Link to comment
KingChaos Posted October 15, 2024 Author Share Posted October 15, 2024 Thanks a lot, yeah it works, but i see, that my marionette is not composing the lines i made if it is an object node. i used the node without duplicate and its working. the networks works fine, the wrapper too, but in object node (thats what i need) its not composing the lines. The problem is, if i change some of the segments length of my marionette, it wont modify the existing polygon, it creates a new one. so i need to find the named polygon with the node, then rename it to a temp-name, and delete it? If i object the node i can rotate the objectnode and i can change all lengths but the result is not a composed polygon as i need it. maybe someone can explaine, whats so different in object nodes and wrappers, or how i have to make it to make it work well. BR KC 9 segmentiges POlygon fuer Strangmoebel V8.vwx Quote Link to comment
KroVex Posted October 16, 2024 Share Posted October 16, 2024 Salü KingChaos, Ich kann dir nicht sagen, was das Problem mit dem Compose-Node ist, aber mit einer kleinen Anpassung kannst du darauf auch gleich verzichten: 9 segmentiges POlygon fuer Strangmoebel V8 v2024.vwx Gruss KroVex Quote Link to comment
KingChaos Posted October 16, 2024 Author Share Posted October 16, 2024 aber kommt dann auch ein polygon heraus? Quote Link to comment
KingChaos Posted October 20, 2024 Author Share Posted October 20, 2024 Ich brauche die benannte polylonie, das ist der zwecker des Netzes. Ich baue IC korpen daran auf mit einer weiteren Marionette. Das ist richtig krass. Quote Link to comment
KingChaos Posted October 20, 2024 Author Share Posted October 20, 2024 @DomCweißt du, warum er die Linien nicht composed? Quote Link to comment
DomC Posted October 20, 2024 Share Posted October 20, 2024 (edited) 1. The Compose node uses a Menu-Command. It works as long as it is not used inside a PIO Object. The reason why it does not work is, that you do not create any lines which you could compose. Lines: 2. You try to create lines with start 0.0 and end 350.0. Instead you should insert a point (0.0,0.0) at start and end(350.0,350.0) as Example. 3. You have a list of points in the right order. You could create directly a polygon with the node "Create 2D Poly" Here two Variants to create the polygon. I would choose Variante B it the rest of the network do not need lines somewhere. Just the poly This two Rectangles creates the same Polygon I mean 4 Nodes agains one single nodes which does the same (I counted the Attribute node in the Screenshot) Edited October 20, 2024 by DomC Quote Link to comment
KingChaos Posted October 21, 2024 Author Share Posted October 21, 2024 @DomC OK danke. Als Wrap hatte es problemlos funktioniert. Quote Link to comment
KingChaos Posted October 22, 2024 Author Share Posted October 22, 2024 check, works well. And how i will modify the color of a text, IF boolcheck Y/N make it green/red? That wont work, i tried naively this, problem for me, the attributes were set to some input, if i wanna make a bool decision what to make red or green, there has to be a different approach. Quote Link to comment
KingChaos Posted October 23, 2024 Author Share Posted October 23, 2024 Ungroup before?@DomC Quote Link to comment
KingChaos Posted October 23, 2024 Author Share Posted October 23, 2024 had to duplicate the text, make one green one red and delete with a bool. Quote Link to comment
Marionette Maven Marissa Farrell Posted October 23, 2024 Marionette Maven Share Posted October 23, 2024 If you want to avoid drawing and deleting extra objects: For text, you'd use the Set Line Attribute node with the Pen Fore color. 1 Quote Link to comment
KingChaos Posted October 24, 2024 Author Share Posted October 24, 2024 "color rgb" i dont have this node Quote Link to comment
Marionette Maven Marissa Farrell Posted October 24, 2024 Marionette Maven Share Posted October 24, 2024 It should be in default content, in the Input > Basic folder. Called "Color Input" Which version are you using? Quote Link to comment
KingChaos Posted October 24, 2024 Author Share Posted October 24, 2024 23 still Quote Link to comment
KingChaos Posted October 24, 2024 Author Share Posted October 24, 2024 Can u explain, why those Texts disappear, If i make An objects node of my Wrap? Maybe i have to polylonie IT and wxtrude ^^ but this ia very Performance Killing i think. Quote Link to comment
Marionette Maven Marissa Farrell Posted October 24, 2024 Marionette Maven Share Posted October 24, 2024 It should be in 2023, I see it as far back as 2022 (that's the oldest I have on this computer) and the comments inside mention a date of 2017, which means it likely was in 2018's release. Can you send me your file, either here or in a message? Quote Link to comment
DomC Posted October 24, 2024 Share Posted October 24, 2024 The node is called color input not color rgb Normally the issue of disappearing objects it the 2D 3D Content that a PIO or a Symbol can have (do you have a PIO?) It also depends if you have screen plane or layer plane as default, where your 2D Objects are places inside a PIO. For better control of where Planar Objects are placed you can use Set Planar ref (0 is screen plane and will be 2D Component of PIO) or set component group. Also discussed here. 1 Quote Link to comment
KingChaos Posted October 27, 2024 Author Share Posted October 27, 2024 ITS a Marionette objects nodes, i am too nub to Know whether ita pio or Not 🙂 Quote Link to comment
KingChaos Posted October 29, 2024 Author Share Posted October 29, 2024 fine all works except the crash when i enter the object node or duplicate it on my computer. 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.