Jump to content
3DCoat Forums

kritskiy.001

Member
  • Posts

    17
  • Joined

  • Last visited

Posts posted by kritskiy.001

  1. Also I'm having an issue with the new Edge Radius `R` hotkey. It weirdly overwrites my other R-keys. Example: I had Alt+R assigned to Reset Axis command of the Transform tool option, in the latest versions it stopped working, but instead Edge Radius is changing. And I can't assign any R-hotkey (+Ctrl/+Shift).

    Attaching a video. Edge Radius is set to 0. I try using my Alt+R key to reset axis, instead Edge Radius is changing to 165. Then I reassign the function to Alt+E and it works. And then I try to assign it back to Alt+R or any other +R key but the prompt "press any key" doesn't go away until I cancel it with Esc 

     

  2. I'm having an issue with a simple Python script with the latest beta (haven't tried the previous versions): the inputs seem to be correct, there are no errors but what I expect to happen (parents change) simply doesn't happen. I posted on Scripting subforum but I don't think a lot of people go there, could you please tell me what am I missing?

     

  3. First of all, it's awesome to see Python implementation in 3d Coat — it's so, so so much easier to dive into for mere mortals than AS and C.

    I'm struggling with something: I'm trying to change parent for selected volumes from Root to an object with index 0 and while the console prints out correct values nothing happens in the scene: the parents don't change. My scene consists of 4 simple sphere volumes, two bottom ones are selected (selecting one doesn't make difference)

    Code:

    import coat
    
    def main():
    	root = coat.Scene.sculptRoot()
    	new_parent = root.child(index = 0)
    	selected = []
    
    	def walker(el):
    		if el.selected():
    			selected.append(el)
    
    	root.iterateVisibleSubtree(walker)
    	print(f"selected elements: {selected}") # correctly outputs coat.SceneElement objects
    
    	for el in selected:
    		print(f"changing parent: {el.name()} from {el.parent().name()} to {new_parent.name()}") # prints out correct names
    		el.changeParent(newParent = new_parent) # nothing happens
    			
    main()

    Please let me know what am I missing.

    Thanks!

  4. Ok got an answer from Andrew: the path in the .xml Command tag should be relative to the 3dc Prefs folder. In V4 it's

    <Command>script:Scripts/ExtraMenuItems/scriptName.cpp</Command>

    and in 2022 the prefs were moved deeper:

    <Command>script:UserPrefs/Scripts/ExtraMenuItems/scriptName.cpp</Command>

     

    • Thanks 1
  5. 1 hour ago, Carlosan said:

    Hello

    Better to ask Andrew.

    I am shotting in the dark: try edit current room. I guess you have to add it to the text of the menu scripts.

    Thanks, but it seems that editing the menu script won't help: there are no "commands" unless I'm missing something. Everything is being called via menu_item() function... Even the recent scripts list calls for a recent scripts menu item:

    image.png.f788f7ff5e320f7246e05afaf9578386.png

     

    When you say "Better ask Andrew" do you mean by writing to his email? I imagine he gets 10000000 messages a day lol

    Thanks

    • Thanks 1
  6. in the 3DCoat-2022\UserPrefs\Scripts\Python folder of the 3DC installation there are 3 simple test py scripts.

    Does this mean that Python support is coming for scripting?

    Is it usable already?

    I find AngelScript extremely confusing and limiting for non-developers and Py would be a great addition to it or change from it.

    • Confused 1
  7. Hello, I'm moving to 2022 and I'm trying to bring my scripts from V4 to 2022.

    In V4 I would have a \ExtraMenuItems folder with a bunch of .xmls with MenuPath, MenuItem and Command tags to define the name, menu and the actual script that's going to be used when the command is selected.

    I copied the folder to the \Documents\3DCoat\UserPrefs\Scripts\ExtraMenuItems\ and the scripts appear in 2022. However non of them works, I'm getting "Nothing was built in the module" error. If I run the script via Scripts > Run menu they work fine. Should I change anything for the scripts to work from the menus?

    Thanks

    image.thumb.png.8e9836b25d5ef695e25c85ddd7f6c4d1.png

  8. Hello, does exporting works for you guys? I just installed the 2022.52 (Win10, 8c Ryzen, 64gb RAM, 2070S) and every time I try to export a +/- dense fbx (>300k polys) 3dc crashes (shows a window "the program became unstable and will crash"). If I save the scene and open it in 4.9.72 it exports fine. Exporting obj/collada exports broken geometry (floating parts of the original object).

    Also Airbrush in Invert Mode freezes the 2022.52.

    Anything I could try..?

×
×
  • Create New...