 |
headus 3D tools / 3D scans Support Forums
|
 |
View previous topic :: View next topic |
Author |
Message |
kernel4
Posts: 4
Joined: 07 Feb 2011
|
Posted: Thu Jan 09, 2014 10:47 am Post subject: Cinema4D UVLayout Exchange Plugin (Mac Version) |
|
|
This is my first attempt to create a python plugin
Here you can download the UV Layout Exchange plugin for Cinema4D
https://www.dropbox.com/s/6wu5yjwr6...xchange_Mac.zip
I'm not a good programmer. I write it almost by copying parts of code from internet sources.
So it would be nice if someone withe better skills could improve the code.
it's only for Mac cause I don't have Windows, but I think it's just a matter of path to change.
there are two versions, one for 10.7 (X11) and another for 10.8 (XQuartz).
There are 2 issues I cannot resolve:
• I can't send the mesh with options ( SUBD/POLY, UV NEW/UV EDIT )
• I don't know how to close the UVLayout process without closing X11
I hope it will be useful for someone, and I'm waiting for the code to be improved  |
|
Back to top |
|
 |
headus Site Admin

Posts: 2902
Joined: 24 Mar 2005
Location: Perth, Australia
|
Posted: Thu Jan 09, 2014 7:08 pm Post subject: |
|
|
Thanks for sharing your work! I'm sure many will find it useful.
"I can't send the mesh with options"
Usually you set those at the start from the start-up command line, like this ...
uvlayout -plugin,SUBD,Edit
... but if you want to change them later, write the button names into a file called <name>.set, where <name> is the name of the OBJ file you're sending. Make sure you write the ".set" file first, so they are there ready when you create the OBJ file. So for example, so switch to Poly and New, create the ".set" file like this ...
"I don't know how to close the UVLayout process"
Write "exit" into <name>.cmd
Phil |
|
Back to top |
|
 |
kernel4
Posts: 4
Joined: 07 Feb 2011
|
Posted: Fri Jan 10, 2014 2:37 am Post subject: |
|
|
Thank you. But as I said before I don't know a lot about programming. I'm starting to learn python but UNIX is a little foggy for me. I don't know well how to use terminal on osx ( and I think that .cmd file are written in Terminal, or not? )
I tried to launch UVLayout as done before in the script but with "uvlayout -plugin,SUBD,Edit" as you said, but nothing happens.
the program opens with the load options window, but the options are not changed and the .obj is not loaded.
Also I don't know how to write a <name>.set file, and where to put it.
I used "subprocess.Popen" in the python file to launch uvlayout-plugin from terminal.
and the terminal window ( or process) is automatically renamed "cysliceP" when it start |
|
Back to top |
|
 |
Rich-Art

Posts: 120
Joined: 29 Dec 2005
|
Posted: Tue Jan 14, 2014 4:09 am Post subject: |
|
|
To bad you don't have a Windows version...
Peace,
Rich_Art.  |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|