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.
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.
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.
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.c4d
I would appriciate it if you could check to see if it is a bug or I am missing somthing in the code.
Hi @m_adam,
Sorry for the delay in responding.
Yes, the problem has been resolved.
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.
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.
Hi @Manuel ,
Sorry for asking a question that has already been resolved in another thread.
That thread solved my question. Thank you.
Hi,
I tried to get the weight values from a Vertex Map tag in the documented way.
It workd for editable polygon objects, but not for uneditable obejcts.
The .c4d file:
VertexMapWeightsFromUneditableObjects.c4d
The code:
import c4d
def main():
tag = op.GetFirstTag()
weight = tag.GetAllHighlevelData()
print(weight)
if __name__ == '__main__':
main()
The result for uneditalble cube:
Traceback (most recent call last):
File "scriptmanager", line 9, in <module>
File "scriptmanager", line 5, in main
SystemError: <method 'GetAllHighlevelData' of 'c4d.VariableTag' objects> returned NULL without setting an error
The result for editalble cube:
[0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0]
Is there any way to get the weight values for uneditable objects? Thank you.
Hi @ferdinand,
So the normal direction of the generated polygons was the point!
Thank you for answering my curiosity and explaining how to reproduce the behavior.
Hi,
Out of curiosity, I would like to know under what conditions the inner segment of a spline behaves as a hole.
If possible, I would like to reproduce this behavior in Python Generator.
Any hints would be appreciated.