THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2005 at 13:06, xxxxxxxx wrote:
Cinema 4D Version: r9
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
Below is a message i left on c4dcafe and have not had any help (that i could use). I hope posting it here helps. Please don't suggest plugins like visual selector. Its overkill for what i want.
Its so easy to do in max and maya that i cant see paying 100 bucks for a plugin that does way more than i want.
I need to create a button in my toolbar that selects a single object in my scene. I've read and experimented with a zillion line of code and can't do it.
If i could create a button that just had a little icon that when i click it it selects the object. thats all.
Can someone please help.
A i an idiot? I have programed in visual basic, but coffee is looking weird. (it has been forever since i programed anything but i can't imagine this being more than a couple lines of code.
Thanks in advance,
It was so easy to do in max and maya, and its seems impossible in c4d.
In max there is a macro recorder. You just select your object, copy the code that produces, paste it and compile your script, add a link in your toolbar. Its just as easy in maya, but i cant figure it out in c4d.
the script (if english were code) would look like this
select - Null Object01
or whatever you wanted. Then in my tabed toolbar at the top, i can have an icon for several cobs that select several objects in my scene.
So now i have a custom toolbar for my scene and can ditch everything (object manager,materials,cord....ect..) and just have a single skinny toolbar and huge viewport to animate.
May be that clarifies it some. Why is it so hard in c4d, and a hild could do it in maya, or max. Dont get me wrong, i am a loyal maxon user, but frustrated that its scripting is harder that other programs(at least for me).
If there was only an output window/dialog so i could see what it was doing, i could figure out the code for myself.
Thanks, Randy Webb
On 25/03/2005 at 13:39, xxxxxxxx wrote:
You should have a look at the menuplugin.cof example that comes with the C.O.F.F.E.E. documentation. Simple fill in the blanks and place your code in the Execute() function. See the XLent Framework for more examples of how to add icons etc.