I have just made a plugin,i want to share it and ean some money,is there a market for cinema4d?
and if not,do you have any other place to sell it ?
@m_adam Although I didn't get a solution to this problem, I found a solution to my own problem. Thank you very much.
@a_block Thank you! You Insprie me.I solve it now.
because i have create a "plugins" folder in the installation directory,and add the folder in the preference dialog.
it's wrong.so now i delete zhe dir in the preference dialog.
it works well now!!
thank you very much!!
@m_adam I want to add it with a script from the script manager
sorry，I should put more information about my question.
I want to add the "on" port in the gif below use python.
this year i wrote my first python plugin.
but it always get the runtimeError like this:The plugin ID '000' collides with another plugin ID in 'aaa'.
I don't know where am I wrong.
so I download a sample plugin folder.there are sample plugins like Py-CVRss,PyDoubleCircle,Py-Fresnel...
and I put the samples in my plugins folder.
also I found them got a message like this:
RuntimeError:The plugin ID '1025245' collides with another plugin ID in 'Py-DoubleCircle'.
above all is In c4d r20
but, I test the sample plugins in R19,they works well and no messages.
I want to control the on/off of a node in expresso.
and i found the "on" attribute can do it.
but I can't add the input port in python.
anyone can help me ?
thank you very much!
yeah! I got it!
Thank you very much！
i want to insert a gradient with step interperation.
but this code"grad.SetData(c4d.GRADIENT_INTERPOLATION, c4d.GRADIENT_INTERPOLATION_NONE)"seems don't work.
i want to know where do i made a mistake?
this is my code:
from c4d import gui
newMat=c4d.BaseMaterial(c4d.Mmaterial) #create a new material
newShader=c4d.BaseShader(c4d.Xgradient) #create a new gradient shader
newShader[c4d.SLA_GRADIENT_TYPE]=2001 #change type to 2D-v
grad=newShader[c4d.SLA_GRADIENT_GRADIENT] #get the gradient gui
grad.SetData(c4d.GRADIENT_INTERPOLATION, c4d.GRADIENT_INTERPOLATION_NONE) #Change the interpolation
newShader[c4d.SLA_GRADIENT_GRADIENT]=grad #reassigned the gradient
newMat[c4d.MATERIAL_COLOR_SHADER]=newShader #gradient to color channel
newMat.InsertShader(newShader) #insert shader
doc.InsertMaterial(newMat) #insert material
newMat.Update( True, True )
I did what you say,it works!!
you are so cool!!
thank you very much!!!
I know how to use the method below to create a popup menu:
c4d.gui.ShowPopupDialog(cd, bc, x, y, flags=POPUP_RIGHT|POPUP_EXECUTECOMMANDS)
(x (int) – Popup X position in screen pixels, or c4d.MOUSEPOS to popup where the cursor is.
y (int) – Popup Y position in screen pixels, or c4d.MOUSEPOS to popup where the cursor is.)
I want the menu to popup at a position like this:x=c4d.mousepos+200,y=c4d.mousepos+200
but it do not work. is there a way?
thank you very much!