add elements to an object
 1-10  11-30  31-50  51-66

Previous
Next
 From:  DannyT (DANTAS)
3830.11 In reply to 3830.10 
wascally wabbit!

-
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  FiL (FILIPPOL)
3830.12 In reply to 3830.8 
Hi Michael,

>I've attached here a different version which will read in the list of names from a text file named PresetNames.txt which should be put in the same \commands sub-folder.

1-I've inserted the command "AssignPresetName" inside the commands folder.




2-I've changed your generic list in a personal list.




3-I've assigned the short key to the new command.
But it doesn't work. It doesn't found names in PresetNames.txt file




Is there an error in what I did?
Did I put the .txt file in a errate place?

FiL

___________________
That's a brilliant day!


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  coi (MARCO)
3830.13 In reply to 3830.12 
hi there..

i get this error..

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.14 In reply to 3830.12 
Hi FiL, do you possibly have your "Program Files" folder on some drive other than the C: drive?

Right now there isn't any way set up for a script to know where MoI is installed, so this command just assumes that it is installed in C:\Program Files\MoI 2.0 , or C:\Program Files (x86)\MoI 2.0 .

So if you have it installed somewhere else (like on the D: drive or something like that) you'll need to edit the command so it can find the file. To do this, open the AssignPresetNameDialog.htm file up under notepad, and go to the spot that says:

if ( i == 0 )
    filename = 'c:\\Program Files\\MoI 2.0\\commands\\PresetNames.txt';
else
    filename = 'c:\\Program Files (x86)\\MoI 2.0\\commands\\PresetNames.txt';

And change the folder there to go to your actual "Program Files" folder, and then that should make it work. Note that in a script string, a \ character starts an escape sequence (like \t means a tab character), so you need to put in a double \\ to make an actual single \ character in a script string.

I've made a note to make a method available for scripts to call so they can know the folder where MoI.exe is running from so that when a script wants to load a separate data file like this it will be able to work more easily.


Let me know if that was not the problem.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.15 In reply to 3830.13 
Hi Marco,

> hi there..
>
> i get this error..

That's a bug in the script file for the case where it could not read in the data file.

I've uploaded a new attachment to the previous message which should not give this error anymore, but to make it find the text file you probably need to edit the path to it in the AssignPresetNameDialog.htm file as described above.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  FiL (FILIPPOL)
3830.16 In reply to 3830.14 
Hi Michael, sorry but it's not my case.

C:\Programmi\MoI 2.0\commands




I've controlled all the steps.
If the file .txt must be in commands folder, nothing is wrong... or
there is a allien intelligence inside my pc that....
Now I go to a pet shop and I buy a my Jojo!

FiL

___________________
That's a brilliant day!

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.17 In reply to 3830.16 
Hi FiL,

> C:\Programmi\MoI 2.0\commands

Ah, but that is the problem, because the script is hard coded to look for it in

c:\Program Files\ (in English)

So you will need to edit the file as mentioned above. To do this, run notepad and open up the file AssignPresetNameDialog.htm and edit the line that says:

filename = 'c:\\Program Files\\MoI 2.0\\commands\\PresetNames.txt';

and change it to say:

filename = 'c:\\Programmi\\MoI 2.0\\commands\\PresetNames.txt';

Then it should work.

I've attached a version with it edited like that, if you copy the attached file over top of the previous one, does it then work for you?

I can probably figure out a way for the script to find that better, I'll take a look.

EDIT: This is fixed now in the updated version, it should find your machine's "Program Files" folder now.

- Michael

EDITED: 27 Oct 2010 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  FiL (FILIPPOL)
3830.18 In reply to 3830.17 
Hi Michael, that's good.
Now it works.

Thank you... and JoJo!

FiL

___________________
That's a brilliant day!

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  coi (MARCO)
3830.19 In reply to 3830.17 
hi michael

i'm on D: as main drive..editing the AssignPresetNameDialog.htm did the trick..everything's working fine now..

best wishes,
marco

p.s. gsus, it must be around 4am in your area..i hope jojo doesn't mind :]]]..btw. jojo does look a bit like the Stanford bunny, doesn't she...you haven't got a Dragon lying around somewhere? :]]]
p.p.s. this would also be an appropriate work flow for assigning commands to shortcuts keys..like scanning the commands folder for available commands..

EDITED: 27 Oct 2010 by MARCO

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.20 In reply to 3830.19 
Hi Marco & FiL - I've figured out how the script can get your own system's "Program files" folder properly, and I've updated the original attachment again. But it sounds like you've got things working anyway.


@ Marco:

> p.s. gsus, it must be around 4am in your area..i hope jojo doesn't mind

Only 2am currently, JoJo kind of likes late night stuff, there is less chasing from toddlers.


