
KingChaos
Member-
Posts
332 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Articles
Marionette
Store
Everything posted by KingChaos
-
ah ok, i made it with chatGPT. @Marionette.NodeDefinition class Params(metaclass = Marionette.OrderedClass): #APPEARANCE #Name this = Marionette.Node( "Get Record Name" ) this.SetDescription( 'Returns the value of a data record field. If the data record does not exist or is not attached, it returns false' ) #Input Ports inObj = Marionette.PortIn( vs.Handle(0), 'hObj' ) inObj.SetDescription( "The input object" ) #OIP Controls #Output Ports obj = Marionette.PortOut('hObj') obj.SetDescription( "The original object" ) recName = Marionette.PortOut('sRecName') recName.SetDescription("The name of the attached record") #BEHAVIOR def RunNode(self): # functions def getRecName(objHan): # This function returns the name of the first record attached to ObjHan, else an empty string totalRecCount = vs.NumRecords(objHan) if totalRecCount > 0: locRecHan = vs.GetRecord(objHan, 1) locRecName = vs.GetName(locRecHan) return locRecName return '' # inputs inObj = self.Params.inObj.value # script recName = getRecName(inObj) # outputs self.Params.recName.value = recName self.Params.obj.value = inObj it returns 1 record name. i failed to add an output with a list of the field names of this record. Then i tried to list all attached records, but that does not work too. 😞
-
hi, how i can call the record name of a red symbol, placed with a marionett network. i need to place red symbols and put some parameters into them. Which nodes i have to use for this? BR KC
-
lol nice
-
Yes sry it sounds strange, they have to be dynamically on/off with condition fE. if i have a 1. selection what makes selection 2 invalide fE.
-
if i have a network which places cabinets along a polygon, behind each segment 1 cabinet. in the OIP i need for each segment popups for the (red) symbol to select which has to be there, i dont know how i only got the popups in the same count as the polygon segments has. Also wenn das Polygon 5 segmente hat, brauche ich auch nur 5 popups zum auswaehlen des symbols. Momentan habe ich das hart eingebaut, dass ich immer 6 segmente habe.
-
a name node, manipulated with chtgpt, with an input, solved it in a way, thats its working now, but still is not avaiblae in the oip of the wrapper if i wrap it. dont laugh about my speghetticode ^^ Polyselector 5 polys_v2.vwx
-
Polyselector 5 polys.vwx
-
i manipulated the code of the node (after i consulted ChatGPT) to get an input port and i tried to output the n-th element of the list i inputted. This works so far, except the selection is not "changing its selection choicenames" i think it has somethin to do with behaviour and run node complications. 2. if i wrap it, the named node is in the oip palette as a parameter. the outputstring has to be cleaned so the 2 ' has to be removed. Maybe someone has a clue, why the hack this is not reacting like i think it "shoud".
-
-
Node for picking symbol out of a specific folder in the Manager?
KingChaos replied to KingChaos's topic in Marionette
i found a node from aLandsberger, "get symbol from folder" that does exact this thing. -
Hi, i got an "Object node" made by a marionette. It has the inputports of all named input-nodes in the marionette wrapper. so far so good. is there any Way to make the not needed Inputports diasappear? f.E. i got 3 pulldown inputselectors. After selecting the first pulldownoption, some other in pulldown 2 should not be "pickable" or make the third input disappear? can this node be somehow valved or anything else? BR KC
-
is it possible to manipulate a text in the following way? i got 2 texts well oriented and placed. fE "RB_2" is a text located at the startpoint of a polygon segment. the 800 is located in the middle of the same segment. How can i make the 800 is placed under RB_2 like in a second line like u do if u press enter while typing a text? Becaus of the location and orientation of the polygon its not possible to move it -y. It has to be like in the second line, however die polygon is located in the room. it can possible, that the polygon is looking like this. so i think i have to set the textproperties to a multilinetext. Best would be the "Numbers" are written in red and the strings in black. br KC
-
if u name it u can have it in the ObjectInfoPalette of your marionette/wrapper/object-node If that is what u need, try it. I am 1 step further, i need the selection of symbols (in a specific folder) with pulldown in the oip 🙂
-
#Modified April 2017 Made by CHAT Gpt with Kingchaos @Marionette.NodeDefinition class Params(metaclass = Marionette.OrderedClass): #APPEARANCE #Name this = Marionette.Node( 'Popup String' ) this.SetDescription('This node demonstrates the use of a Popup OIP control. The values returned by this node will be integers based on your selection starting with 0 for the first option and increasing by 1 for consecutive options.') #Input Ports #OIP Controls input = Marionette.OIPControl( 'Popup', Marionette.WidgetType.Popup, 0, ['US-Endseite Preback RB V002', 'US-3er SK Dummymaterial SST Preback RB Koemacell V00', 'US-Doppeltuer Dummymaterial SST Preback RB Koemacell V00', 'US-Drehtuer Dummymaterial SST Preback RB Koemacell V01', 'US-Einzeltuer m BL Dummymaterial SST Preback RB Koemacel V00']) input.SetDescription('an OIP control representing the options designated within the script editor') #Output Ports output = Marionette.PortOut('s') output.SetDescription('a string representing the option selected in the OIP..') #BEHAVIOR def RunNode(self): #inputs input = self.Params.input.value #script options = ['US-Endseite Preback RB V002', 'US-3er SK Dummymaterial SST Preback RB Koemacell V00', 'US-Doppeltuer Dummymaterial SST Preback RB Koemacell V00', 'US-Drehtuer Dummymaterial SST Preback RB Koemacell V01', 'US-Einzeltuer m BL Dummymaterial SST Preback RB Koemacel V00'] selection_index = int(input) # convert the string input to an integer index selection = options[selection_index] # get the corresponding option #outputs self.Params.output.value = selection
-
does the "Popup" node not do what u need? The question here ist, what should be the output? The std. Node Popup outputs 0,1,2,3,4, depending on what coice u picked. i modyfied this node with help from "chat gpt" so i got a node outputs the input as a string u selected.
-
i would like to have an oip port in my existing marionette, which has a pulldown out of this selection. so i need a pulldownnode which SelectObj(INSYMBOL & INVIEWPORT & ((T=POLY) & (N='*Poly*'))); and outputs the name of the selested polyline as a string. someone has a clue, how to combine the filterselection with nodes? BR KC
-
a few connections were missing, i added them again. I can us it as a wrapper well, but when i am doing some object node its crashing. Even if i am copying my correct network into the object node its crashing. The text should not be deleted, to show u how big your gap between the cabinets is. The name of the object then is door freezing, or door preparation. with its Width. i now use "Objekt - Zuordnung" its not read only and it works. But i cant make an object node.
-
sorry, kannst du das auf deutsch mal in eine PM stecken? Ich komme nicht ganz mit 🙂
-
hi there, how to get "why this marionette wont work in 23" and how to fix it?Namensinputmit Aktivierung v2023.vwx vwx is freezing if i do somethin with this marionette worked well before. br KC
-
it will take pages ^^ if i start now for all functions. okay, i see it will take some time. for the first, i want to have for each segment a red symbol placed (3D-cabinet of Extragroups Interiorcad) and a popup for each segment where i can select a symbol which is placed. 🙂
-
@MullinRJ can you pls help with the minimal code is needed for a 3d pathobject? The height ob the object will be the length between the 2 clicks i guess?
-
@DomC haste meine PN bekommen?