And that's good to know about using GetMl() over Get Mg(), mainly for the performance reasons if I understood correctly.
Posts made by ops
-
RE: How to scale(/rotate/move) a parent object without affecting its children?
-
Dissipating fog volume
Hello,
I'd like to achieve a dissipating fog volume over time. I have a volume builder object parenting a simple sphere. I have tried applying the 'Display' Tag and setting the 'Visibility' to 0% on both the volume builder and the source sphere, but neither seems to make the fog volume disappear. The only way I could achieve the effect was to use the Fog Range Map Filter on the volume builder object and set the 'Min Output' and 'Max Output' to 0.0.Now with the python script, I don't know how I can access this range map filter object programmatically. I get the volume builder object through the doc.SearchObject().
Any tips on how to obtain the filter object would be very helpful.
And also if there's a better way to dissipate the fog, I would appreciate to know!
Thanks in advance!!! -
RE: How to scale(/rotate/move) a parent object without affecting its children?
Thanks Illia, for the exmple code!
Too bad that there's no built-in function for it, but I understand now that I'll have to inverse-matrix the children myself. -
How to scale(/rotate/move) a parent object without affecting its children?
Hi everyone,
How can I set the scale of a parent object without affecting its children? I've tried using SetAbsScale() on the parent, but it also scaled all its children. I have seen a tutorial where you can press key '7' to do this interactively in the viewport, and I imagine there is a way to do this programmatically in python script?
Any insight would be appreciated! -
RE: C4DAtom.SetParameter/GetParameter help
Ah, I found out that using the brackets to set/get the parameter values is much simpler!
For example: inheritanceEffector[c4d.MGINHERITANCEEFFECTOR_STRENGTH] = 1.0 -
C4DAtom.SetParameter/GetParameter help
Hello,
I would like to get and set the 'Strength' parameter of an inheritance effector inside a python node of Xpresso, but I'm not sure how to do this properly. According to the doc (https://developers.maxon.net/docs/py/2024_4_0a/classic_resource/object/oeinheritance.html), I need to pass in the flag, c4d.MGINHERITANCEEFFECTOR_STRENGTH, but it looks like I also need to pass in a descriptor flag and not sure what that is all about. Could someone provide an example of how to do this properly?
Thanks in advance for any help!
-
RE: Python equivalent of the Xpresso node "Get nearest point on spline"?
Thanks a LOT @ferdinand and @mikeudin , for sharing your insights and suggestions!
They are definitely valuable and am sure will come in handy in the future!!! -
RE: Python equivalent of the Xpresso node "Get nearest point on spline"?
Hi @i_mazlov !
Thank you for your response and sharing the forum rules. I have gone over them. BTW it seems that the first link is broken, but I found it here:
https://developers.maxon.net/forum/topic/15242/forum-overviewAs for the getsplinepoint function, it's good to just verify that I haven't missed its existence somewhere. I ended up using the Xpresso node and using its output in my python script. I will refer to Ferdinand's code if I have no way around it in the future.
-
Python equivalent of the Xpresso node "Get nearest point on spline"?
Hi everyone!
Is there a python sdk equivalent of the Xpresso node 'Get Nearest Point On Spline'?
Since it exists as an Xpresso node, I would think it must exist for python script. If anyone has any idea, I would very much appreciate you sharing it!
Thanks!