Checkout my python tutorials, plugins, scripts, xpresso presets and more
Posts made by mikeudin
Get Message from TreeView gui dialog
I'm writing Command Data plug-in and have a TreeView custom gui element where user can drop some things to create elements tree.
Now i need to send, for example, Tree items count to main GeDialog window each time when user interacts with TreeView.
How i can make it?
I was found this tread, where using SendParentMessage, but it's not working with TreeView.
RE: TreeView: How to insert dragobject as new item
Solved. There is TREEVIEW_OUTSIDE_DROP option.
TreeView: How to insert dragobject as new item
Is possible to insert new TreeView items using drag and drop as new root childs? When TreeView have no any element to insert BEFORE or AFTER.
I'm using AcceptDragObject but can't understand how to reproduce issue when obj is None like in this note.
If obj is None then dragobject should be inserted as a child of the root.
RE: Documentation Plugin
I'm trying to use this super handy plug-in to build help system for my plug-ins.
Thanks for sharing this!
After some days of working i have a some suggestions and bug reports.
- After each publishing, resulting index.html have a title tag "Plugins 4D Documentation".
- Is it possible to add ability inserting images with other formats like gif, jpg? Now i have to copy my images to images folder and type using markdown code like this (not showing in Preview window):
![Target 4D Move tool](images/mikeudin-target4d-feutures_5.gif "Target 4D Move tool")
- Preview window stops showing any text content if it contains symbol '–'. But after publishing results, final HTML is ok.
- Would be great to add ability to add favicon image.
RE: Cinema 4D Script: Web Search Selected Text
I have added the "showcase" tag, so people are hopefully able to filter for your and other similar threads more easily.
Great! Thank you!
Cinema 4D Script: Web Search Selected Text
Hello guys! Hope you find it interesting.
I've written little script which sends copied text to differents web pages for search.
This script will be very helpfull to work with Cinema4D online SDK directly from Script Manager or Expression Editor.
Download for free here.
MoText dosn't updates after changing MoGraph Weightmap
I have this python code running in a Python Tag:
import c4d from c4d.modules import mograph as mo from c4d.utils import RangeMap def main(): obj = op.GetObject() cl_count = mo.GeGetMoData(obj).GetCount() spline = obj[c4d.ID_USERDATA,2] ms_tag = obj.GetTag(c4d.Tmgweight) if not ms_tag: print 'No weight tag' return wlist =  for val in xrange(cl_count): res = RangeMap(value=val, mininput=0, maxinput=cl_count-1, minoutput=0.0, maxoutput=1.0, clampval=False,curve=spline) wlist.append(res) mo.GeSetMoDataWeights(ms_tag,wlist)
it works if applied to Matrix Object, Cloner, but problem with MoText it updates after object reenabling.
In Cinema 4D R18 it works fine.
RE: Execute a Python Code Within PyCharm that Connects to C4D?
Am I correct to say that Sublime is not yet supported currently for autocompletion?
Well, there is a plug-in.
But it needs to be updated for Cinema 4D R20.
RE: Calling a Tool (Naming Tool) and Modify the Parameters
This method didn't returns any value.