Hi @ferdinand ,
Thanks as always for your clear answers, It solved the problem for me!
Latest posts made by kng_ito
-
RE: How to access the "root" Scene Nodes graph
-
How to access the "root" Scene Nodes graph
Hi,
I am trying to access some nodes in Scene Nodes graph with python.
For node-based objects like Nodes Modifier, I can use BaseList2D.GetNimbusRef() to access the graph, but I don't know how to get into the "root" Scene Nodes graph. Is there an invisible BaseList2D that holds the root Scene Nodes graph and I can use the same way from that object?The code below is how I did it for node-based objects to access their nodes. I hope there is a way to access the root Scene Nodes graph in a similar way.
import maxon def main(): nbr = op.GetNimbusRef("net.maxon.neutron.nodespace") graph = nbr.GetGraph() root = graph.GetRoot() # Iterate over the direct children of the graph root. nodesList = [] root.GetChildren(nodesList, maxon.NODE_KIND.NODE) for node in nodesList: print(node) if __name__ == '__main__': main()
I would appreciate any examples or tips you could give me. Thank you.
-
RE: How to get only tracks displayed in timeline User Mode
Hi @ferdinand ,
Thank you for clarifying. I needed a solution for my tool to determine which track/key is displayed&selected.
But if I can't do that in user mode, I'll make sure my tools don't work when the timeline is in user mode. -
How to get only tracks displayed in timeline User Mode
Hi,
I would like to know how to check if CTrack is shown/hidden in User Mode of timeline.
I usually use GeListNode.GetNBit() to check the status of CTrack on timeline, such as selected or hidden.
NBIT_TL1_HIDE is the one for checking if the element is hidden on the main timeline, but not for tracks that are hidden on the User Mode timeline.Does anyone know of any way to do this?
-
What does "Puffy Unicorn Reset" command do in 2024.1.0?
Hi,
I found some unfamiliar commands in the Extensions menu of 2024.1.0. Are they displayed unintentionally?
If they are for users, I would like to know how they work. -
RE: Python-Generated Splines are not recognized by Cloner Object
hi @i_mazlov ,
I understand that it is not supported, so I will use Scene Nodes to generate the spline this time.
No other questions, thank you very much. -
Python-Generated Splines are not recognized by Cloner Object
Hi,
I have a Python Generator Object that returns a Spline Object. I want to use this spline for the distribution of a Cloner Object, but it does not generate any clones on the spline.
The spline works fine when used for Generators such as Sweep, Extrude, Loft etc.The Python Generator Code:
import c4d def main(): spline = c4d.SplineObject(pcnt=4, type=c4d.SPLINETYPE_LINEAR) spline.ResizeObject(pcnt=4, scnt=1) spline.SetPoint(id=0, pos=c4d.Vector(0, 0, 0)) spline.SetPoint(id=1, pos=c4d.Vector(100, 100, 100)) spline.SetPoint(id=2, pos=c4d.Vector(200, 200, 200)) spline.SetPoint(id=3, pos=c4d.Vector(300, 300, 300)) spline.SetSegment(id=0, cnt=4, closed=False) spline.Message(type=c4d.MSG_UPDATE) return spline
The Scene File:
PyGenSplineAndCloner.c4dI would appriciate it if you could check to see if it is a bug or I am missing somthing in the code.
-
RE: Limit the destination of UserArea.HandleMouseDrag()
Hi @m_adam,
Sorry for the delay in responding.
Yes, the problem has been resolved. -
Limit the destination of UserArea.HandleMouseDrag()
Hi,
I am drawing an object as a node in UserArea and I want to drag that object only to the InExclude list (Attribute Manager).
The problem is that when I use HandleMouseDrag(), I can also drag to the Object Manager and that object will be duplicated unintentionally.
So I need to know how to restrict dragging to the object manager and only allow dragging to the Attribute Manager.Any help would be appreciated.
-
How to dynamically hide parameters
Hi,
I am trying to control which parameters of ObjectPlugin are shown/hidden depending on the values of another parameter.
For example, the Cloner object switches which parameters it displays depending on its "mode" parameter.
From the other threads I see that overriding GetDDescription() is the key to achieving this, but I just can't get it to work.
Any help would be appreciated.