> p.p.s. this would also be an appropriate work flow for
> assigning commands to shortcuts keys..like scanning
> the commands folder for available commands..

Yeah, but probably it needs more than that, I'd like to tune up the whole way that plug-ins are delivered so that you could go to a kind of plug-in browser that would connect to a repository on the web site and you'd be able to pick ones to download. Then they'd probably download to a central folder like moi.ini so you wouldn't need to re-install them during new beta releases or new version releases. Then that whole thing would be good to connect up with a list in the shortcut key editor as well.


> you haven't got a Dragon lying around somewhere?

I've got a little Dragon statue that is really similar to that one, but not any real Dragons though nope... :)

- Michael

EDITED: 27 Oct 2010 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.21 
Bonus JoJo picture - this is what we call "Chicken bun pose" because you get to see the delicious drumsticks:



- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
3830.22 In reply to 3830.21 
Oh my! JoJo isn't related to the playboy bunny by any chance? ;)

-
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  FiL (FILIPPOL)
3830.23 In reply to 3830.20 
Hi Michael,

>I've figured out how the script can get your own system's "Program files" folder properly, and I've updated the original attachment again. But it sounds like you've got things working anyway.

I try the new vesion and yes it works.
Good.


>"Chicken bun pose"

Hum...she's looking for a Moment of Inspiration...

FiL

___________________
That's a brilliant day!

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3830.24 
AssignName and AssignPresetName
work like a charm ! Bravo!
(so 2 new one to add to my Website :°)
http://moiscript.weebly.com/

Just a little question :)
Seem a same name can be assigned to different object!
like a cube is named jojo
and a sphere can be also named jojo
is that normal?

and another little : do you keep a list of scripts with date of creation?

In Windows French version we have also that!!! funny isn't it ? :)
c:\Program Files\ (in French)

EDITED: 27 Oct 2010 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.25 In reply to 3830.24 
Hi Pilou, great, I hope they will be useful!

> Just a little question :)
> Seem a same name can be assigned to different object!
> like a cube is named jojo
> and a sphere can be also named jojo
> is that normal?

Yup, that is intended that you can name objects whatever you want, including the same name for more than 1 object.

You can use that as one way to make clusters of objects - if you assign them all the same name then they will all be controlled by the same entry under the "Objects" section of the Scene Browser and that is also a way you can control making mesh objects at export time merged into larger mesh structures with the "Combine same named objects" option under Options > Import/Export.

What is it that you were expecting to happen if you named 2 objects with the same name, would it be better if MoI crashed if you tried to do that? ;)


> and another little : do you keep a list of scripts with date of creation?

Not currently, but in the future I want to make a kind of script repository type mechanism that would do that.

Petr has many of them collected here though:
http://kyticka.webzdarma.cz/3d/moi/


> In Windows French version we have also that!!! funny isn't it ? :)
> c:\Program Files\ (in French)

With that last updated version this should work ok now with the "Program Files" folder being in your own language.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
3830.26 In reply to 3830.25 
< Petr has many of them collected here though:
I know that (because I made a sort of copycat of it :)

About the "same name" for different object : is that the same in Rhino ?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.27 In reply to 3830.26 
Hi Pilou,

> About the "same name" for different object : is that the same in Rhino ?

Yes, same thing in Rhino and many other programs. For example, I just tested in PaintShop Pro, Expression, and ViaCAD, and none of these have any problem with assigning the same name to more than 1 object.

It's just a label that you can assign as you wish to help you tag things.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  FiL (FILIPPOL)
3830.28 In reply to 3830.27 
Hi Michael,

>It's just a label that you can assign as you wish to help you tag things.

And more than a single label assigned to a object?
Example: an object (first label) can be a part of a bigger structure (second label) inside a project (third label) = finger_hand_body.
In this way I can select the object trough 3 different tags...in order to select it on its own or with other objects.

FiL

___________________
That's a brilliant day!

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
3830.29 In reply to 3830.21 
""""""Chicken bun pose""""""""""""

I bet she drags around the floor like that!!!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
3830.30 In reply to 3830.28 
Hi FiL,

> And more than a single label assigned to a object?
> Example: an object (first label) can be a part of a
> bigger structure (second label) inside a project
> (third label) = finger_hand_body.

In V3 I want to add a mechanism for "Groups" which would enable this kind of hierarchical organization.

The basic idea is that a group would be a kind of container tag that would have a collection of objects and possibly other groups as its children.

Then the group would show up in the Scene Browser, either in its own Groups section or possibly just within the Objects section not quite sure yet, so you could manipulate it with the scene browser UI like hide/show/lock/select.

If you had nested groups then you would get a + symbol on different levels so you could expand and collapse them.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-10  11-30  31-50  51-66